Add defaultLocale (#22665)

This commit is contained in:
Bernd Hirschmann
2018-01-04 18:35:43 +01:00
committed by Mohamed Hegazy
parent fa5b175189
commit 06aaceffba
2 changed files with 2 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ app.config((localStorageServiceProvider: angular.dynamicLocale.tmhDynamicLocaleP
localStorageServiceProvider
.localeLocationPattern("app/config/locales/")
.useCookieStorage();
localStorageServiceProvider.defaultLocale('en');
});
class LocaleTestController {

View File

@@ -17,6 +17,7 @@ declare module 'angular' {
}
interface tmhDynamicLocaleProvider extends angular.IServiceProvider {
defaultLocale(locale: string): void;
localeLocationPattern(location: string): tmhDynamicLocaleProvider;
localeLocationPattern(): string;
storageKey(storageKey: string): void;