Fix default language detection.

Closes #1118
Closes #743
This commit is contained in:
Kavin
2022-06-26 02:53:06 +01:00
parent 187804f9a1
commit 1dbd1e375b
3 changed files with 7 additions and 6 deletions

View File

@@ -46,7 +46,8 @@ export default {
const App = this;
(async function () {
const locale = App.getPreferenceString("hl", App.defaultLangage);
const defaultLang = await App.defaultLangage;
const locale = App.getPreferenceString("hl", defaultLang);
if (locale !== App.TimeAgoConfig.locale) {
const localeTime = await import(
"./../node_modules/javascript-time-ago/locale/" + locale + ".json"