diff --git a/packages/survey-core/entries/chunks/model.ts b/packages/survey-core/entries/chunks/model.ts index 3b9be16b9d..aa0d770761 100644 --- a/packages/survey-core/entries/chunks/model.ts +++ b/packages/survey-core/entries/chunks/model.ts @@ -243,7 +243,7 @@ export { Cover, CoverCell } from "../../src/header"; export { dxSurveyService } from "../../src/dxSurveyService"; export { englishStrings } from "../../src/localization/english"; -export { surveyLocalization, surveyStrings, getLocaleString } from "../../src/surveyStrings"; +export { surveyLocalization, surveyStrings, getLocaleString, setupLocale } from "../../src/surveyStrings"; // export { cultureInfo } from "../../src/cultureInfo"; export { QuestionCustomWidget, diff --git a/packages/survey-core/src/localization/arabic.ts b/packages/survey-core/src/localization/arabic.ts index 823d54b319..b91df486bf 100644 --- a/packages/survey-core/src/localization/arabic.ts +++ b/packages/survey-core/src/localization/arabic.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var arabicSurveyStrings = { pagePrevText: "السابق", @@ -110,7 +110,7 @@ export var arabicSurveyStrings = { cancel: "إلغاء الأمر" }; -surveyLocalization.setupLocale("ar", arabicSurveyStrings, "العربية", "Arabic", "rtl"); +setupLocale({ localeCode: "ar", strings: arabicSurveyStrings, nativeName: "العربية", englishName: "Arabic", rtl: true }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("ar", arabicSurveyStrings, "العربية", "Ara // cancel: "Cancel" => "إلغاء الأمر" // refuseItemText: "Refuse to answer" => "رفض الإجابة" // dontKnowItemText: "Don't know" => "لا أعرف"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "ردك يتجاوز 64 كيلوبايت. يرجى تقليل حجم الملف (الملفات) والمحاولة مرة أخرى أو الاتصال بمالك الاستطلاع." -// signaturePlaceHolderReadOnly: "No signature" => "لا يوجد توقيع"// tabTitlePlaceholder: "New Panel" => "لوحة جديدة"// deselectAllItemText: "Deselect all" => "إلغاء تحديد الكل" +// signaturePlaceHolderReadOnly: "No signature" => "لا يوجد توقيع"// tabTitlePlaceholder: "New Panel" => "لوحة جديدة"// deselectAllItemText: "Deselect all" => "إلغاء تحديد الكل" // textNoDigitsAllow: "Numbers are not allowed." => "الأرقام غير مسموح بها." \ No newline at end of file diff --git a/packages/survey-core/src/localization/basque.ts b/packages/survey-core/src/localization/basque.ts index 5ab664b1bf..21713ef4c9 100644 --- a/packages/survey-core/src/localization/basque.ts +++ b/packages/survey-core/src/localization/basque.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var basqueSurveyStrings = { pagePrevText: "Aurrekoa", @@ -110,7 +110,7 @@ export var basqueSurveyStrings = { cancel: "Ezeztatu" }; -surveyLocalization.setupLocale("eu", basqueSurveyStrings, "euskara", "Basque"); +setupLocale({ localeCode: "eu", strings: basqueSurveyStrings, nativeName: "euskara", englishName: "Basque" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -136,5 +136,5 @@ surveyLocalization.setupLocale("eu", basqueSurveyStrings, "euskara", "Basque"); // cancel: "Cancel" => "Ezeztatu" // refuseItemText: "Refuse to answer" => "Erantzuteari uko egin" // dontKnowItemText: "Don't know" => "Ez dakit"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Erantzuna 64 KB-tik gorakoa da. Murriztu artxiboaren tamaina, eta berriro saiatu edo jarri harremanetan inkesta baten jabearekin." -// signaturePlaceHolderReadOnly: "No signature" => "Sinadurarik gabe"// tabTitlePlaceholder: "New Panel" => "Panel berria"// deselectAllItemText: "Deselect all" => "Guztiaren aukeraketa bertan behera utzi" +// signaturePlaceHolderReadOnly: "No signature" => "Sinadurarik gabe"// tabTitlePlaceholder: "New Panel" => "Panel berria"// deselectAllItemText: "Deselect all" => "Guztiaren aukeraketa bertan behera utzi" // textNoDigitsAllow: "Numbers are not allowed." => "Ezin da zenbakirik egin." \ No newline at end of file diff --git a/packages/survey-core/src/localization/bulgarian.ts b/packages/survey-core/src/localization/bulgarian.ts index c7cba8e61f..0778d85482 100644 --- a/packages/survey-core/src/localization/bulgarian.ts +++ b/packages/survey-core/src/localization/bulgarian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var bulgarianStrings = { pagePrevText: "Назад", @@ -110,7 +110,7 @@ export var bulgarianStrings = { cancel: "Отмени" }; -surveyLocalization.setupLocale("bg", bulgarianStrings, "български", "Bulgarian"); +setupLocale({ localeCode: "bg", strings: bulgarianStrings, nativeName: "български", englishName: "Bulgarian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("bg", bulgarianStrings, "български", "Bu // cancel: "Cancel" => "Отмени" // refuseItemText: "Refuse to answer" => "Отказва да отговори" // dontKnowItemText: "Don't know" => "Не знам"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Вашият отговор надхвърля 64KB. Намалете размера на вашите файлове и опитайте отново или се свържете със собственика на проучването." -// signaturePlaceHolderReadOnly: "No signature" => "Няма подпис"// tabTitlePlaceholder: "New Panel" => "Нов панел"// deselectAllItemText: "Deselect all" => "Премахване на избора на всички" +// signaturePlaceHolderReadOnly: "No signature" => "Няма подпис"// tabTitlePlaceholder: "New Panel" => "Нов панел"// deselectAllItemText: "Deselect all" => "Премахване на избора на всички" // textNoDigitsAllow: "Numbers are not allowed." => "Номерата не са позволени." \ No newline at end of file diff --git a/packages/survey-core/src/localization/catalan.ts b/packages/survey-core/src/localization/catalan.ts index ab7c90fc07..c647156b31 100644 --- a/packages/survey-core/src/localization/catalan.ts +++ b/packages/survey-core/src/localization/catalan.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var catalanSurveyStrings = { pagePrevText: "Anterior", @@ -110,7 +110,8 @@ export var catalanSurveyStrings = { cancel: "Cancel·lar" }; -surveyLocalization.setupLocale("ca", catalanSurveyStrings, "català", "Catalan"); +setupLocale({ localeCode: "ca", strings: catalanSurveyStrings, nativeName: "català", englishName: "Catalan" }); + // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually // previewText: "Preview" => "Preestrena" @@ -182,5 +183,5 @@ surveyLocalization.setupLocale("ca", catalanSurveyStrings, "català", "Catalan") // cancel: "Cancel" => "Cancel·lar" // refuseItemText: "Refuse to answer" => "Negar-se a respondre" // dontKnowItemText: "Don't know" => "No sé"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "La teva resposta supera els 64KB. Reduïu la mida dels fitxers i torneu-ho a provar o poseu-vos en contacte amb el propietari de l'enquesta." -// signaturePlaceHolderReadOnly: "No signature" => "Sense signatura"// tabTitlePlaceholder: "New Panel" => "Nou Panell"// deselectAllItemText: "Deselect all" => "Desselecciona-ho tot" +// signaturePlaceHolderReadOnly: "No signature" => "Sense signatura"// tabTitlePlaceholder: "New Panel" => "Nou Panell"// deselectAllItemText: "Deselect all" => "Desselecciona-ho tot" // textNoDigitsAllow: "Numbers are not allowed." => "No es permeten números." \ No newline at end of file diff --git a/packages/survey-core/src/localization/croatian.ts b/packages/survey-core/src/localization/croatian.ts index 7ebc6e54f2..6158e12310 100644 --- a/packages/survey-core/src/localization/croatian.ts +++ b/packages/survey-core/src/localization/croatian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var croatianStrings = { pagePrevText: "Prethodni", @@ -110,7 +110,7 @@ export var croatianStrings = { cancel: "Otkazati" }; -surveyLocalization.setupLocale("hr", croatianStrings, "hrvatski", "Croatian"); +setupLocale({ localeCode: "hr", strings: croatianStrings, nativeName: "hrvatski", englishName: "Croatian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -141,5 +141,5 @@ surveyLocalization.setupLocale("hr", croatianStrings, "hrvatski", "Croatian"); // cancel: "Cancel" => "Otkazati" // refuseItemText: "Refuse to answer" => "Odbijte odgovoriti" // dontKnowItemText: "Don't know" => "Ne znam"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Vaš odgovor premašuje 64KB. Smanjite veličinu datoteka i pokušajte ponovno ili se obratite vlasniku upitnika." -// signaturePlaceHolderReadOnly: "No signature" => "Bez potpisa"// tabTitlePlaceholder: "New Panel" => "Nova ploča"// deselectAllItemText: "Deselect all" => "Poništite odabir svega" +// signaturePlaceHolderReadOnly: "No signature" => "Bez potpisa"// tabTitlePlaceholder: "New Panel" => "Nova ploča"// deselectAllItemText: "Deselect all" => "Poništite odabir svega" // textNoDigitsAllow: "Numbers are not allowed." => "Brojevi nisu dopušteni." \ No newline at end of file diff --git a/packages/survey-core/src/localization/czech.ts b/packages/survey-core/src/localization/czech.ts index 0ec2744172..52d20c9d19 100644 --- a/packages/survey-core/src/localization/czech.ts +++ b/packages/survey-core/src/localization/czech.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var czechSurveyStrings = { pagePrevText: "Předchozí", @@ -110,7 +110,7 @@ export var czechSurveyStrings = { cancel: "Zrušit" }; -surveyLocalization.setupLocale("cs", czechSurveyStrings, "čeština", "Czech"); +setupLocale({ localeCode: "cs", strings: czechSurveyStrings, nativeName: "čeština", englishName: "Czech" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("cs", czechSurveyStrings, "čeština", "Czech"); // cancel: "Cancel" => "Zrušit" // refuseItemText: "Refuse to answer" => "Odmítnout odpovědět" // dontKnowItemText: "Don't know" => "Nevím"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Vaše odpověď překračuje 64 kB. Zmenšete prosím velikost svých souborů a zkuste to znovu nebo kontaktujte vlastníka průzkumu." -// signaturePlaceHolderReadOnly: "No signature" => "Bez podpisu"// tabTitlePlaceholder: "New Panel" => "Nový panel"// deselectAllItemText: "Deselect all" => "Zrušit výběr všech" +// signaturePlaceHolderReadOnly: "No signature" => "Bez podpisu"// tabTitlePlaceholder: "New Panel" => "Nový panel"// deselectAllItemText: "Deselect all" => "Zrušit výběr všech" // textNoDigitsAllow: "Numbers are not allowed." => "Čísla nejsou povolena." \ No newline at end of file diff --git a/packages/survey-core/src/localization/danish.ts b/packages/survey-core/src/localization/danish.ts index d7b8443ad6..ddb024c974 100644 --- a/packages/survey-core/src/localization/danish.ts +++ b/packages/survey-core/src/localization/danish.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var danishSurveyStrings = { pagePrevText: "Tilbage", @@ -110,7 +110,7 @@ export var danishSurveyStrings = { cancel: "Aflyse" }; -surveyLocalization.setupLocale("da", danishSurveyStrings, "dansk", "Danish"); +setupLocale({ localeCode: "da", strings: danishSurveyStrings, nativeName: "dansk", englishName: "Danish" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("da", danishSurveyStrings, "dansk", "Danish"); // cancel: "Cancel" => "Aflyse" // refuseItemText: "Refuse to answer" => "Nægt at svare" // dontKnowItemText: "Don't know" => "Ved ikke"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Dit svar overstiger 64 KB. Reducer størrelsen på din(e) fil(er), og prøv igen, eller kontakt en undersøgelsesejer." -// signaturePlaceHolderReadOnly: "No signature" => "Ingen underskrift"// tabTitlePlaceholder: "New Panel" => "Nyt panel"// deselectAllItemText: "Deselect all" => "Fravælg alle" +// signaturePlaceHolderReadOnly: "No signature" => "Ingen underskrift"// tabTitlePlaceholder: "New Panel" => "Nyt panel"// deselectAllItemText: "Deselect all" => "Fravælg alle" // textNoDigitsAllow: "Numbers are not allowed." => "Numre er ikke tilladt." \ No newline at end of file diff --git a/packages/survey-core/src/localization/dutch.ts b/packages/survey-core/src/localization/dutch.ts index 0357257056..1f81fcb444 100644 --- a/packages/survey-core/src/localization/dutch.ts +++ b/packages/survey-core/src/localization/dutch.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var dutchSurveyStrings = { pagePrevText: "Vorige", @@ -110,7 +110,7 @@ export var dutchSurveyStrings = { cancel: "Annuleren" }; -surveyLocalization.setupLocale("nl", dutchSurveyStrings, "nederlands", "Dutch"); +setupLocale({ localeCode: "nl", strings: dutchSurveyStrings, nativeName: "nederlands", englishName: "Dutch" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -141,5 +141,5 @@ surveyLocalization.setupLocale("nl", dutchSurveyStrings, "nederlands", "Dutch"); // cancel: "Cancel" => "Annuleren" // refuseItemText: "Refuse to answer" => "Weiger te antwoorden" // dontKnowItemText: "Don't know" => "Weet niet"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Uw antwoord is groter dan 64 kB. Verklein de grootte van uw bestand(en) en probeer het opnieuw of neem contact op met een enquête-eigenaar." -// signaturePlaceHolderReadOnly: "No signature" => "Geen handtekening"// tabTitlePlaceholder: "New Panel" => "Nieuw paneel"// deselectAllItemText: "Deselect all" => "Alles deselecteren" +// signaturePlaceHolderReadOnly: "No signature" => "Geen handtekening"// tabTitlePlaceholder: "New Panel" => "Nieuw paneel"// deselectAllItemText: "Deselect all" => "Alles deselecteren" // textNoDigitsAllow: "Numbers are not allowed." => "Nummers zijn niet toegestaan." \ No newline at end of file diff --git a/packages/survey-core/src/localization/english.ts b/packages/survey-core/src/localization/english.ts index 6183f644fb..1c4855c27d 100644 --- a/packages/survey-core/src/localization/english.ts +++ b/packages/survey-core/src/localization/english.ts @@ -1,5 +1,5 @@ // Uncomment the line below if you create a custom dictionary -// import { surveyLocalization } from "survey-core"; +// import { setupLocale } from "survey-core"; export var englishStrings = { pagePrevText: "Previous", @@ -114,4 +114,4 @@ export var englishStrings = { // Uncomment the lines below if you create a custom dictionary. // Replace "en" with a custom locale code (for example, "fr" or "de"), // Replace `englishStrings` with the name of the variable that contains the custom dictionary. -//surveyLocalization.setupLocale("en", englishStrings, "English", "English"); +//setupLocale({ localeCode: "en", strings: englishStrings, nativeName: "English", englishName: "English" }); diff --git a/packages/survey-core/src/localization/estonian.ts b/packages/survey-core/src/localization/estonian.ts index cc0819b6b3..572237be4f 100644 --- a/packages/survey-core/src/localization/estonian.ts +++ b/packages/survey-core/src/localization/estonian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var estonianSurveyStrings = { pagePrevText: "Tagasi", @@ -110,7 +110,7 @@ export var estonianSurveyStrings = { cancel: "Tühistama" }; -surveyLocalization.setupLocale("et", estonianSurveyStrings, "eesti keel", "Estonian"); +setupLocale({ localeCode: "et", strings: estonianSurveyStrings, nativeName: "eesti keel", englishName: "Estonian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("et", estonianSurveyStrings, "eesti keel", "Eston // cancel: "Cancel" => "Tühistama" // refuseItemText: "Refuse to answer" => "Keeldu vastamast" // dontKnowItemText: "Don't know" => "Ei tea"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Teie vastus ületab 64 KB. Vähendage faili(de) mahtu ja proovige uuesti või võtke ühendust uuringu omanikuga." -// signaturePlaceHolderReadOnly: "No signature" => "Allkiri puudub"// tabTitlePlaceholder: "New Panel" => "Uus paneel"// deselectAllItemText: "Deselect all" => "Kõigi valiku tühistamine" +// signaturePlaceHolderReadOnly: "No signature" => "Allkiri puudub"// tabTitlePlaceholder: "New Panel" => "Uus paneel"// deselectAllItemText: "Deselect all" => "Kõigi valiku tühistamine" // textNoDigitsAllow: "Numbers are not allowed." => "Numbrid ei ole lubatud." \ No newline at end of file diff --git a/packages/survey-core/src/localization/finnish.ts b/packages/survey-core/src/localization/finnish.ts index b555390b4f..3934a9b4d4 100644 --- a/packages/survey-core/src/localization/finnish.ts +++ b/packages/survey-core/src/localization/finnish.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var finnishSurveyStrings = { pagePrevText: "Edellinen", @@ -110,7 +110,7 @@ export var finnishSurveyStrings = { cancel: "Perua" }; -surveyLocalization.setupLocale("fi", finnishSurveyStrings, "suomi", "Finnish"); +setupLocale({ localeCode: "fi", strings: finnishSurveyStrings, nativeName: "suomi", englishName: "Finnish" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -131,5 +131,5 @@ surveyLocalization.setupLocale("fi", finnishSurveyStrings, "suomi", "Finnish"); // cancel: "Cancel" => "Perua" // refuseItemText: "Refuse to answer" => "Kieltäydy vastaamasta" // dontKnowItemText: "Don't know" => "Ei tiedä"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Vastauksesi ylittää 64 kt. Pienennä tiedostojesi kokoa ja yritä uudelleen tai ota yhteyttä kyselyn omistajaan." -// signaturePlaceHolderReadOnly: "No signature" => "Ei allekirjoitusta"// tabTitlePlaceholder: "New Panel" => "Uusi paneeli"// deselectAllItemText: "Deselect all" => "Poista kaikkien valinta" +// signaturePlaceHolderReadOnly: "No signature" => "Ei allekirjoitusta"// tabTitlePlaceholder: "New Panel" => "Uusi paneeli"// deselectAllItemText: "Deselect all" => "Poista kaikkien valinta" // textNoDigitsAllow: "Numbers are not allowed." => "Numerot eivät ole sallittuja." \ No newline at end of file diff --git a/packages/survey-core/src/localization/french.ts b/packages/survey-core/src/localization/french.ts index 7f47aad08d..b1f61ebc21 100644 --- a/packages/survey-core/src/localization/french.ts +++ b/packages/survey-core/src/localization/french.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var frenchSurveyStrings = { pagePrevText: "Précédent", @@ -110,7 +110,7 @@ export var frenchSurveyStrings = { cancel: "Annuler" }; -surveyLocalization.setupLocale("fr", frenchSurveyStrings, "français", "French"); +setupLocale({ localeCode: "fr", strings: frenchSurveyStrings, nativeName: "français", englishName: "French" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -131,5 +131,5 @@ surveyLocalization.setupLocale("fr", frenchSurveyStrings, "français", "French") // cancel: "Cancel" => "Annuler" // refuseItemText: "Refuse to answer" => "Refuser de répondre" // dontKnowItemText: "Don't know" => "Sais pas"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Votre réponse dépasse 64 Ko. Veuillez réduire la taille de votre ou vos fichiers et réessayer ou contacter un propriétaire de sondage." -// signaturePlaceHolderReadOnly: "No signature" => "Pas de signature"// tabTitlePlaceholder: "New Panel" => "Nouveau panneau"// deselectAllItemText: "Deselect all" => "Désélectionner tout" +// signaturePlaceHolderReadOnly: "No signature" => "Pas de signature"// tabTitlePlaceholder: "New Panel" => "Nouveau panneau"// deselectAllItemText: "Deselect all" => "Désélectionner tout" // textNoDigitsAllow: "Numbers are not allowed." => "Les numéros ne sont pas autorisés." \ No newline at end of file diff --git a/packages/survey-core/src/localization/georgian.ts b/packages/survey-core/src/localization/georgian.ts index 2bd2cd7a74..c6c460f231 100644 --- a/packages/survey-core/src/localization/georgian.ts +++ b/packages/survey-core/src/localization/georgian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var georgianSurveyStrings = { pagePrevText: "უკან", @@ -110,7 +110,7 @@ export var georgianSurveyStrings = { cancel: "გაუქმება" }; -surveyLocalization.setupLocale("ka", georgianSurveyStrings, "ქართული", "Georgian"); +setupLocale({ localeCode: "ka", strings: georgianSurveyStrings, nativeName: "ქართული", englishName: "Georgian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -196,5 +196,5 @@ surveyLocalization.setupLocale("ka", georgianSurveyStrings, "ქართულ // cancel: "Cancel" => "გაუქმება" // refuseItemText: "Refuse to answer" => "უარი პასუხზე" // dontKnowItemText: "Don't know" => "არ ვიცი"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "თქვენი პასუხი აღემატება 64KB. გთხოვთ, შეამციროთ თქვენი ფაილ(ებ)ის ზომა და სცადოთ ხელახლა ან დაუკავშირდეთ გამოკითხვის მფლობელს." -// signaturePlaceHolderReadOnly: "No signature" => "ხელმოწერა არ არის"// tabTitlePlaceholder: "New Panel" => "ახალი პანელი"// deselectAllItemText: "Deselect all" => "ყველას არჩევა" +// signaturePlaceHolderReadOnly: "No signature" => "ხელმოწერა არ არის"// tabTitlePlaceholder: "New Panel" => "ახალი პანელი"// deselectAllItemText: "Deselect all" => "ყველას არჩევა" // textNoDigitsAllow: "Numbers are not allowed." => "ნომრები არ არის დაშვებული." \ No newline at end of file diff --git a/packages/survey-core/src/localization/german.ts b/packages/survey-core/src/localization/german.ts index 358253724c..521e94e43b 100644 --- a/packages/survey-core/src/localization/german.ts +++ b/packages/survey-core/src/localization/german.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var germanSurveyStrings = { pagePrevText: "Zurück", @@ -110,9 +110,9 @@ export var germanSurveyStrings = { cancel: "Abbrechen" }; -surveyLocalization.setupLocale("de", germanSurveyStrings, "deutsch", "German"); +setupLocale({ localeCode: "de", strings: germanSurveyStrings, nativeName: "deutsch", englishName: "German" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually -// tabTitlePlaceholder: "New Panel" => "Neues Panel"// deselectAllItemText: "Deselect all" => "Alle abwählen" +// tabTitlePlaceholder: "New Panel" => "Neues Panel"// deselectAllItemText: "Deselect all" => "Alle abwählen" // textNoDigitsAllow: "Numbers are not allowed." => "Zahlen sind nicht erlaubt." \ No newline at end of file diff --git a/packages/survey-core/src/localization/greek.ts b/packages/survey-core/src/localization/greek.ts index 363a1540b5..622f6d4126 100644 --- a/packages/survey-core/src/localization/greek.ts +++ b/packages/survey-core/src/localization/greek.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var greekSurveyStrings = { pagePrevText: "Προηγούμενο", @@ -110,7 +110,7 @@ export var greekSurveyStrings = { cancel: "Ακυρώνω" }; -surveyLocalization.setupLocale("gr", greekSurveyStrings, "ελληνικά", "Greek"); +setupLocale({ localeCode: "gr", strings: greekSurveyStrings, nativeName: "ελληνικά", englishName: "Greek" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -128,5 +128,5 @@ surveyLocalization.setupLocale("gr", greekSurveyStrings, "ελληνικά", "Gr // cancel: "Cancel" => "Ακυρώνω" // refuseItemText: "Refuse to answer" => "Αρνηθείτε να απαντήσετε" // dontKnowItemText: "Don't know" => "Δεν ξέρω"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Η απάντησή σας υπερβαίνει τα 64KB. Μειώστε το μέγεθος των αρχείων σας και προσπαθήστε ξανά ή επικοινωνήστε με έναν κάτοχο έρευνας." -// signaturePlaceHolderReadOnly: "No signature" => "Χωρίς υπογραφή"// tabTitlePlaceholder: "New Panel" => "Νέο πάνελ"// deselectAllItemText: "Deselect all" => "Αποεπιλογή όλων" +// signaturePlaceHolderReadOnly: "No signature" => "Χωρίς υπογραφή"// tabTitlePlaceholder: "New Panel" => "Νέο πάνελ"// deselectAllItemText: "Deselect all" => "Αποεπιλογή όλων" // textNoDigitsAllow: "Numbers are not allowed." => "Οι αριθμοί δεν επιτρέπονται." \ No newline at end of file diff --git a/packages/survey-core/src/localization/hebrew.ts b/packages/survey-core/src/localization/hebrew.ts index 44e9a5de1b..8217dca11e 100644 --- a/packages/survey-core/src/localization/hebrew.ts +++ b/packages/survey-core/src/localization/hebrew.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var hebrewSurveyStrings = { pagePrevText: "אחורה", @@ -110,7 +110,7 @@ export var hebrewSurveyStrings = { cancel: "ביטל" }; -surveyLocalization.setupLocale("he", hebrewSurveyStrings, "עברית", "Hebrew"); +setupLocale({ localeCode: "he", strings: hebrewSurveyStrings, nativeName: "עברית", englishName: "Hebrew", rtl: true }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -144,5 +144,5 @@ surveyLocalization.setupLocale("he", hebrewSurveyStrings, "עברית", "Hebrew" // refuseItemText: "Refuse to answer" => "מסרבים לענות" // dontKnowItemText: "Don't know" => "לא יודע" // savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "תגובתך עולה על 64KB. הקטן את גודל הקבצים שלך ונסה שוב או פנה לבעלים של סקר." -// signaturePlaceHolderReadOnly: "No signature" => "אין חתימה"// tabTitlePlaceholder: "New Panel" => "פאנל חדש"// deselectAllItemText: "Deselect all" => "בטל את הבחירה בהכל" +// signaturePlaceHolderReadOnly: "No signature" => "אין חתימה"// tabTitlePlaceholder: "New Panel" => "פאנל חדש"// deselectAllItemText: "Deselect all" => "בטל את הבחירה בהכל" // textNoDigitsAllow: "Numbers are not allowed." => "מספרים אינם מותרים." \ No newline at end of file diff --git a/packages/survey-core/src/localization/hindi.ts b/packages/survey-core/src/localization/hindi.ts index 203c80ea08..d6744c0afc 100644 --- a/packages/survey-core/src/localization/hindi.ts +++ b/packages/survey-core/src/localization/hindi.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var hindiStrings = { pagePrevText: "पिछला", @@ -110,7 +110,7 @@ export var hindiStrings = { cancel: "रद्द करना" }; -surveyLocalization.setupLocale("hi", hindiStrings, "hindi", "Hindi"); +setupLocale({ localeCode: "hi", strings: hindiStrings, nativeName: "hindi", englishName: "Hindi" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("hi", hindiStrings, "hindi", "Hindi"); // ok: "OK" => "ठीक है" // cancel: "Cancel" => "रद्द करना"// refuseItemText: "Refuse to answer" => "जवाब देने से इनकार" // dontKnowItemText: "Don't know" => "नहीं मालूम"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "आपकी प्रतिक्रिया 64KB से अधिक है। कृपया अपनी फ़ाइल(फ़ाइलों) का आकार घटाएँ और पुन: प्रयास करें या सर्वेक्षण स्वामी से संपर्क करें." -// signaturePlaceHolderReadOnly: "No signature" => "कोई हस्ताक्षर नहीं"// tabTitlePlaceholder: "New Panel" => "नया पैनल"// deselectAllItemText: "Deselect all" => "सभी को अचयनित करें" +// signaturePlaceHolderReadOnly: "No signature" => "कोई हस्ताक्षर नहीं"// tabTitlePlaceholder: "New Panel" => "नया पैनल"// deselectAllItemText: "Deselect all" => "सभी को अचयनित करें" // textNoDigitsAllow: "Numbers are not allowed." => "संख्या की अनुमति नहीं है।" \ No newline at end of file diff --git a/packages/survey-core/src/localization/hungarian.ts b/packages/survey-core/src/localization/hungarian.ts index 4f90ae6f38..98fe0b3baf 100644 --- a/packages/survey-core/src/localization/hungarian.ts +++ b/packages/survey-core/src/localization/hungarian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var hungarianSurveyStrings = { pagePrevText: "Vissza", @@ -110,7 +110,7 @@ export var hungarianSurveyStrings = { cancel: "Érvénytelenít" }; -surveyLocalization.setupLocale("hu", hungarianSurveyStrings, "magyar", "Hungarian"); +setupLocale({ localeCode: "hu", strings: hungarianSurveyStrings, nativeName: "magyar", englishName: "Hungarian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -142,5 +142,5 @@ surveyLocalization.setupLocale("hu", hungarianSurveyStrings, "magyar", "Hungaria // cancel: "Cancel" => "Érvénytelenít" // refuseItemText: "Refuse to answer" => "A válaszadás megtagadása" // dontKnowItemText: "Don't know" => "Nem tudom"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "A válasz meghaladja a 64 KB-ot. Kérjük, csökkentse a fájl(ok) méretét, és próbálja újra, vagy lépjen kapcsolatba egy felmérés tulajdonosával." -// signaturePlaceHolderReadOnly: "No signature" => "Nincs aláírás"// tabTitlePlaceholder: "New Panel" => "Új panel"// deselectAllItemText: "Deselect all" => "Az összes kijelölésének megszüntetése" +// signaturePlaceHolderReadOnly: "No signature" => "Nincs aláírás"// tabTitlePlaceholder: "New Panel" => "Új panel"// deselectAllItemText: "Deselect all" => "Az összes kijelölésének megszüntetése" // textNoDigitsAllow: "Numbers are not allowed." => "Számok nem engedélyezettek." \ No newline at end of file diff --git a/packages/survey-core/src/localization/icelandic.ts b/packages/survey-core/src/localization/icelandic.ts index df7875f83a..8c2619240e 100644 --- a/packages/survey-core/src/localization/icelandic.ts +++ b/packages/survey-core/src/localization/icelandic.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var icelandicSurveyStrings = { pagePrevText: "Tilbaka", @@ -110,7 +110,7 @@ export var icelandicSurveyStrings = { cancel: "Afturkalla" }; -surveyLocalization.setupLocale("is", icelandicSurveyStrings, "íslenska", "Icelandic"); +setupLocale({ localeCode: "is", strings: icelandicSurveyStrings, nativeName: "íslenska", englishName: "Icelandic" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("is", icelandicSurveyStrings, "íslenska", "Icela // cancel: "Cancel" => "Afturkalla" // refuseItemText: "Refuse to answer" => "Neita að svara" // dontKnowItemText: "Don't know" => "Veit ekki"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Svar þitt fer yfir 64KB. Vinsamlegast minnkaðu stærð skráa þinna og reyndu aftur eða hafðu samband við eiganda könnunarinnar." -// signaturePlaceHolderReadOnly: "No signature" => "Engin undirskrift"// tabTitlePlaceholder: "New Panel" => "Nýtt spjald"// deselectAllItemText: "Deselect all" => "Afveljið allt" +// signaturePlaceHolderReadOnly: "No signature" => "Engin undirskrift"// tabTitlePlaceholder: "New Panel" => "Nýtt spjald"// deselectAllItemText: "Deselect all" => "Afveljið allt" // textNoDigitsAllow: "Numbers are not allowed." => "Tölur eru ekki leyfðar." \ No newline at end of file diff --git a/packages/survey-core/src/localization/indonesian.ts b/packages/survey-core/src/localization/indonesian.ts index 83dd438c6a..abb1cc70b3 100644 --- a/packages/survey-core/src/localization/indonesian.ts +++ b/packages/survey-core/src/localization/indonesian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var indonesianStrings = { pagePrevText: "Sebelumnya", @@ -110,7 +110,7 @@ export var indonesianStrings = { cancel: "Membatalkan" }; -surveyLocalization.setupLocale("id", indonesianStrings, "bahasa indonesia", "Indonesian"); +setupLocale({ localeCode: "id", strings: indonesianStrings, nativeName: "bahasa indonesia", englishName: "Indonesian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("id", indonesianStrings, "bahasa indonesia", "Ind // cancel: "Cancel" => "Membatalkan" // refuseItemText: "Refuse to answer" => "Menolak untuk menjawab" // dontKnowItemText: "Don't know" => "Tidak tahu"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Respons Anda melebihi 64 KB. Harap kurangi ukuran file Anda dan coba lagi atau hubungi pemilik survei." -// signaturePlaceHolderReadOnly: "No signature" => "Tidak ada tanda tangan"// tabTitlePlaceholder: "New Panel" => "Panel Baru"// deselectAllItemText: "Deselect all" => "Batalkan pilihan semua" +// signaturePlaceHolderReadOnly: "No signature" => "Tidak ada tanda tangan"// tabTitlePlaceholder: "New Panel" => "Panel Baru"// deselectAllItemText: "Deselect all" => "Batalkan pilihan semua" // textNoDigitsAllow: "Numbers are not allowed." => "Nomor tidak diperbolehkan." \ No newline at end of file diff --git a/packages/survey-core/src/localization/italian.ts b/packages/survey-core/src/localization/italian.ts index 74ab4e7654..f5b94e075a 100644 --- a/packages/survey-core/src/localization/italian.ts +++ b/packages/survey-core/src/localization/italian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var italianSurveyStrings = { pagePrevText: "Precedente", @@ -110,7 +110,7 @@ export var italianSurveyStrings = { cancel: "Annulla" }; -surveyLocalization.setupLocale("it", italianSurveyStrings, "italiano", "Italian"); +setupLocale({ localeCode: "it", strings: italianSurveyStrings, nativeName: "italiano", englishName: "Italian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -131,5 +131,5 @@ surveyLocalization.setupLocale("it", italianSurveyStrings, "italiano", "Italian" // cancel: "Cancel" => "Annulla" // refuseItemText: "Refuse to answer" => "Rifiuta di rispondere" // dontKnowItemText: "Don't know" => "Non lo so"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "La tua risposta supera i 64 KB. Riduci le dimensioni dei tuoi file e riprova o contatta il proprietario di un'indagine." -// signaturePlaceHolderReadOnly: "No signature" => "Nessuna firma"// tabTitlePlaceholder: "New Panel" => "Nuovo pannello"// deselectAllItemText: "Deselect all" => "Deseleziona tutto" +// signaturePlaceHolderReadOnly: "No signature" => "Nessuna firma"// tabTitlePlaceholder: "New Panel" => "Nuovo pannello"// deselectAllItemText: "Deselect all" => "Deseleziona tutto" // textNoDigitsAllow: "Numbers are not allowed." => "I numeri non sono ammessi." \ No newline at end of file diff --git a/packages/survey-core/src/localization/japanese.ts b/packages/survey-core/src/localization/japanese.ts index c617cd9dda..bd2317f9b7 100644 --- a/packages/survey-core/src/localization/japanese.ts +++ b/packages/survey-core/src/localization/japanese.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var japaneseSurveyStrings = { pagePrevText: "前へ", @@ -110,7 +110,7 @@ export var japaneseSurveyStrings = { cancel: "キャンセル" }; -surveyLocalization.setupLocale("ja", japaneseSurveyStrings, "日本語", "Japanese"); +setupLocale({ localeCode: "ja", strings: japaneseSurveyStrings, nativeName: "日本語", englishName: "Japanese" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -144,5 +144,5 @@ surveyLocalization.setupLocale("ja", japaneseSurveyStrings, "日本語", "Japane // refuseItemText: "Refuse to answer" => "回答を拒否する" // dontKnowItemText: "Don't know" => "わかりません"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "回答は 64 KB を超えています。ファイルのサイズを小さくしてもう一度お試しいただくか、アンケートの所有者にお問い合わせください。" // signaturePlaceHolderReadOnly: "No signature" => "署名なし"// tabTitlePlaceholder: "New Panel" => "新規パネル" -// deselectAllItemText: "Deselect all" => "すべて選択解除" +// deselectAllItemText: "Deselect all" => "すべて選択解除" // textNoDigitsAllow: "Numbers are not allowed." => "数字は使用できません。" \ No newline at end of file diff --git a/packages/survey-core/src/localization/kazakh.ts b/packages/survey-core/src/localization/kazakh.ts index 8ddf30781c..03deb60476 100644 --- a/packages/survey-core/src/localization/kazakh.ts +++ b/packages/survey-core/src/localization/kazakh.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var kazakhStrings = { pagePrevText: "Артқа", @@ -110,7 +110,8 @@ export var kazakhStrings = { cancel: "Болдырмау" }; -surveyLocalization.setupLocale("kk", kazakhStrings, "kazakh", "Kazakh"); +setupLocale({ localeCode: "kk", strings: kazakhStrings, nativeName: "kazakh", englishName: "Kazakh" }); + // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually // indexText: "{0} of {1}" => "{1} {0}" @@ -142,5 +143,5 @@ surveyLocalization.setupLocale("kk", kazakhStrings, "kazakh", "Kazakh"); // cancel: "Cancel" => "Болдырмау" // refuseItemText: "Refuse to answer" => "Жауап беруден бас тарту" // dontKnowItemText: "Don't know" => "Білмеймін"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Сіздің жауабыңыз 64КБ-тан асады. Файлдың өлшемін азайтып, қайталап көріңіз немесе сауалнама иесіне хабарласыңыз." -// signaturePlaceHolderReadOnly: "No signature" => "Қолдың No"// tabTitlePlaceholder: "New Panel" => "Жаңа панель"// deselectAllItemText: "Deselect all" => "Барлығын жоққа шығару" +// signaturePlaceHolderReadOnly: "No signature" => "Қолдың No"// tabTitlePlaceholder: "New Panel" => "Жаңа панель"// deselectAllItemText: "Deselect all" => "Барлығын жоққа шығару" // textNoDigitsAllow: "Numbers are not allowed." => "Нөмірлерді беруге жол берілмейді." \ No newline at end of file diff --git a/packages/survey-core/src/localization/korean.ts b/packages/survey-core/src/localization/korean.ts index 5be5d6a86d..48d34be0e0 100644 --- a/packages/survey-core/src/localization/korean.ts +++ b/packages/survey-core/src/localization/korean.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var koreanStrings = { pagePrevText: "이전", @@ -110,7 +110,7 @@ export var koreanStrings = { cancel: "취소" }; -surveyLocalization.setupLocale("ko", koreanStrings, "한국어", "Korean"); +setupLocale({ localeCode: "ko", strings: koreanStrings, nativeName: "한국어", englishName: "Korean" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -130,5 +130,5 @@ surveyLocalization.setupLocale("ko", koreanStrings, "한국어", "Korean"); // cancel: "Cancel" => "취소" // refuseItemText: "Refuse to answer" => "대답 거부" // dontKnowItemText: "Don't know" => "모르다"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "응답이 64KB를 초과합니다. 파일 크기를 줄인 후 다시 시도하거나 설문조사 소유자에게 문의하세요." -// signaturePlaceHolderReadOnly: "No signature" => "서명 없음"// tabTitlePlaceholder: "New Panel" => "새 패널"// deselectAllItemText: "Deselect all" => "모두 선택 해제" +// signaturePlaceHolderReadOnly: "No signature" => "서명 없음"// tabTitlePlaceholder: "New Panel" => "새 패널"// deselectAllItemText: "Deselect all" => "모두 선택 해제" // textNoDigitsAllow: "Numbers are not allowed." => "숫자는 허용되지 않습니다." \ No newline at end of file diff --git a/packages/survey-core/src/localization/latvian.ts b/packages/survey-core/src/localization/latvian.ts index 518fc582eb..a472b888b3 100644 --- a/packages/survey-core/src/localization/latvian.ts +++ b/packages/survey-core/src/localization/latvian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var latvianSurveyStrings = { pagePrevText: "Iepriekšēja lapa", @@ -110,7 +110,7 @@ export var latvianSurveyStrings = { cancel: "Atcelt" }; -surveyLocalization.setupLocale("lv", latvianSurveyStrings, "latviešu", "Latvian"); +setupLocale({ localeCode: "lv", strings: latvianSurveyStrings, nativeName: "latviešu", englishName: "Latvian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -131,5 +131,5 @@ surveyLocalization.setupLocale("lv", latvianSurveyStrings, "latviešu", "Latvian // cancel: "Cancel" => "Atcelt" // refuseItemText: "Refuse to answer" => "Atteikties atbildēt" // dontKnowItemText: "Don't know" => "Es nezinu"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Jūsu atbilde pārsniedz 64 KB. Lūdzu, samaziniet sava(-u) faila(-u) lielumu un mēģiniet vēlreiz vai sazinieties ar aptaujas īpašnieku." -// signaturePlaceHolderReadOnly: "No signature" => "Nav paraksta"// tabTitlePlaceholder: "New Panel" => "Jauns panelis"// deselectAllItemText: "Deselect all" => "Noņemt atlasi visiem" +// signaturePlaceHolderReadOnly: "No signature" => "Nav paraksta"// tabTitlePlaceholder: "New Panel" => "Jauns panelis"// deselectAllItemText: "Deselect all" => "Noņemt atlasi visiem" // textNoDigitsAllow: "Numbers are not allowed." => "Numuri nav atļauti." \ No newline at end of file diff --git a/packages/survey-core/src/localization/lithuanian.ts b/packages/survey-core/src/localization/lithuanian.ts index c97d43a40c..6a87d84472 100644 --- a/packages/survey-core/src/localization/lithuanian.ts +++ b/packages/survey-core/src/localization/lithuanian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var lithuaniaSurveyStrings = { pagePrevText: "Atgal", @@ -110,7 +110,7 @@ export var lithuaniaSurveyStrings = { cancel: "Atšaukti" }; -surveyLocalization.setupLocale("lt", lithuaniaSurveyStrings, "lietuvių", "Lithuanian"); +setupLocale({ localeCode: "lt", strings: lithuaniaSurveyStrings, nativeName: "lietuvių", englishName: "Lithuanian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("lt", lithuaniaSurveyStrings, "lietuvių", "Lithu // cancel: "Cancel" => "Atšaukti" // refuseItemText: "Refuse to answer" => "Atsisakyti atsakyti" // dontKnowItemText: "Don't know" => "Nežinau"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Jūsų atsakymas viršija 64 KB. Sumažinkite failo (-ų) dydį ir bandykite dar kartą arba susisiekite su apklausos savininku." -// signaturePlaceHolderReadOnly: "No signature" => "Nėra parašo"// tabTitlePlaceholder: "New Panel" => "Naujas skydelis"// deselectAllItemText: "Deselect all" => "Panaikinkite visų žymėjimą" +// signaturePlaceHolderReadOnly: "No signature" => "Nėra parašo"// tabTitlePlaceholder: "New Panel" => "Naujas skydelis"// deselectAllItemText: "Deselect all" => "Panaikinkite visų žymėjimą" // textNoDigitsAllow: "Numbers are not allowed." => "Numeriai neleidžiami." \ No newline at end of file diff --git a/packages/survey-core/src/localization/macedonian.ts b/packages/survey-core/src/localization/macedonian.ts index 62a1a7a120..009416a3d7 100644 --- a/packages/survey-core/src/localization/macedonian.ts +++ b/packages/survey-core/src/localization/macedonian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var macedonianSurveyStrings = { pagePrevText: "Претходна", @@ -110,7 +110,7 @@ export var macedonianSurveyStrings = { cancel: "Откажи" }; -surveyLocalization.setupLocale("mk", macedonianSurveyStrings, "македонски", "Macedonian"); +setupLocale({ localeCode: "mk", strings: macedonianSurveyStrings, nativeName: "македонски", englishName: "Macedonian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -137,5 +137,5 @@ surveyLocalization.setupLocale("mk", macedonianSurveyStrings, "македонс // cancel: "Cancel" => "Откажи" // refuseItemText: "Refuse to answer" => "Одбиј да одговориш." // dontKnowItemText: "Don't know" => "Не знам"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Вашиот одговор надминува 64KB. Ве молиме да ја намалите големината на вашата(ите) датотека(и) и обидете се повторно или контактирајте го сопственикот на истражувањето." -// signaturePlaceHolderReadOnly: "No signature" => "Нема потпис"// tabTitlePlaceholder: "New Panel" => "Нов панел"// deselectAllItemText: "Deselect all" => "Отстранете селекција на сите" +// signaturePlaceHolderReadOnly: "No signature" => "Нема потпис"// tabTitlePlaceholder: "New Panel" => "Нов панел"// deselectAllItemText: "Deselect all" => "Отстранете селекција на сите" // textNoDigitsAllow: "Numbers are not allowed." => "Броевите не се дозволени." \ No newline at end of file diff --git a/packages/survey-core/src/localization/malay.ts b/packages/survey-core/src/localization/malay.ts index f74aacdfe8..95dc8af470 100644 --- a/packages/survey-core/src/localization/malay.ts +++ b/packages/survey-core/src/localization/malay.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var malaySurveyStrings = { pagePrevText: "Sebelumnya", @@ -110,7 +110,7 @@ export var malaySurveyStrings = { cancel: "Batal" }; -surveyLocalization.setupLocale("ms", malaySurveyStrings, "melayu", "Malay"); +setupLocale({ localeCode: "ms", strings: malaySurveyStrings, nativeName: "melayu", englishName: "Malay" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -133,5 +133,5 @@ surveyLocalization.setupLocale("ms", malaySurveyStrings, "melayu", "Malay"); // cancel: "Cancel" => "Batal" // refuseItemText: "Refuse to answer" => "Enggan menjawab" // dontKnowItemText: "Don't know" => "Tak tahu"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Jawapan anda melebihi 64KB. Sila kurangkan saiz fail anda dan cuba lagi atau hubungi pemilik tinjauan." -// signaturePlaceHolderReadOnly: "No signature" => "Tiada tandatangan"// tabTitlePlaceholder: "New Panel" => "Panel Baru"// deselectAllItemText: "Deselect all" => "Nyahpilih semua" +// signaturePlaceHolderReadOnly: "No signature" => "Tiada tandatangan"// tabTitlePlaceholder: "New Panel" => "Panel Baru"// deselectAllItemText: "Deselect all" => "Nyahpilih semua" // textNoDigitsAllow: "Numbers are not allowed." => "Nombor tidak dibenarkan." \ No newline at end of file diff --git a/packages/survey-core/src/localization/nl-BE.ts b/packages/survey-core/src/localization/nl-BE.ts index e2ed7312ab..2aab13bd0f 100644 --- a/packages/survey-core/src/localization/nl-BE.ts +++ b/packages/survey-core/src/localization/nl-BE.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; import { dutchSurveyStrings } from "./dutch"; /** @@ -6,4 +6,4 @@ import { dutchSurveyStrings } from "./dutch"; * - Copy the Dutch set once and move forward as if it are 2 totally different languages * - Override the relevant strings only */ -surveyLocalization.setupLocale("nl-BE", dutchSurveyStrings, "vlaams", "Flemish"); +setupLocale({ localeCode: "nl-BE", strings: dutchSurveyStrings, nativeName: "vlaams", englishName: "Flemish" }); diff --git a/packages/survey-core/src/localization/norwegian.ts b/packages/survey-core/src/localization/norwegian.ts index e9253e3eed..aed993c6f1 100644 --- a/packages/survey-core/src/localization/norwegian.ts +++ b/packages/survey-core/src/localization/norwegian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var norwegianSurveyStrings = { pagePrevText: "Forrige", @@ -110,7 +110,7 @@ export var norwegianSurveyStrings = { cancel: "Annullere" }; -surveyLocalization.setupLocale("no", norwegianSurveyStrings, "norsk", "Norwegian"); +setupLocale({ localeCode: "no", strings: norwegianSurveyStrings, nativeName: "norsk", englishName: "Norwegian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("no", norwegianSurveyStrings, "norsk", "Norwegian // cancel: "Cancel" => "Annullere" // refuseItemText: "Refuse to answer" => "Nekter å svare" // dontKnowItemText: "Don't know" => "Vet ikke"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Svaret ditt overstiger 64 kB. Reduser størrelsen på filen(e) din(e), og prøv på nytt, eller kontakt eieren av en spørreundersøkelse." -// signaturePlaceHolderReadOnly: "No signature" => "Ingen signatur"// tabTitlePlaceholder: "New Panel" => "Nytt panel"// deselectAllItemText: "Deselect all" => "Fjern merket for alle" +// signaturePlaceHolderReadOnly: "No signature" => "Ingen signatur"// tabTitlePlaceholder: "New Panel" => "Nytt panel"// deselectAllItemText: "Deselect all" => "Fjern merket for alle" // textNoDigitsAllow: "Numbers are not allowed." => "Tall er ikke tillatt." \ No newline at end of file diff --git a/packages/survey-core/src/localization/persian.ts b/packages/survey-core/src/localization/persian.ts index ea54f892ee..dbb0598adc 100644 --- a/packages/survey-core/src/localization/persian.ts +++ b/packages/survey-core/src/localization/persian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var persianSurveyStrings = { pagePrevText: "قبلی", @@ -110,7 +110,7 @@ export var persianSurveyStrings = { cancel: "لغو" }; -surveyLocalization.setupLocale("fa", persianSurveyStrings, "فارْسِى", "Persian"); +setupLocale({ localeCode: "fa", strings: persianSurveyStrings, nativeName: "فارْسِى", englishName: "Persian", rtl: true }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("fa", persianSurveyStrings, "فارْسِى", "Pe // cancel: "Cancel" => "لغو" // refuseItemText: "Refuse to answer" => "امتناع از پاسخ دادن" // dontKnowItemText: "Don't know" => "نمی دانم"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "پاسخ شما بیش از 64KB است. لطفا اندازه فایل(های) خود را کاهش دهید و دوباره تلاش کنید یا با صاحب نظرسنجی تماس بگیرید." -// signaturePlaceHolderReadOnly: "No signature" => "بدون امضا"// tabTitlePlaceholder: "New Panel" => "پنل جدید"// deselectAllItemText: "Deselect all" => "لغو انتخاب همه" +// signaturePlaceHolderReadOnly: "No signature" => "بدون امضا"// tabTitlePlaceholder: "New Panel" => "پنل جدید"// deselectAllItemText: "Deselect all" => "لغو انتخاب همه" // textNoDigitsAllow: "Numbers are not allowed." => "شماره ها مجاز نیستند." \ No newline at end of file diff --git a/packages/survey-core/src/localization/philippines.ts b/packages/survey-core/src/localization/philippines.ts index fd0626b587..0fdf6abd07 100644 --- a/packages/survey-core/src/localization/philippines.ts +++ b/packages/survey-core/src/localization/philippines.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var philippinesStrings = { pagePrevText: "Nakaraang", @@ -113,7 +113,7 @@ export var philippinesStrings = { // Uncomment the lines below if you create a custom dictionary. // Replace "en" with a custom locale code (for example, "fr" or "de"), // Replace `englishStrings` with the name of the variable that contains the custom dictionary. -surveyLocalization.setupLocale("fil", philippinesStrings, "filipino", "Filipino"); +setupLocale({ localeCode: "fil", strings: philippinesStrings, nativeName: "filipino", englishName: "Filipino" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually diff --git a/packages/survey-core/src/localization/polish.ts b/packages/survey-core/src/localization/polish.ts index 42d7651d76..858abbaa55 100644 --- a/packages/survey-core/src/localization/polish.ts +++ b/packages/survey-core/src/localization/polish.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var polishSurveyStrings = { pagePrevText: "Wstecz", @@ -110,7 +110,7 @@ export var polishSurveyStrings = { cancel: "Anuluj" }; -surveyLocalization.setupLocale("pl", polishSurveyStrings, "polski", "Polish"); +setupLocale({ localeCode: "pl", strings: polishSurveyStrings, nativeName: "polski", englishName: "Polish" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -131,5 +131,5 @@ surveyLocalization.setupLocale("pl", polishSurveyStrings, "polski", "Polish"); // cancel: "Cancel" => "Anuluj" // refuseItemText: "Refuse to answer" => "Odmów odpowiedzi" // dontKnowItemText: "Don't know" => "Nie wiem"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Twoja odpowiedź przekracza 64 KB. Zmniejsz rozmiar plików i spróbuj ponownie lub skontaktuj się z właścicielem ankiety." -// signaturePlaceHolderReadOnly: "No signature" => "Brak podpisu"// tabTitlePlaceholder: "New Panel" => "Nowy panel"// deselectAllItemText: "Deselect all" => "Odznacz wszystko" +// signaturePlaceHolderReadOnly: "No signature" => "Brak podpisu"// tabTitlePlaceholder: "New Panel" => "Nowy panel"// deselectAllItemText: "Deselect all" => "Odznacz wszystko" // textNoDigitsAllow: "Numbers are not allowed." => "Liczby są niedozwolone." \ No newline at end of file diff --git a/packages/survey-core/src/localization/portuguese-br.ts b/packages/survey-core/src/localization/portuguese-br.ts index 4b4b871d89..593d59a6a0 100644 --- a/packages/survey-core/src/localization/portuguese-br.ts +++ b/packages/survey-core/src/localization/portuguese-br.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; /** * You don't need to translate strings that have the same value as Portuguese translation */ @@ -112,7 +112,7 @@ export var portugueseBrSurveyStrings = { cancel: "Cancelar" }; -surveyLocalization.setupLocale("pt-br", portugueseBrSurveyStrings, "português brasileiro", "Brazilian Portuguese"); +setupLocale({ localeCode: "pt-br", strings: portugueseBrSurveyStrings, nativeName: "português brasileiro", englishName: "Brazilian Portuguese" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -192,5 +192,5 @@ surveyLocalization.setupLocale("pt-br", portugueseBrSurveyStrings, "português b // cancel: "Cancel" => "Cancelar" // refuseItemText: "Refuse to answer" => "Recusar-se a responder" // dontKnowItemText: "Don't know" => "Não sei"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Sua resposta excede 64KB. Reduza o tamanho do(s) seu(s) arquivo(s) e tente novamente ou entre em contato com o proprietário do questionário." -// signaturePlaceHolderReadOnly: "No signature" => "Sem assinatura"// tabTitlePlaceholder: "New Panel" => "Novo Painel"// deselectAllItemText: "Deselect all" => "Desmarcar tudo" +// signaturePlaceHolderReadOnly: "No signature" => "Sem assinatura"// tabTitlePlaceholder: "New Panel" => "Novo Painel"// deselectAllItemText: "Deselect all" => "Desmarcar tudo" // textNoDigitsAllow: "Numbers are not allowed." => "Números não são permitidos." \ No newline at end of file diff --git a/packages/survey-core/src/localization/portuguese.ts b/packages/survey-core/src/localization/portuguese.ts index 29ac47f5c1..0b92bf9545 100644 --- a/packages/survey-core/src/localization/portuguese.ts +++ b/packages/survey-core/src/localization/portuguese.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var portugueseSurveyStrings = { pagePrevText: "Anterior", @@ -110,7 +110,7 @@ export var portugueseSurveyStrings = { cancel: "Cancelar" }; -surveyLocalization.setupLocale("pt", portugueseSurveyStrings, "português", "Portuguese"); +setupLocale({ localeCode: "pt", strings: portugueseSurveyStrings, nativeName: "português", englishName: "Portuguese" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -128,5 +128,5 @@ surveyLocalization.setupLocale("pt", portugueseSurveyStrings, "português", "Por // cancel: "Cancel" => "Cancelar" // refuseItemText: "Refuse to answer" => "Recusar-se a responder" // dontKnowItemText: "Don't know" => "Não sei"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Sua resposta excede 64KB. Reduza o tamanho do(s) seu(s) arquivo(s) e tente novamente ou entre em contato com o proprietário do questionário." -// signaturePlaceHolderReadOnly: "No signature" => "Sem assinatura"// tabTitlePlaceholder: "New Panel" => "Novo Painel"// deselectAllItemText: "Deselect all" => "Desmarcar tudo" +// signaturePlaceHolderReadOnly: "No signature" => "Sem assinatura"// tabTitlePlaceholder: "New Panel" => "Novo Painel"// deselectAllItemText: "Deselect all" => "Desmarcar tudo" // textNoDigitsAllow: "Numbers are not allowed." => "Números não são permitidos." \ No newline at end of file diff --git a/packages/survey-core/src/localization/romanian.ts b/packages/survey-core/src/localization/romanian.ts index 3ade445637..113b0673ea 100644 --- a/packages/survey-core/src/localization/romanian.ts +++ b/packages/survey-core/src/localization/romanian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var romanianSurveyStrings: any = { pagePrevText: "Precedent", @@ -110,7 +110,7 @@ export var romanianSurveyStrings: any = { cancel: "Anula" }; -surveyLocalization.setupLocale("ro", romanianSurveyStrings, "română", "Romanian"); +setupLocale({ localeCode: "ro", strings: romanianSurveyStrings, nativeName: "română", englishName: "Romanian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("ro", romanianSurveyStrings, "română", "Romania // cancel: "Cancel" => "Anula" // refuseItemText: "Refuse to answer" => "Refuză să răspundă" // dontKnowItemText: "Don't know" => "Nu ştiu"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Răspunsul tău depășește 64KB. Reduceți dimensiunea fișierelor și încercați din nou sau contactați un proprietar de sondaj." -// signaturePlaceHolderReadOnly: "No signature" => "Fără semnătură"// tabTitlePlaceholder: "New Panel" => "Panou nou"// deselectAllItemText: "Deselect all" => "Deselectează tot" +// signaturePlaceHolderReadOnly: "No signature" => "Fără semnătură"// tabTitlePlaceholder: "New Panel" => "Panou nou"// deselectAllItemText: "Deselect all" => "Deselectează tot" // textNoDigitsAllow: "Numbers are not allowed." => "Numerele nu sunt permise." \ No newline at end of file diff --git a/packages/survey-core/src/localization/russian.ts b/packages/survey-core/src/localization/russian.ts index a686184668..8eb08a7008 100644 --- a/packages/survey-core/src/localization/russian.ts +++ b/packages/survey-core/src/localization/russian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var russianSurveyStrings = { pagePrevText: "Назад", @@ -110,7 +110,7 @@ export var russianSurveyStrings = { cancel: "Отмена" }; -surveyLocalization.setupLocale("ru", russianSurveyStrings, "русский", "Russian"); +setupLocale({ localeCode: "ru", strings: russianSurveyStrings, nativeName: "русский", englishName: "Russian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -127,5 +127,5 @@ surveyLocalization.setupLocale("ru", russianSurveyStrings, "русский", "Ru // showDetails: "Show Details" => "Показать подробности" // hideDetails: "Hide Details" => "Скрыть подробности" // cancel: "Cancel" => "Отмена"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Ваш ответ превышает 64 КБ. Уменьшите размер файла (файлов) и повторите попытку или обратитесь к владельцу опроса." -// signaturePlaceHolderReadOnly: "No signature" => "Без подписи"// tabTitlePlaceholder: "New Panel" => "Новая панель"// deselectAllItemText: "Deselect all" => "Отмена выбора всех" +// signaturePlaceHolderReadOnly: "No signature" => "Без подписи"// tabTitlePlaceholder: "New Panel" => "Новая панель"// deselectAllItemText: "Deselect all" => "Отмена выбора всех" // textNoDigitsAllow: "Numbers are not allowed." => "Номера не допускаются." \ No newline at end of file diff --git a/packages/survey-core/src/localization/serbian.ts b/packages/survey-core/src/localization/serbian.ts index b2a7c54aa3..00f8503715 100644 --- a/packages/survey-core/src/localization/serbian.ts +++ b/packages/survey-core/src/localization/serbian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var serbianStrings = { pagePrevText: "Nazad", @@ -110,8 +110,7 @@ export var serbianStrings = { cancel: "Otkaži" }; -//Uncomment these two lines on creating a translation file. You should replace "en" and enStrings with your locale ("fr", "de" and so on) and your variable. -surveyLocalization.setupLocale("rs", serbianStrings, "srpski", "Serbian"); +setupLocale({ localeCode: "rs", strings: serbianStrings, nativeName: "srpski", englishName: "Serbian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -138,5 +137,5 @@ surveyLocalization.setupLocale("rs", serbianStrings, "srpski", "Serbian"); // cancel: "Cancel" => "Otkaži" // refuseItemText: "Refuse to answer" => "Odbijanje odgovora" // dontKnowItemText: "Don't know" => "Ne znam"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Vaš odgovor premašuje 64KB. Smanjite veličinu datoteka i pokušajte ponovo ili se obratite vlasniku ankete." -// signaturePlaceHolderReadOnly: "No signature" => "Bez potpisa"// tabTitlePlaceholder: "New Panel" => "Nova tabla"// deselectAllItemText: "Deselect all" => "Poništi izbor svih" +// signaturePlaceHolderReadOnly: "No signature" => "Bez potpisa"// tabTitlePlaceholder: "New Panel" => "Nova tabla"// deselectAllItemText: "Deselect all" => "Poništi izbor svih" // textNoDigitsAllow: "Numbers are not allowed." => "Brojevi nisu dozvoljeni." \ No newline at end of file diff --git a/packages/survey-core/src/localization/simplified-chinese.ts b/packages/survey-core/src/localization/simplified-chinese.ts index 031a765879..cf5fcf9ae9 100644 --- a/packages/survey-core/src/localization/simplified-chinese.ts +++ b/packages/survey-core/src/localization/simplified-chinese.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var simplifiedChineseSurveyStrings = { pagePrevText: "上一页", @@ -110,7 +110,7 @@ export var simplifiedChineseSurveyStrings = { cancel: "取消" }; -surveyLocalization.setupLocale("zh-cn", simplifiedChineseSurveyStrings, "简体中文", "Simplified Chinese "); +setupLocale({ localeCode: "zh-cn", strings: simplifiedChineseSurveyStrings, nativeName: "简体中文", englishName: "Simplified Chinese" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -137,5 +137,5 @@ surveyLocalization.setupLocale("zh-cn", simplifiedChineseSurveyStrings, "简体 // cancel: "Cancel" => "取消" // refuseItemText: "Refuse to answer" => "拒绝回答" // dontKnowItemText: "Don't know" => "不知道"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "您的回复超过 64KB。请减小文件的大小,然后重试或联系调查所有者。" -// signaturePlaceHolderReadOnly: "No signature" => "无签名"// tabTitlePlaceholder: "New Panel" => "新面板"// deselectAllItemText: "Deselect all" => "取消全选" +// signaturePlaceHolderReadOnly: "No signature" => "无签名"// tabTitlePlaceholder: "New Panel" => "新面板"// deselectAllItemText: "Deselect all" => "取消全选" // textNoDigitsAllow: "Numbers are not allowed." => "不允许使用数字。" \ No newline at end of file diff --git a/packages/survey-core/src/localization/slovak.ts b/packages/survey-core/src/localization/slovak.ts index 7f2df18a23..4c10840160 100644 --- a/packages/survey-core/src/localization/slovak.ts +++ b/packages/survey-core/src/localization/slovak.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var slovakSurveyStrings = { pagePrevText: "Predchádzajúca", @@ -110,7 +110,7 @@ export var slovakSurveyStrings = { cancel: "Zrušiť" }; -surveyLocalization.setupLocale("sk", slovakSurveyStrings, "slovak", "Slovak"); +setupLocale({ localeCode: "sk", strings: slovakSurveyStrings, nativeName: "slovak", englishName: "Slovak" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -133,5 +133,5 @@ surveyLocalization.setupLocale("sk", slovakSurveyStrings, "slovak", "Slovak"); // cancel: "Cancel" => "Zrušiť" // refuseItemText: "Refuse to answer" => "Odmietnuť odpovedať" // dontKnowItemText: "Don't know" => "Neviem"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Vaša odpoveď presahuje 64 kB. Zmenšite veľkosť svojich súborov a skúste to znova alebo kontaktujte vlastníka prieskumu." -// signaturePlaceHolderReadOnly: "No signature" => "Bez podpisu"// tabTitlePlaceholder: "New Panel" => "Nový panel"// deselectAllItemText: "Deselect all" => "Zrušte výber všetkých" +// signaturePlaceHolderReadOnly: "No signature" => "Bez podpisu"// tabTitlePlaceholder: "New Panel" => "Nový panel"// deselectAllItemText: "Deselect all" => "Zrušte výber všetkých" // textNoDigitsAllow: "Numbers are not allowed." => "Čísla nie sú povolené." \ No newline at end of file diff --git a/packages/survey-core/src/localization/spanish.ts b/packages/survey-core/src/localization/spanish.ts index 5a930c84d3..85d6878ff0 100644 --- a/packages/survey-core/src/localization/spanish.ts +++ b/packages/survey-core/src/localization/spanish.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var spanishSurveyStrings = { pagePrevText: "Anterior", @@ -110,7 +110,7 @@ export var spanishSurveyStrings = { cancel: "Cancelar" }; -surveyLocalization.setupLocale("es", spanishSurveyStrings, "español", "Spanish"); +setupLocale({ localeCode: "es", strings: spanishSurveyStrings, nativeName: "español", englishName: "Spanish" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -131,5 +131,5 @@ surveyLocalization.setupLocale("es", spanishSurveyStrings, "español", "Spanish" // cancel: "Cancel" => "Cancelar" // refuseItemText: "Refuse to answer" => "Negarse a responder" // dontKnowItemText: "Don't know" => "No sé"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Su respuesta supera los 64 KB. Reduzca el tamaño de su(s) archivo(s) e inténtelo de nuevo o póngase en contacto con el propietario de una encuesta." -// signaturePlaceHolderReadOnly: "No signature" => "Sin firma"// tabTitlePlaceholder: "New Panel" => "Nuevo panel"// deselectAllItemText: "Deselect all" => "Anular la selección de todo" +// signaturePlaceHolderReadOnly: "No signature" => "Sin firma"// tabTitlePlaceholder: "New Panel" => "Nuevo panel"// deselectAllItemText: "Deselect all" => "Anular la selección de todo" // textNoDigitsAllow: "Numbers are not allowed." => "No se permiten números." \ No newline at end of file diff --git a/packages/survey-core/src/localization/swahili.ts b/packages/survey-core/src/localization/swahili.ts index 4f19e31e59..123f7b9f56 100644 --- a/packages/survey-core/src/localization/swahili.ts +++ b/packages/survey-core/src/localization/swahili.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var swahiliStrings = { pagePrevText: "Iliyotangulia", @@ -110,7 +110,7 @@ export var swahiliStrings = { cancel: "Katisha" }; -surveyLocalization.setupLocale("sw", swahiliStrings, "swahili", "Swahili"); +setupLocale({ localeCode: "sw", strings: swahiliStrings, nativeName: "swahili", englishName: "Swahili" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("sw", swahiliStrings, "swahili", "Swahili"); // cancel: "Cancel" => "Katisha" // refuseItemText: "Refuse to answer" => "Kukataa kujibu" // dontKnowItemText: "Don't know" => "Sijui"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Jibu lako ni zaidi ya 64KB. Tafadhali punguza ukubwa wa faili yako na jaribu tena au wasiliana na mmiliki wa utafiti." -// signaturePlaceHolderReadOnly: "No signature" => "Hakuna saini"// tabTitlePlaceholder: "New Panel" => "Jopo Jipya"// deselectAllItemText: "Deselect all" => "Delete All" +// signaturePlaceHolderReadOnly: "No signature" => "Hakuna saini"// tabTitlePlaceholder: "New Panel" => "Jopo Jipya"// deselectAllItemText: "Deselect all" => "Delete All" // textNoDigitsAllow: "Numbers are not allowed." => "Hesabu haziruhusiwi." \ No newline at end of file diff --git a/packages/survey-core/src/localization/swedish.ts b/packages/survey-core/src/localization/swedish.ts index 0151e2337b..7b00ed480c 100644 --- a/packages/survey-core/src/localization/swedish.ts +++ b/packages/survey-core/src/localization/swedish.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var swedishSurveyStrings = { pagePrevText: "Föregående", @@ -110,7 +110,7 @@ export var swedishSurveyStrings = { cancel: "Annullera" }; -surveyLocalization.setupLocale("sv", swedishSurveyStrings, "svenska", "Swedish"); +setupLocale({ localeCode: "sv", strings: swedishSurveyStrings, nativeName: "svenska", englishName: "Swedish" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -131,5 +131,5 @@ surveyLocalization.setupLocale("sv", swedishSurveyStrings, "svenska", "Swedish") // cancel: "Cancel" => "Annullera" // refuseItemText: "Refuse to answer" => "Vägra svara" // dontKnowItemText: "Don't know" => "Vet inte"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Ditt svar överskrider 64 kB. Minska storleken på dina filer och försök igen eller kontakta en undersökningsägare." -// signaturePlaceHolderReadOnly: "No signature" => "Ingen signatur"// tabTitlePlaceholder: "New Panel" => "Ny panel"// deselectAllItemText: "Deselect all" => "Avmarkera alla" +// signaturePlaceHolderReadOnly: "No signature" => "Ingen signatur"// tabTitlePlaceholder: "New Panel" => "Ny panel"// deselectAllItemText: "Deselect all" => "Avmarkera alla" // textNoDigitsAllow: "Numbers are not allowed." => "Nummer är inte tillåtna." \ No newline at end of file diff --git a/packages/survey-core/src/localization/tajik.ts b/packages/survey-core/src/localization/tajik.ts index 1ea233569c..597e7a6cca 100644 --- a/packages/survey-core/src/localization/tajik.ts +++ b/packages/survey-core/src/localization/tajik.ts @@ -1,6 +1,6 @@ // This dictionary contains 25 untranslated or inherited localization strings. // These strings are commented out. Uncomment and edit them if you want to add your translations. -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var tajikSurveyStrings = { pagePrevText: "Бозгашт", @@ -90,4 +90,4 @@ export var tajikSurveyStrings = { // more: "More" }; -surveyLocalization.setupLocale("tg", tajikSurveyStrings, "тоҷикӣ", "Tajik"); +setupLocale({ localeCode: "tg", strings: tajikSurveyStrings, nativeName: "тоҷикӣ", englishName: "Tajik" }); diff --git a/packages/survey-core/src/localization/telugu.ts b/packages/survey-core/src/localization/telugu.ts index e0a509c45c..ad4bf5c607 100644 --- a/packages/survey-core/src/localization/telugu.ts +++ b/packages/survey-core/src/localization/telugu.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var teluguStrings = { pagePrevText: "వెనకటి", @@ -110,7 +110,7 @@ export var teluguStrings = { cancel: "రద్దు" }; -surveyLocalization.setupLocale("tel", teluguStrings, "telugu", "Telugu"); +setupLocale({ localeCode: "tel", strings: teluguStrings, nativeName: "telugu", englishName: "Telugu" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +143,5 @@ surveyLocalization.setupLocale("tel", teluguStrings, "telugu", "Telugu"); // ok: "OK" => "సరే" // cancel: "Cancel" => "రద్దు"// refuseItemText: "Refuse to answer" => "సమాధానం ఇవ్వడానికి నిరాకరించండి" // dontKnowItemText: "Don't know" => "తెలియదు"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "మీ ప్రతిస్పందన 64KBని మించిపోయింది. దయచేసి మీ ఫైల్(లు) పరిమాణాన్ని తగ్గించండి మరియు మళ్లీ ప్రయత్నించండి లేదా సర్వే యజమానిని సంప్రదించండి." -// signaturePlaceHolderReadOnly: "No signature" => "సంతకం లేదు"// tabTitlePlaceholder: "New Panel" => "కొత్త ప్యానెల్"// deselectAllItemText: "Deselect all" => "Deselect all" +// signaturePlaceHolderReadOnly: "No signature" => "సంతకం లేదు"// tabTitlePlaceholder: "New Panel" => "కొత్త ప్యానెల్"// deselectAllItemText: "Deselect all" => "Deselect all" // textNoDigitsAllow: "Numbers are not allowed." => "అంకెలు అనుమతించబడవు." \ No newline at end of file diff --git a/packages/survey-core/src/localization/thai.ts b/packages/survey-core/src/localization/thai.ts index 1c286ca6c6..a774614f15 100644 --- a/packages/survey-core/src/localization/thai.ts +++ b/packages/survey-core/src/localization/thai.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var thaiStrings = { pagePrevText: "ก่อนหน้า", @@ -110,7 +110,7 @@ export var thaiStrings = { cancel: "ยกเลิก" }; -surveyLocalization.setupLocale("th", thaiStrings, "ไทย", "Thai"); +setupLocale({ localeCode: "th", strings: thaiStrings, nativeName: "ไทย", englishName: "Thai" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -142,5 +142,5 @@ surveyLocalization.setupLocale("th", thaiStrings, "ไทย", "Thai"); // ok: "OK" => "ตกลง, ได้" // cancel: "Cancel" => "ยกเลิก"// refuseItemText: "Refuse to answer" => "ปฏิเสธที่จะตอบ" // dontKnowItemText: "Don't know" => "ไม่ทราบ"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "คําตอบของคุณเกิน 64KB โปรดลดขนาดไฟล์ของคุณแล้วลองอีกครั้งหรือติดต่อเจ้าของแบบสํารวจ" -// signaturePlaceHolderReadOnly: "No signature" => "ไม่มีลายเซ็น"// tabTitlePlaceholder: "New Panel" => "แผงใหม่"// deselectAllItemText: "Deselect all" => "ยกเลิกการเลือกทั้งหมด" +// signaturePlaceHolderReadOnly: "No signature" => "ไม่มีลายเซ็น"// tabTitlePlaceholder: "New Panel" => "แผงใหม่"// deselectAllItemText: "Deselect all" => "ยกเลิกการเลือกทั้งหมด" // textNoDigitsAllow: "Numbers are not allowed." => "ไม่อนุญาตให้ใช้หมายเลข" \ No newline at end of file diff --git a/packages/survey-core/src/localization/traditional-chinese.ts b/packages/survey-core/src/localization/traditional-chinese.ts index 77f713a24b..9fa7127c49 100644 --- a/packages/survey-core/src/localization/traditional-chinese.ts +++ b/packages/survey-core/src/localization/traditional-chinese.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var traditionalChineseSurveyStrings = { pagePrevText: "上一頁", @@ -110,7 +110,7 @@ export var traditionalChineseSurveyStrings = { cancel: "取消" }; -surveyLocalization.setupLocale("zh-tw", traditionalChineseSurveyStrings, "繁體中文", "Tranditional Chinese"); +setupLocale({ localeCode: "zh-tw", strings: traditionalChineseSurveyStrings, nativeName: "繁體中文", englishName: "Tranditional Chinese" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -177,5 +177,5 @@ surveyLocalization.setupLocale("zh-tw", traditionalChineseSurveyStrings, "繁體 // ok: "OK" => "還行" // cancel: "Cancel" => "取消"// refuseItemText: "Refuse to answer" => "拒絕回答" // dontKnowItemText: "Don't know" => "不知道"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "您的回復超過 64KB。請減小檔的大小,然後重試或聯繫調查擁有者。" -// signaturePlaceHolderReadOnly: "No signature" => "無簽名"// tabTitlePlaceholder: "New Panel" => "新面板"// deselectAllItemText: "Deselect all" => "取消全選" +// signaturePlaceHolderReadOnly: "No signature" => "無簽名"// tabTitlePlaceholder: "New Panel" => "新面板"// deselectAllItemText: "Deselect all" => "取消全選" // textNoDigitsAllow: "Numbers are not allowed." => "不允許使用數位。" \ No newline at end of file diff --git a/packages/survey-core/src/localization/turkish.ts b/packages/survey-core/src/localization/turkish.ts index 7a20640e0e..2410e48b4e 100644 --- a/packages/survey-core/src/localization/turkish.ts +++ b/packages/survey-core/src/localization/turkish.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var turkishSurveyStrings = { pagePrevText: "Önceki", @@ -110,7 +110,7 @@ export var turkishSurveyStrings = { cancel: "İptal" }; -surveyLocalization.setupLocale("tr", turkishSurveyStrings, "türkçe", "Turkish"); +setupLocale({ localeCode: "tr", strings: turkishSurveyStrings, nativeName: "türkçe", englishName: "Turkish" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -124,5 +124,5 @@ surveyLocalization.setupLocale("tr", turkishSurveyStrings, "türkçe", "Turkish" // ok: "OK" => "TAMAM" // cancel: "Cancel" => "İptal"// refuseItemText: "Refuse to answer" => "Cevap vermeyi reddet" // dontKnowItemText: "Don't know" => "Bilmiyorum"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Yanıtınız 64 KB'ı aşıyor. Lütfen dosyalarınızın boyutunu küçültün ve tekrar deneyin veya bir anket sahibiyle iletişime geçin." -// signaturePlaceHolderReadOnly: "No signature" => "İmza yok"// tabTitlePlaceholder: "New Panel" => "Yeni Panel"// deselectAllItemText: "Deselect all" => "Tümünün seçimini kaldır" +// signaturePlaceHolderReadOnly: "No signature" => "İmza yok"// tabTitlePlaceholder: "New Panel" => "Yeni Panel"// deselectAllItemText: "Deselect all" => "Tümünün seçimini kaldır" // textNoDigitsAllow: "Numbers are not allowed." => "Numaralara izin verilmez." \ No newline at end of file diff --git a/packages/survey-core/src/localization/ukrainian.ts b/packages/survey-core/src/localization/ukrainian.ts index 93658d332c..e8c32d157f 100644 --- a/packages/survey-core/src/localization/ukrainian.ts +++ b/packages/survey-core/src/localization/ukrainian.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var ukrainianSurveyStrings = { pagePrevText: "Назад", @@ -110,7 +110,7 @@ export var ukrainianSurveyStrings = { cancel: "Скасувати" }; -surveyLocalization.setupLocale("ua", ukrainianSurveyStrings, "українська", "Ukrainian"); +setupLocale({ localeCode: "ua", strings: ukrainianSurveyStrings, nativeName: "українська", englishName: "Ukrainian" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -142,5 +142,5 @@ surveyLocalization.setupLocale("ua", ukrainianSurveyStrings, "українськ // ok: "OK" => "ГАРАЗД" // cancel: "Cancel" => "Скасувати"// refuseItemText: "Refuse to answer" => "Відмовтеся відповідати" // dontKnowItemText: "Don't know" => "Не знаю"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Ваша відповідь перевищує 64 КБ. Будь ласка, зменшіть розмір файлу (файлів) і повторіть спробу або зв'яжіться з власником опитування." -// signaturePlaceHolderReadOnly: "No signature" => "Без підпису"// tabTitlePlaceholder: "New Panel" => "Нова панель"// deselectAllItemText: "Deselect all" => "Зніміть позначку з усіх" +// signaturePlaceHolderReadOnly: "No signature" => "Без підпису"// tabTitlePlaceholder: "New Panel" => "Нова панель"// deselectAllItemText: "Deselect all" => "Зніміть позначку з усіх" // textNoDigitsAllow: "Numbers are not allowed." => "Номери не допускаються." \ No newline at end of file diff --git a/packages/survey-core/src/localization/urdu.ts b/packages/survey-core/src/localization/urdu.ts index 8f03547d9f..b900f30914 100644 --- a/packages/survey-core/src/localization/urdu.ts +++ b/packages/survey-core/src/localization/urdu.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var urduSurveyStrings = { pagePrevText: "پچھلا", @@ -110,8 +110,7 @@ export var urduSurveyStrings = { cancel: "منسوخ" }; -//Uncomment these two lines on creating a translation file. You should replace "en" and enStrings with your locale ("fr", "de" and so on) and your variable. -surveyLocalization.setupLocale("ur", urduSurveyStrings, "urdu", "Urdu"); +setupLocale({ localeCode: "ur", strings: urduSurveyStrings, nativeName: "urdu", englishName: "Urdu" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -135,5 +134,5 @@ surveyLocalization.setupLocale("ur", urduSurveyStrings, "urdu", "Urdu"); // ok: "OK" => "ٹھيک ہے" // cancel: "Cancel" => "منسوخ"// refuseItemText: "Refuse to answer" => "جواب دینے سے انکار" // dontKnowItemText: "Don't know" => "معلوم نہيں"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "آپ کا جواب 64KB سے تجاوز کر گیا ہے۔ براہ کرم اپنی فائل کا سائز کم کریں اور دوبارہ کوشش کریں یا سروے کے مالک سے رابطہ کریں۔" -// signaturePlaceHolderReadOnly: "No signature" => "کوئی دستخط نہیں"// tabTitlePlaceholder: "New Panel" => "نیا پینل"// deselectAllItemText: "Deselect all" => "Deselect all" +// signaturePlaceHolderReadOnly: "No signature" => "کوئی دستخط نہیں"// tabTitlePlaceholder: "New Panel" => "نیا پینل"// deselectAllItemText: "Deselect all" => "Deselect all" // textNoDigitsAllow: "Numbers are not allowed." => "نمبروں کی اجازت نہیں ہے۔" \ No newline at end of file diff --git a/packages/survey-core/src/localization/vietnamese.ts b/packages/survey-core/src/localization/vietnamese.ts index 7b81f97065..f686e1ac06 100644 --- a/packages/survey-core/src/localization/vietnamese.ts +++ b/packages/survey-core/src/localization/vietnamese.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var vietnameseSurveyStrings = { pagePrevText: "Trở về", @@ -110,8 +110,7 @@ export var vietnameseSurveyStrings = { cancel: "Hủy" }; -//Uncomment these two lines on creating a translation file. You should replace "en" and enStrings with your locale ("fr", "de" and so on) and your variable. -surveyLocalization.setupLocale("vi", vietnameseSurveyStrings, "việt nam", "Vietnamese"); +setupLocale({ localeCode: "vi", strings: vietnameseSurveyStrings, nativeName: "việt nam", englishName: "Vietnamese" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -143,5 +142,5 @@ surveyLocalization.setupLocale("vi", vietnameseSurveyStrings, "việt nam", "Vie // ok: "OK" => "OK" // cancel: "Cancel" => "Hủy"// refuseItemText: "Refuse to answer" => "Từ chối trả lời" // dontKnowItemText: "Don't know" => "Không biết"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Phản hồi của bạn vượt quá 64KB. Vui lòng giảm kích thước (các) tệp của bạn và thử lại hoặc liên hệ với chủ sở hữu khảo sát." -// signaturePlaceHolderReadOnly: "No signature" => "Không có chữ ký"// tabTitlePlaceholder: "New Panel" => "Bảng điều khiển mới"// deselectAllItemText: "Deselect all" => "Bỏ chọn tất cả" +// signaturePlaceHolderReadOnly: "No signature" => "Không có chữ ký"// tabTitlePlaceholder: "New Panel" => "Bảng điều khiển mới"// deselectAllItemText: "Deselect all" => "Bỏ chọn tất cả" // textNoDigitsAllow: "Numbers are not allowed." => "Số không được phép." \ No newline at end of file diff --git a/packages/survey-core/src/localization/welsh.ts b/packages/survey-core/src/localization/welsh.ts index 8d9a8ae1a1..86cbdca2d9 100644 --- a/packages/survey-core/src/localization/welsh.ts +++ b/packages/survey-core/src/localization/welsh.ts @@ -1,4 +1,4 @@ -import { surveyLocalization } from "survey-core"; +import { setupLocale } from "survey-core"; export var welshSurveyStrings = { pagePrevText: "Blaenorol", @@ -110,7 +110,7 @@ export var welshSurveyStrings = { cancel: "Canslo" }; -surveyLocalization.setupLocale("cy", welshSurveyStrings, "cymraeg", "Welsh"); +setupLocale({ localeCode: "cy", strings: welshSurveyStrings, nativeName: "cymraeg", englishName: "Welsh" }); // The following strings have been translated by a machine translation service // Remove those strings that you have corrected manually @@ -142,5 +142,5 @@ surveyLocalization.setupLocale("cy", welshSurveyStrings, "cymraeg", "Welsh"); // ok: "OK" => "OCÊ" // cancel: "Cancel" => "Canslo"// refuseItemText: "Refuse to answer" => "Gwrthod ateb" // dontKnowItemText: "Don't know" => "Ddim yn gwybod"// savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner." => "Mae eich ymateb yn fwy na 64KB. Lleihau maint eich ffeil(au) a cheisiwch eto neu cysylltwch â pherchennog yr arolwg." -// signaturePlaceHolderReadOnly: "No signature" => "Dim llofnod"// tabTitlePlaceholder: "New Panel" => "Panel newydd"// deselectAllItemText: "Deselect all" => "Dad-ddethol yr holl" +// signaturePlaceHolderReadOnly: "No signature" => "Dim llofnod"// tabTitlePlaceholder: "New Panel" => "Panel newydd"// deselectAllItemText: "Deselect all" => "Dad-ddethol yr holl" // textNoDigitsAllow: "Numbers are not allowed." => "Ni chaniateir rhifau." \ No newline at end of file diff --git a/packages/survey-core/src/surveyStrings.ts b/packages/survey-core/src/surveyStrings.ts index a6baa38c37..2227b0e4f7 100644 --- a/packages/survey-core/src/surveyStrings.ts +++ b/packages/survey-core/src/surveyStrings.ts @@ -101,6 +101,9 @@ export var surveyLocalization = { export function getLocaleString(strName: string, locale: string = null): string { return surveyLocalization.getString(strName, locale); } +export function setupLocale(localeConfig: { localeCode: string, strings: any, nativeName: string, englishName: string, rtl?: boolean }): void { + surveyLocalization.setupLocale(localeConfig.localeCode, localeConfig.strings, localeConfig.nativeName, localeConfig.englishName, localeConfig.rtl ? "rtl" : undefined); +} export var surveyStrings = englishStrings; (surveyLocalization).locales["en"] = englishStrings; (surveyLocalization).localeNames["en"] = "english";