Add the language setting page (#1210)

* Add initial language picker prototype

* Heap o' improvements and Pirate tongue

* Move .visually-hidden to shared utils and add copyright notice

* Add a little space before categories names

* Simplify search to input focus logic

* Remove larger font size and padding from the search field

* Some refactors

* Braw's descent into madness

Thanks web development!

In seriousness though, tried to make the list more accessible. Making it
fully accessible feels like unbearable task, so at least that.

* Litol refactoring

* Extract new strings and remove old ones

* Update @vintl/nuxt to 1.3.0

This fixes the bug where default locale won't be saved.

* A buncha refactorings and cleanup

* Scuttle the Pirate lingo

'Twas employed 'ere for testin' purposes, but fear not, for it shall be
returnin' in the days to come. Should ye require it fer testin', simply
roll back this here commit.

* Clean languages source file

* Change "US" to "United States"

I think it would make distinguishing two languages simpler as now
there's more than one letter of difference (US/UK vs United States/
United Kingdom).
This commit is contained in:
Sasha Sorokin
2023-08-21 19:26:39 +02:00
committed by GitHub
parent a420d5b203
commit 467b0fa988
17 changed files with 785 additions and 10 deletions

View File

@@ -13,5 +13,53 @@
},
"frog.title": {
"message": "Frog"
},
"settings.language.categories.auto": {
"message": "Automatic"
},
"settings.language.categories.default": {
"message": "Standard languages"
},
"settings.language.categories.experimental": {
"message": "Experimental languages"
},
"settings.language.categories.fun": {
"message": "Fun languages"
},
"settings.language.categories.search-result": {
"message": "Search results"
},
"settings.language.description": {
"message": "Choose your preferred language for the site. Translations are contributed by volunteers <crowdin-link>on Crowdin</crowdin-link>."
},
"settings.language.languages.automatic": {
"message": "Sync with the system language"
},
"settings.language.languages.language-label": {
"message": "{translatedName}. {displayName}"
},
"settings.language.languages.language-label-applying": {
"message": "{label}. Applying..."
},
"settings.language.languages.language-label-error": {
"message": "{label}. Error"
},
"settings.language.languages.load-failed": {
"message": "Cannot load this language. Try again in a bit."
},
"settings.language.languages.search-field.description": {
"message": "Submit to focus the first search result"
},
"settings.language.languages.search-field.placeholder": {
"message": "Search for a language..."
},
"settings.language.languages.search-results-announcement": {
"message": "{matches, plural, =0 {No languages match} one {# language matches} other {# languages match}} your search."
},
"settings.language.languages.search.no-results": {
"message": "No languages match your search."
},
"settings.language.title": {
"message": "Language"
}
}

View File

@@ -1,3 +1,3 @@
{
"en-US": "American English"
"en-US": "English (United States)"
}

View File

@@ -1,6 +1,10 @@
{
"displayName": {
"description": "The name of the language in dialect form (e.g. Français canadien for French spoken in Canada, not French (Canada))",
"message": "American English"
"description": "Please enter the name of the language in its specific variant or regional form (e.g., English (US) for American English, not just English). If the language does not have any specific variant, simply enter the name of the language (e.g., Français, Deutsch).",
"message": "English (United States)"
},
"searchTerms": {
"description": "Please provide additional search terms associated with the language, if needed, to enhance the search functionality (e.g., American English, Deutschland). Each search term should be entered on a separate line. Translate as a hyphen (-) if no additional terms are needed.",
"message": "USA\nAmerican English"
}
}