Add objectNotation

This commit is contained in:
2022-06-06 20:41:03 +07:00
parent 060ebd07a0
commit 77ea62d046
+2 -1
View File
@@ -16,7 +16,8 @@ class Locale {
public getLocaleProvider(locale: string) { public getLocaleProvider(locale: string) {
const i18n = new I18n(); const i18n = new I18n();
i18n.configure({ i18n.configure({
directory: this.localePath directory: this.localePath,
objectNotation: true
}) })
i18n.setLocale(locale); i18n.setLocale(locale);
return i18n; return i18n;