Only use country specific locales (languages)
This commit is contained in:
parent
3838343448
commit
1f180a6e57
26 changed files with 5 additions and 29137 deletions
26
README.md
26
README.md
|
@ -15,59 +15,35 @@ your wishes for any kind of occasion ([demo](https://wishthis.online)).
|
||||||
[![Discord](https://badgen.net/discord/members/WrUXnpNyza/?label=Discord&color=purple&icon=discord)](https://discord.gg/WrUXnpNyza)
|
[![Discord](https://badgen.net/discord/members/WrUXnpNyza/?label=Discord&color=purple&icon=discord)](https://discord.gg/WrUXnpNyza)
|
||||||
[![Matrix](https://badgen.net/matrix/members/wishthis/matrix.org)](https://matrix.to/#/#wishthis:matrix.org)
|
[![Matrix](https://badgen.net/matrix/members/wishthis/matrix.org)](https://matrix.to/#/#wishthis:matrix.org)
|
||||||
|
|
||||||
## :earth_africa: Available in 51 different locales
|
## :earth_africa: Available in 27 different languages
|
||||||
| Language | | Country | Locale |
|
| Language | | Country | Locale |
|
||||||
| -------------------- | ---------------- | -------------- | ------- |
|
| -------------------- | ---------------- | -------------- | ------- |
|
||||||
| Bulgaria | | | bg |
|
|
||||||
| Bulgaria | :bulgaria: | Bulgaria | bg_BG |
|
| Bulgaria | :bulgaria: | Bulgaria | bg_BG |
|
||||||
| Chinese (Simplified) | | | zh-Hans |
|
| Chinese (Simplified) | | | zh-Hans |
|
||||||
| Czech | | | cs |
|
|
||||||
| Czech | :czech_republic: | Czech Republic | cs_CZ |
|
| Czech | :czech_republic: | Czech Republic | cs_CZ |
|
||||||
| Danish | | | da |
|
|
||||||
| Danish | :denmark: | Denmark | da_DK |
|
| Danish | :denmark: | Denmark | da_DK |
|
||||||
| Dutch | | | nl |
|
|
||||||
| Dutch | :netherlands: | Netherlands | nl_NL |
|
| Dutch | :netherlands: | Netherlands | nl_NL |
|
||||||
| English | | | en |
|
|
||||||
| English | :gb: | United Kingdom | en_GB |
|
| English | :gb: | United Kingdom | en_GB |
|
||||||
| English | :us: | United States | en_US |
|
| English | :us: | United States | en_US |
|
||||||
| Estonian | | | et |
|
|
||||||
| Estonian | :estonia: | Estonia | et_EE |
|
| Estonian | :estonia: | Estonia | et_EE |
|
||||||
| Finnish | | | fi |
|
|
||||||
| Finnish | :finland: | Finland | fi_FI |
|
| Finnish | :finland: | Finland | fi_FI |
|
||||||
| French | | | fr |
|
|
||||||
| French | :fr: | France | fr_FR |
|
| French | :fr: | France | fr_FR |
|
||||||
| German | | | de |
|
|
||||||
| German | :de: | Germany | de_DE |
|
| German | :de: | Germany | de_DE |
|
||||||
| Greek | | | el |
|
|
||||||
| Greek | :greece: | Greece | el_GR |
|
| Greek | :greece: | Greece | el_GR |
|
||||||
| Hungarian | | | hu |
|
|
||||||
| Hungarian | :hungary: | Hungary | hu_HU |
|
| Hungarian | :hungary: | Hungary | hu_HU |
|
||||||
| Indonesian | | | id |
|
|
||||||
| Indonesian | :indonesia: | Indonesia | id_ID |
|
| Indonesian | :indonesia: | Indonesia | id_ID |
|
||||||
| Italian | | | it |
|
|
||||||
| Italian | :it: | Italy | it_IT |
|
| Italian | :it: | Italy | it_IT |
|
||||||
| Japanese | | | ja |
|
|
||||||
| Japanese | :jp: | Japan | ja_JP |
|
| Japanese | :jp: | Japan | ja_JP |
|
||||||
| Latvian | | | lv |
|
|
||||||
| Latvian | :latvia: | Latvia | lv_LV |
|
| Latvian | :latvia: | Latvia | lv_LV |
|
||||||
| Polish | | | pl |
|
|
||||||
| Polish | :poland: | Poland | pl_PL |
|
| Polish | :poland: | Poland | pl_PL |
|
||||||
| Portuguese | | | pt |
|
|
||||||
| Portuguese | :brazil: | Brazil | pt_BR |
|
| Portuguese | :brazil: | Brazil | pt_BR |
|
||||||
| Portuguese | :portugal: | Portugal | pt_PT |
|
| Portuguese | :portugal: | Portugal | pt_PT |
|
||||||
| Romanian | | | ro |
|
|
||||||
| Romanian | :romania: | Romania | ro_RO |
|
| Romanian | :romania: | Romania | ro_RO |
|
||||||
| Russian | | | ru |
|
|
||||||
| Russian | :ru: | Russia | ru_RU |
|
| Russian | :ru: | Russia | ru_RU |
|
||||||
| Slovak | | | ro |
|
|
||||||
| Slovak | :slovakia: | Slovakia | ro_RO |
|
| Slovak | :slovakia: | Slovakia | ro_RO |
|
||||||
| Slovenian | | | sl |
|
|
||||||
| Slovenian | :slovenia: | Slovenia | sl_SL |
|
| Slovenian | :slovenia: | Slovenia | sl_SL |
|
||||||
| Spanish | | | es |
|
|
||||||
| Spanish | :es: | Spain | es_ES |
|
| Spanish | :es: | Spain | es_ES |
|
||||||
| Swedish | | | sv |
|
|
||||||
| Swedish | :sweden: | Sweden | sv_SE |
|
| Swedish | :sweden: | Sweden | sv_SE |
|
||||||
| Turkish | | | tr |
|
|
||||||
| Turkish | :tr: | Turkey | tr_TR |
|
| Turkish | :tr: | Turkey | tr_TR |
|
||||||
|
|
||||||
## :heavy_check_mark: Requirements
|
## :heavy_check_mark: Requirements
|
||||||
|
|
|
@ -89,7 +89,10 @@ if ($options) {
|
||||||
$locales = array_filter(
|
$locales = array_filter(
|
||||||
array_map(
|
array_map(
|
||||||
function ($value) {
|
function ($value) {
|
||||||
if ('po' === pathinfo($value, PATHINFO_EXTENSION)) {
|
$extension = pathinfo($value, PATHINFO_EXTENSION);
|
||||||
|
$filename = pathinfo($value, PATHINFO_FILENAME);
|
||||||
|
|
||||||
|
if ('po' === $extension && strlen($filename) > 2) {
|
||||||
return pathinfo($value, PATHINFO_FILENAME);
|
return pathinfo($value, PATHINFO_FILENAME);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
1213
translations/bg.po
1213
translations/bg.po
File diff suppressed because it is too large
Load diff
1212
translations/cs.po
1212
translations/cs.po
File diff suppressed because it is too large
Load diff
1213
translations/da.po
1213
translations/da.po
File diff suppressed because it is too large
Load diff
1222
translations/de.po
1222
translations/de.po
File diff suppressed because it is too large
Load diff
1224
translations/el.po
1224
translations/el.po
File diff suppressed because it is too large
Load diff
1202
translations/en.po
1202
translations/en.po
File diff suppressed because it is too large
Load diff
1218
translations/es.po
1218
translations/es.po
File diff suppressed because it is too large
Load diff
1207
translations/et.po
1207
translations/et.po
File diff suppressed because it is too large
Load diff
1211
translations/fi.po
1211
translations/fi.po
File diff suppressed because it is too large
Load diff
1222
translations/fr.po
1222
translations/fr.po
File diff suppressed because it is too large
Load diff
1217
translations/hu.po
1217
translations/hu.po
File diff suppressed because it is too large
Load diff
1219
translations/id.po
1219
translations/id.po
File diff suppressed because it is too large
Load diff
1219
translations/it.po
1219
translations/it.po
File diff suppressed because it is too large
Load diff
1160
translations/ja.po
1160
translations/ja.po
File diff suppressed because it is too large
Load diff
1212
translations/lv.po
1212
translations/lv.po
File diff suppressed because it is too large
Load diff
1215
translations/nl.po
1215
translations/nl.po
File diff suppressed because it is too large
Load diff
1216
translations/pl.po
1216
translations/pl.po
File diff suppressed because it is too large
Load diff
1217
translations/pt.po
1217
translations/pt.po
File diff suppressed because it is too large
Load diff
1225
translations/ro.po
1225
translations/ro.po
File diff suppressed because it is too large
Load diff
1219
translations/ru.po
1219
translations/ru.po
File diff suppressed because it is too large
Load diff
1212
translations/sk.po
1212
translations/sk.po
File diff suppressed because it is too large
Load diff
1209
translations/sl.po
1209
translations/sl.po
File diff suppressed because it is too large
Load diff
1213
translations/sv.po
1213
translations/sv.po
File diff suppressed because it is too large
Load diff
1214
translations/tr.po
1214
translations/tr.po
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue