2023-06-19 23:42:47 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2017-11-20 06:10:04 +01:00
|
|
|
|
2023-08-11 04:46:45 +02:00
|
|
|
package locale // import "miniflux.app/v2/internal/locale"
|
2017-11-20 06:10:04 +01:00
|
|
|
|
2024-03-01 05:20:29 +01:00
|
|
|
var numberOfPluralFormsPerLanguage = map[string]int{
|
|
|
|
"en_US": 2,
|
|
|
|
"es_ES": 2,
|
|
|
|
"fr_FR": 2,
|
|
|
|
"de_DE": 2,
|
|
|
|
"pl_PL": 3,
|
|
|
|
"pt_BR": 2,
|
|
|
|
"zh_CN": 1,
|
|
|
|
"zh_TW": 1,
|
|
|
|
"nl_NL": 2,
|
|
|
|
"ru_RU": 3,
|
|
|
|
"it_IT": 2,
|
|
|
|
"ja_JP": 1,
|
|
|
|
"tr_TR": 2,
|
|
|
|
"el_EL": 2,
|
|
|
|
"fi_FI": 2,
|
|
|
|
"hi_IN": 2,
|
|
|
|
"uk_UA": 3,
|
|
|
|
"id_ID": 1,
|
|
|
|
}
|
|
|
|
|
2017-11-28 06:30:04 +01:00
|
|
|
// AvailableLanguages returns the list of available languages.
|
|
|
|
func AvailableLanguages() map[string]string {
|
2017-11-20 06:10:04 +01:00
|
|
|
return map[string]string{
|
|
|
|
"en_US": "English",
|
2019-01-24 04:45:47 +01:00
|
|
|
"es_ES": "Español",
|
2017-11-20 06:10:04 +01:00
|
|
|
"fr_FR": "Français",
|
2018-01-16 02:23:47 +01:00
|
|
|
"de_DE": "Deutsch",
|
2018-02-17 20:29:14 +01:00
|
|
|
"pl_PL": "Polski",
|
2020-07-16 04:47:55 +02:00
|
|
|
"pt_BR": "Português Brasileiro",
|
2018-02-27 07:36:07 +01:00
|
|
|
"zh_CN": "简体中文",
|
2022-03-24 18:34:37 +01:00
|
|
|
"zh_TW": "繁體中文",
|
2018-03-16 15:15:15 +01:00
|
|
|
"nl_NL": "Nederlands",
|
2018-09-22 19:22:58 +02:00
|
|
|
"ru_RU": "Русский",
|
2018-12-16 11:48:43 +01:00
|
|
|
"it_IT": "Italiano",
|
2020-02-14 11:40:24 +01:00
|
|
|
"ja_JP": "日本語",
|
2021-03-17 20:43:08 +01:00
|
|
|
"tr_TR": "Türkçe",
|
2021-07-07 17:43:14 +02:00
|
|
|
"el_EL": "Ελληνικά",
|
2021-12-18 21:01:15 +01:00
|
|
|
"fi_FI": "Suomi",
|
2022-07-16 13:33:06 +02:00
|
|
|
"hi_IN": "हिन्दी",
|
2022-08-15 18:13:47 +02:00
|
|
|
"uk_UA": "Українська",
|
2023-02-19 16:38:42 +01:00
|
|
|
"id_ID": "Bahasa Indonesia",
|
2017-11-20 06:10:04 +01:00
|
|
|
}
|
|
|
|
}
|