2023-02-13 20:20:08 +03:30
|
|
|
/*
|
|
|
|
|
* Copyright (C) Contributors to the Suwayomi project
|
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
2023-02-14 16:28:37 +03:30
|
|
|
import en from 'i18n/locale/en.json';
|
2023-02-13 20:13:39 +03:30
|
|
|
|
2023-03-28 20:06:26 +03:30
|
|
|
import ar from 'i18n/locale/ar.json';
|
|
|
|
|
import de from 'i18n/locale/de.json';
|
|
|
|
|
import es from 'i18n/locale/es.json';
|
|
|
|
|
import fr from 'i18n/locale/fr.json';
|
2023-05-12 11:51:15 +02:00
|
|
|
import ja from 'i18n/locale/ja.json';
|
|
|
|
|
import pt from 'i18n/locale/pt.json';
|
|
|
|
|
import uk from 'i18n/locale/uk.json';
|
|
|
|
|
import zh_Hans from 'i18n/locale/zh_Hans.json';
|
|
|
|
|
import zh_Hant from 'i18n/locale/zh_Hant.json';
|
2023-03-25 19:34:05 +01:00
|
|
|
|
2023-03-23 13:59:32 +01:00
|
|
|
const translationHelper = <T>(lng: T) => ({
|
2023-02-13 20:13:39 +03:30
|
|
|
translation: lng,
|
|
|
|
|
});
|
|
|
|
|
|
2023-05-12 11:51:15 +02:00
|
|
|
/**
|
|
|
|
|
* Keys have to match {@link ISOLanguages} codes, they're used for showing the language name in the dropdown in the {@link Settings}.<br/>
|
|
|
|
|
* In case there is no language code for the key in {@link ISOLanguages}, the corresponding language has to be added
|
|
|
|
|
*/
|
2023-02-13 20:20:08 +03:30
|
|
|
const resources = {
|
2023-02-13 20:13:39 +03:30
|
|
|
en: translationHelper(en),
|
2023-03-25 19:34:05 +01:00
|
|
|
|
|
|
|
|
ar: translationHelper(ar),
|
|
|
|
|
de: translationHelper(de),
|
|
|
|
|
es: translationHelper(es),
|
|
|
|
|
fr: translationHelper(fr),
|
2023-05-12 11:51:15 +02:00
|
|
|
ja: translationHelper(ja),
|
|
|
|
|
pt: translationHelper(pt),
|
|
|
|
|
uk: translationHelper(uk),
|
|
|
|
|
'zh-Hans': translationHelper(zh_Hans),
|
|
|
|
|
'zh-Hant': translationHelper(zh_Hant),
|
2023-03-23 13:59:32 +01:00
|
|
|
} as const;
|
2023-02-13 20:20:08 +03:30
|
|
|
|
|
|
|
|
export default resources;
|