#631 web component i18n implement new approach

This commit is contained in:
agriyadev5
2021-08-30 17:49:57 +05:30
parent a542ddd151
commit 704588889d
6 changed files with 26 additions and 22 deletions

View File

@@ -86,3 +86,7 @@ export const putLocale = async function (givenParam, goodLangs) {
console.info(`Lang: ${i18next.t('lang')}`);
return { langParam, i18next };
};
export const t = function (key) {
return i18next.t(key);
};