mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Add defaultLocale (#22665)
This commit is contained in:
committed by
Mohamed Hegazy
parent
fa5b175189
commit
06aaceffba
@@ -5,6 +5,7 @@ app.config((localStorageServiceProvider: angular.dynamicLocale.tmhDynamicLocaleP
|
||||
localStorageServiceProvider
|
||||
.localeLocationPattern("app/config/locales/")
|
||||
.useCookieStorage();
|
||||
localStorageServiceProvider.defaultLocale('en');
|
||||
});
|
||||
|
||||
class LocaleTestController {
|
||||
|
||||
1
types/angular-dynamic-locale/index.d.ts
vendored
1
types/angular-dynamic-locale/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user