Skip to content

Commit

Permalink
fix(dedicated): add translation key for language enum (#9713)
Browse files Browse the repository at this point in the history
ref: DTRSD-117273

Signed-off-by: Guillaume Hyenne <[email protected]>
Co-authored-by: CDS Translator Agent <[email protected]>
Co-authored-by: Anoop N <[email protected]>
  • Loading branch information
3 people authored Aug 28, 2023
1 parent 1ef74fc commit 760229b
Show file tree
Hide file tree
Showing 9 changed files with 118 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,20 @@ export default /* @ngInject */ ($stateProvider) => {
),
),
),
languageEnum: /* @ngInject */ (models) =>
models.data.models['dedicated.server.AlertLanguageEnum'].enum,
languageEnum: /* @ngInject */ ($translate, models) =>
models.data.models['dedicated.server.AlertLanguageEnum'].enum.sort(
(a, b) => {
const translateA = $translate.instant(`language_${a}`);
const translateB = $translate.instant(`language_${b}`);
if (translateA < translateB) {
return -1;
}
if (translateB < translateA) {
return 1;
}
return 0;
},
),
monitoringIntervalEnum: /* @ngInject */ (models) =>
models.data.models['dedicated.server.MonitoringIntervalEnum'].enum.sort(
compare,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"dedicated_server_monitoring": "Monitoring"
"dedicated_server_monitoring": "Monitoring",
"language_cz": "Tschechisch",
"language_de": "Deutsch",
"language_en": "Englisch",
"language_es": "Spanisch",
"language_fi": "Finnisch",
"language_fr": "Französisch",
"language_ie": "Irisch",
"language_it": "Italienisch",
"language_lt": "Litauisch",
"language_nl": "Niederländisch",
"language_pl": "Polnisch",
"language_pt": "Portugiesisch"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"dedicated_server_monitoring": "Monitoring"
"dedicated_server_monitoring": "Monitoring",
"language_cz": "Czech",
"language_de": "German",
"language_en": "English",
"language_es": "Spanish",
"language_fi": "Finnish",
"language_fr": "French",
"language_ie": "Irish",
"language_it": "Italian",
"language_lt": "Lithuanian",
"language_nl": "Dutch",
"language_pl": "Polish",
"language_pt": "Portuguese"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"dedicated_server_monitoring": "Monitorización"
"dedicated_server_monitoring": "Monitorización",
"language_cz": "Checo",
"language_de": "Alemán",
"language_en": "Inglés",
"language_es": "Español",
"language_fi": "Finés",
"language_fr": "Francés",
"language_ie": "Irlandés",
"language_it": "Italiano",
"language_lt": "Lituano",
"language_nl": "Holandés",
"language_pl": "Polaco",
"language_pt": "Portugués"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"dedicated_server_monitoring": "Monitoring"
"dedicated_server_monitoring": "Monitoring",
"language_cz": "Tchèque",
"language_de": "Allemand",
"language_en": "Anglais",
"language_es": "Espagnol",
"language_fi": "Finnois",
"language_fr": "Français",
"language_ie": "Irlandais",
"language_it": "Italien",
"language_lt": "Lituanien",
"language_nl": "Néerlandais",
"language_pl": "Polonais",
"language_pt": "Portugais"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"dedicated_server_monitoring": "Monitoring"
"dedicated_server_monitoring": "Monitoring",
"language_cz": "Tchèque",
"language_de": "Allemand",
"language_en": "Anglais",
"language_es": "Espagnol",
"language_fi": "Finnois",
"language_fr": "Français",
"language_ie": "Irlandais",
"language_it": "Italien",
"language_lt": "Lituanien",
"language_nl": "Néerlandais",
"language_pl": "Polonais",
"language_pt": "Portugais"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"dedicated_server_monitoring": "Monitoraggio"
"dedicated_server_monitoring": "Monitoraggio",
"language_cz": "Ceco",
"language_de": "Tedesco",
"language_en": "Inglese",
"language_es": "Spagnolo",
"language_fi": "Finlandese",
"language_fr": "Francese",
"language_ie": "Irlandese",
"language_it": "Italiano",
"language_lt": "Lituano",
"language_nl": "Olandese",
"language_pl": "Polacco",
"language_pt": "Portoghese"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"dedicated_server_monitoring": "Monitoring"
"dedicated_server_monitoring": "Monitoring",
"language_cz": "Czeski",
"language_de": "Niemiecki",
"language_en": "Angielski",
"language_es": "Hiszpański",
"language_fi": "Fiński",
"language_fr": "Francuski",
"language_ie": "irlandzki",
"language_it": "Włoski",
"language_lt": "Litewski",
"language_nl": "Holenderski",
"language_pl": "Polski",
"language_pt": "Portugalski"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"dedicated_server_monitoring": "Monitorização"
"dedicated_server_monitoring": "Monitorização",
"language_cz": "Checo ",
"language_de": "Alemão",
"language_en": "Inglês",
"language_es": "Espanhol",
"language_fi": "Finlandês",
"language_fr": "Francês",
"language_ie": "Irlandês",
"language_it": "Italiano ",
"language_lt": "Lituano ",
"language_nl": "Holandês",
"language_pl": "Polaco",
"language_pt": "Português"
}

0 comments on commit 760229b

Please sign in to comment.