frontend: Add Turkish language support

This commit is contained in:
Gürkan Gür
2020-05-17 13:34:40 -05:00
committed by Umputun
parent d3b58c0795
commit 0bb2877b07
3 changed files with 176 additions and 1 deletions
+5
View File
@@ -28,6 +28,11 @@ export async function loadLocale(locale: string): Promise<Record<string, string>
.then(res => res.default)
.catch(() => enMessages);
}
if (locale === 'tr') {
return import(/* webpackChunkName: "tr" */ '../locales/tr.json')
.then(res => res.default)
.catch(() => enMessages);
}
return enMessages;
}