Added locales method to Ii18n interface.

This commit is contained in:
Noam Kfir
2018-06-25 08:51:02 +03:00
parent d918c54b7c
commit ad5d4e8ef1
+3
View File
@@ -25,6 +25,9 @@ export interface Ii18n {
/** get the current locale */
locale(): string;
/** get all the registered locales */
locales(): string[];
/** set the current locale (i.e. 'de', 'en') */
set(locale: string): void;