Skip to content

Setting up default locale #98

@alaksandarjesus

Description

@alaksandarjesus

Hi

I am trying to set the default locale and my configuration is as below.

`var localeConf = {
basePath: 'languages',
defaultLocale: 'ta-IN',
sharedDictionary: 'common',
fileExtension: '.lang.json',
persistSelection: true,
cookieName: 'COOKIE_LOCALE_LANG',
observableAttrs: new RegExp('^data-(?!ng-|i18n)'),
delimiter: '::',
validTokens: new RegExp('^[\w.-]+.[\w\s.-]+\w(:.*)?$')
};

var localeSupported = [
'ta-IN',
'fr-FR',
'en-US'
]

var localeFallbacks = {
'ta': 'ta-IN',
'en': 'en-US',
'fr': 'fr-FR'
}`

But i could not see the output for ta-IN.

Tested it with en-US and its working. Maintained the same folder structure too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions