refactor(i18n): load server catalogs from weblate json (#3378)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-10 22:35:45 +02:00
1 parent d564ca5691
commit 1198b61648
114 files changed
+171 -27595

No files matched your search

+33 -33
View File
@@ -1,39 +1,39 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import type {ErrorI18nKey} from '@fluxer/errors/src/i18n/ErrorI18nMessages';
import ERROR_I18N_AR_MESSAGES from '@fluxer/errors/src/i18n/locales/ar';
import ERROR_I18N_BG_MESSAGES from '@fluxer/errors/src/i18n/locales/bg';
import ERROR_I18N_CS_MESSAGES from '@fluxer/errors/src/i18n/locales/cs';
import ERROR_I18N_DA_MESSAGES from '@fluxer/errors/src/i18n/locales/da';
import ERROR_I18N_DE_MESSAGES from '@fluxer/errors/src/i18n/locales/de';
import ERROR_I18N_EL_MESSAGES from '@fluxer/errors/src/i18n/locales/el';
import ERROR_I18N_EN_GB_MESSAGES from '@fluxer/errors/src/i18n/locales/en-GB';
import ERROR_I18N_ES_419_MESSAGES from '@fluxer/errors/src/i18n/locales/es-419';
import ERROR_I18N_ES_ES_MESSAGES from '@fluxer/errors/src/i18n/locales/es-ES';
import ERROR_I18N_FI_MESSAGES from '@fluxer/errors/src/i18n/locales/fi';
import ERROR_I18N_FR_MESSAGES from '@fluxer/errors/src/i18n/locales/fr';
import ERROR_I18N_HE_MESSAGES from '@fluxer/errors/src/i18n/locales/he';
import ERROR_I18N_HI_MESSAGES from '@fluxer/errors/src/i18n/locales/hi';
import ERROR_I18N_HR_MESSAGES from '@fluxer/errors/src/i18n/locales/hr';
import ERROR_I18N_HU_MESSAGES from '@fluxer/errors/src/i18n/locales/hu';
import ERROR_I18N_ID_MESSAGES from '@fluxer/errors/src/i18n/locales/id';
import ERROR_I18N_IT_MESSAGES from '@fluxer/errors/src/i18n/locales/it';
import ERROR_I18N_JA_MESSAGES from '@fluxer/errors/src/i18n/locales/ja';
import ERROR_I18N_KO_MESSAGES from '@fluxer/errors/src/i18n/locales/ko';
import ERROR_I18N_LT_MESSAGES from '@fluxer/errors/src/i18n/locales/lt';
import ERROR_I18N_NL_MESSAGES from '@fluxer/errors/src/i18n/locales/nl';
import ERROR_I18N_NO_MESSAGES from '@fluxer/errors/src/i18n/locales/no';
import ERROR_I18N_PL_MESSAGES from '@fluxer/errors/src/i18n/locales/pl';
import ERROR_I18N_PT_BR_MESSAGES from '@fluxer/errors/src/i18n/locales/pt-BR';
import ERROR_I18N_RO_MESSAGES from '@fluxer/errors/src/i18n/locales/ro';
import ERROR_I18N_RU_MESSAGES from '@fluxer/errors/src/i18n/locales/ru';
import ERROR_I18N_SV_SE_MESSAGES from '@fluxer/errors/src/i18n/locales/sv-SE';
import ERROR_I18N_TH_MESSAGES from '@fluxer/errors/src/i18n/locales/th';
import ERROR_I18N_TR_MESSAGES from '@fluxer/errors/src/i18n/locales/tr';
import ERROR_I18N_UK_MESSAGES from '@fluxer/errors/src/i18n/locales/uk';
import ERROR_I18N_VI_MESSAGES from '@fluxer/errors/src/i18n/locales/vi';
import ERROR_I18N_ZH_CN_MESSAGES from '@fluxer/errors/src/i18n/locales/zh-CN';
import ERROR_I18N_ZH_TW_MESSAGES from '@fluxer/errors/src/i18n/locales/zh-TW';
import ERROR_I18N_AR_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/ar.json' with {type: 'json'};
import ERROR_I18N_BG_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/bg.json' with {type: 'json'};
import ERROR_I18N_CS_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/cs.json' with {type: 'json'};
import ERROR_I18N_DA_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/da.json' with {type: 'json'};
import ERROR_I18N_DE_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/de.json' with {type: 'json'};
import ERROR_I18N_EL_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/el.json' with {type: 'json'};
import ERROR_I18N_EN_GB_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/en-GB.json' with {type: 'json'};
import ERROR_I18N_ES_419_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/es-419.json' with {type: 'json'};
import ERROR_I18N_ES_ES_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/es-ES.json' with {type: 'json'};
import ERROR_I18N_FI_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/fi.json' with {type: 'json'};
import ERROR_I18N_FR_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/fr.json' with {type: 'json'};
import ERROR_I18N_HE_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/he.json' with {type: 'json'};
import ERROR_I18N_HI_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/hi.json' with {type: 'json'};
import ERROR_I18N_HR_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/hr.json' with {type: 'json'};
import ERROR_I18N_HU_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/hu.json' with {type: 'json'};
import ERROR_I18N_ID_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/id.json' with {type: 'json'};
import ERROR_I18N_IT_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/it.json' with {type: 'json'};
import ERROR_I18N_JA_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/ja.json' with {type: 'json'};
import ERROR_I18N_KO_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/ko.json' with {type: 'json'};
import ERROR_I18N_LT_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/lt.json' with {type: 'json'};
import ERROR_I18N_NL_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/nl.json' with {type: 'json'};
import ERROR_I18N_NO_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/no.json' with {type: 'json'};
import ERROR_I18N_PL_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/pl.json' with {type: 'json'};
import ERROR_I18N_PT_BR_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/pt-BR.json' with {type: 'json'};
import ERROR_I18N_RO_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/ro.json' with {type: 'json'};
import ERROR_I18N_RU_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/ru.json' with {type: 'json'};
import ERROR_I18N_SV_SE_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/sv-SE.json' with {type: 'json'};
import ERROR_I18N_TH_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/th.json' with {type: 'json'};
import ERROR_I18N_TR_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/tr.json' with {type: 'json'};
import ERROR_I18N_UK_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/uk.json' with {type: 'json'};
import ERROR_I18N_VI_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/vi.json' with {type: 'json'};
import ERROR_I18N_ZH_CN_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/zh-CN.json' with {type: 'json'};
import ERROR_I18N_ZH_TW_MESSAGES from '@fluxer/errors/src/i18n/weblate/locales/zh-TW.json' with {type: 'json'};
export const ERROR_I18N_LOCALE_MESSAGES = {
ar: ERROR_I18N_AR_MESSAGES,