From d943d99b1f99186e74567d5dc636209862749618 Mon Sep 17 00:00:00 2001 From: Jayk <20700514+jayk09@users.noreply.github.com> Date: Thu, 13 Jul 2023 01:36:59 +0200 Subject: [PATCH] Fix `component-scoped-csr` and `fallback-locale` --- examples/component-scoped-csr/src/lib/translations/index.js | 2 +- examples/fallback-locale/src/lib/translations/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/component-scoped-csr/src/lib/translations/index.js b/examples/component-scoped-csr/src/lib/translations/index.js index 5114602..78eae88 100644 --- a/examples/component-scoped-csr/src/lib/translations/index.js +++ b/examples/component-scoped-csr/src/lib/translations/index.js @@ -45,6 +45,6 @@ export const config = { ], }; -export const { t, loading, locales, locale, loadTranslations } = new i18n(config); +export const { t, loading, locales, locale, loadTranslations, addTranslations, setLocale, setRoute } = new i18n(config); loading.subscribe(($loading) => $loading && console.log('Loading translations...')); \ No newline at end of file diff --git a/examples/fallback-locale/src/lib/translations/index.js b/examples/fallback-locale/src/lib/translations/index.js index 6326c75..0c0acde 100644 --- a/examples/fallback-locale/src/lib/translations/index.js +++ b/examples/fallback-locale/src/lib/translations/index.js @@ -46,6 +46,6 @@ export const config = { ], }; -export const { t, loading, locales, locale, loadTranslations } = new i18n(config); +export const { t, loading, locales, locale, loadTranslations, addTranslations, setLocale, setRoute } = new i18n(config); loading.subscribe(($loading) => $loading && console.log('Loading translations...')); \ No newline at end of file