diff --git a/src/components/GenericDisplayItem.vue b/src/components/GenericDisplayItem.vue index c16925f..ae7dbfb 100644 --- a/src/components/GenericDisplayItem.vue +++ b/src/components/GenericDisplayItem.vue @@ -14,7 +14,7 @@ {{ item.uploaderName }}
- {{ $tc('counts.videos', item.videos, { formatted: $store.getters['i18n/fmtFullNumber'](item.videos) }) }} + {{ $tc('counts.videos', item.videos, { n: $store.getters['i18n/fmtFullNumber'](item.videos) }) }} diff --git a/src/plugins/i18n.js b/src/plugins/i18n.js index 4968e9b..6810c6a 100644 --- a/src/plugins/i18n.js +++ b/src/plugins/i18n.js @@ -50,6 +50,10 @@ export const i18n = new VueI18n({ messages }) +export const DEPRECATED_LANGUAGES_MAP = new Map([ + ['bn-Beng', 'bn-IN'] +]) + export const TIME_AGO_EXCEPTIONS = { 'bn-IN': 'bn', 'nb-NO': 'nb', @@ -171,6 +175,9 @@ async function loadFormatting (locale) { } export async function changeLocale (lang) { + if (DEPRECATED_LANGUAGES_MAP.has(lang)) { + lang = DEPRECATED_LANGUAGES_MAP.get(lang) + } await Promise.all([ loadLocale(lang), syncStylesPerLanguage(lang),