From 77ea62d04691b5ec2f19a82edd2d2ef19eb8b507 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Mon, 6 Jun 2022 20:41:03 +0700 Subject: [PATCH] Add objectNotation --- src/providers/Locale.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/providers/Locale.ts b/src/providers/Locale.ts index b5e2aa5..46ea5bd 100644 --- a/src/providers/Locale.ts +++ b/src/providers/Locale.ts @@ -16,7 +16,8 @@ class Locale { public getLocaleProvider(locale: string) { const i18n = new I18n(); i18n.configure({ - directory: this.localePath + directory: this.localePath, + objectNotation: true }) i18n.setLocale(locale); return i18n;