0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

fix: enable Irish language on ui (#4781)

* fix: enable irish language on ui

* Update docusaurus.config.js
This commit is contained in:
Juan Picado 2024-08-05 23:23:53 +02:00 committed by GitHub
parent 4769ddf1ba
commit 303c659bfc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': patch
---
fix: enable irish language on ui

View file

@ -169,6 +169,7 @@
"japanese": "Japanese",
"portuguese": "Portuguese",
"spanish": "Spanish",
"irish": "Irish",
"german": "German",
"italian": "Italian",
"french": "French",

View file

@ -13,6 +13,7 @@ export const listLanguages: LanguageConfiguration[] = [
{ lng: 'cs-CZ', icon: Flags.CZ, menuKey: 'lng.czech' },
{ lng: 'pt-BR', icon: Flags.BR, menuKey: 'lng.portuguese' },
{ lng: 'es-ES', icon: Flags.ES, menuKey: 'lng.spanish' },
{ lng: 'ga-IE', icon: Flags.IE, menuKey: 'lng.irish' },
{ lng: 'de-DE', icon: Flags.DE, menuKey: 'lng.german' },
{ lng: 'it-IT', icon: Flags.IT, menuKey: 'lng.italian' },
{ lng: 'fr-FR', icon: Flags.FR, menuKey: 'lng.french' },

View file

@ -56,6 +56,7 @@ const i18nConfig = {
'es-ES',
'fr-FR',
'it-IT',
'ga-IE',
'pl-PL',
'pt-BR',
'ru-RU',
@ -70,6 +71,7 @@ const i18nConfig = {
'it-IT': { label: `Italiano (${progress['it'].translationProgress}%)` },
'es-ES': { label: `Español (${progress['es-ES'].translationProgress}%)` },
'de-DE': { label: `Deutsch (${progress['de'].translationProgress}%)` },
'ga-IE': { label: `Gaeilge (Éire) (${progress['ga'].translationProgress}%)` },
'cs-CZ': { label: `Čeština (Česko) (${progress['cs'].translationProgress}%)` },
'fr-FR': { label: `Français (${progress['fr'].translationProgress}%)` },
'pl-PL': { label: `Polski (Polska) (${progress['pl'].translationProgress}%)` },