UNPKG

angular-dynamic-locale

Version:

A minimal module that adds the ability to dynamically change the locale

24 lines (20 loc) 601 B
// Type definitions for tmhDynamicLocale // Project: http://angularjs.org // Definitions by: Gerardo Lima <https://github.com/gerardolima> // Definitions: https://github.com/lgalfaso/angular-dynamic-locale // TypeScript Version: 2.4.1 import * as ng from 'angular'; export as namespace tmh; declare namespace tmh { interface IDynamicLocale { set(locale: string): ng.IPromise<ng.ILocaleService>; get(): string; } interface IDynamicLocaleProvider { localeLocationPattern(locationPattern: string): void; defaultLocale(locale: string): void; } }