Skip to content

Commit

Permalink
add i18n translations using IBM Watson Language Translator service
Browse files Browse the repository at this point in the history
probably not perfect, but hopefully a good starting point;
PRs are welcome.
  • Loading branch information
warren-bank committed Feb 24, 2022
1 parent 0ab56ce commit 7057859
Show file tree
Hide file tree
Showing 55 changed files with 3,710 additions and 1,262 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
/dist/PrivacyPass.xpi
/dist/.bin/**/temp/

/public/_locales/debug.en.txt

*.swp
2,615 changes: 1,356 additions & 1,259 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "privacy-pass",
"version": "3.6.6",
"version": "3.7.0",
"private": true,
"contributors": [
"Suphanat Chunhapanya <[email protected]>",
Expand All @@ -17,7 +17,9 @@
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"lint": "eslint ./src/**/*.{ts,tsx}",
"clean": "rimraf lib && rimraf dist/PrivacyPass && rimraf dist/PrivacyPass.crx* && rimraf dist/PrivacyPass.xpi",
"sjcl": "cd node_modules/sjcl && perl configure --without-all --with-ecc --with-convenience --with-codecBytes --with-codecHex --compress=none && make sjcl.js"
"sjcl": "cd node_modules/sjcl && perl configure --without-all --with-ecc --with-convenience --with-codecBytes --with-codecHex --compress=none && make sjcl.js",
"translate": "translate-webextension-strings -i \"en\" -f \"public/_locales/en/messages.json\" -d \"public/_locales\" -m -b \"Privacy Pass\" -b \"'manifest.json'\" -b \"'@popup[^']+'\" -b \"JSON\" -b \"Cloudflare\" -b \"hCaptcha\" -b \"Github\"",
"translate:debug": "translate-webextension-strings -i \"en\" -o \"en\" -f \"public/_locales/en/messages.json\" -d \"public/_locales\" --debug -b \"Privacy Pass\" -b \"'manifest.json'\" -b \"'@popup[^']+'\" -b \"JSON\" -b \"Cloudflare\" -b \"hCaptcha\" -b \"Github\""
},
"dependencies": {
"asn1-parser": "^1.1.8",
Expand All @@ -40,6 +42,7 @@
"@types/react-dom": "^17.0.5",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"@warren-bank/translate-webextension-strings": "^1.0.0",
"copy-webpack-plugin": "^8.1.1",
"css-loader": "^5.2.4",
"eslint": "^7.32.0",
Expand Down
46 changes: 46 additions & 0 deletions public/_locales/ar/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"appName": {
"message": "Privacy Pass",
"description": "اسم الامتداد المتضمن بواسطة 'manifest.json', وعرضه بواسطة '@popup/components/Header'."
},
"appDescription": {
"message": "دعم Client ل ـ Privacy Pass بروتوكول التفويض غير المعروف.",
"description": "وصف اللاحقة المتضمنة بواسطة 'manifest.json'."
},
"labelFileBackup": {
"message": "نسخة احتياطية",
"description": "العلامة المميزة المتضمنة في اسم الملف المفترض JSON عمل نسخ احتياطية بواسطة '@popup/store'."
},
"labelAppVersion": {
"message": "النسخة",
"description": "التسمية الخاصة بنسخة الامتداد الحالية التي يتم عرضها بواسطة '@popup/components/Header'."
},
"providerNameCloudflare": {
"message": "Cloudflare",
"description": "اسم Cloudflare عرض جهة الاتاحة بواسطة '@popup/components/CloudflareButton'."
},
"providerNameHcaptcha": {
"message": "hCaptcha",
"description": "اسم hCaptcha عرض جهة الاتاحة بواسطة '@popup/components/HcaptchaButton'."
},
"ctaGetMorePasses": {
"message": "الحصول على المزيد من التصاريح!",
"description": "يتم عرض نص mouseover بواسطة '@popup/components/PassButton'."
},
"ctaBackupAllPasses": {
"message": "عمل نسخة احتياطية لكل المؤخرات",
"description": "معروض بواسطة '@popup/components/BackupButton'."
},
"ctaRestorePasses": {
"message": "استعادة P من النسخة الاحتياطية",
"description": "معروض بواسطة '@popup/components/RestoreButton'."
},
"ctaClearAllPasses": {
"message": "محو كل الحمير",
"description": "معروض بواسطة '@popup/components/ClearButton'."
},
"ctaViewOnGithub": {
"message": "مشاهدة على Github",
"description": "معروض بواسطة '@popup/components/GithubButton'."
}
}
46 changes: 46 additions & 0 deletions public/_locales/bg/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"appName": {
"message": "Privacy Pass",
"description": "име на разширението, включено в 'manifest.json', и се показва от '@popup/components/Header'."
},
"appDescription": {
"message": "Клиентска поддръжка за Privacy Pass Анонимно разрешение протокол.",
"description": "описание на разширението, включено в 'manifest.json'."
},
"labelFileBackup": {
"message": "архивиране.",
"description": "етикет, включен в името на файла по подразбиране на JSON резервни копия, генерирани от '@popup/store'."
},
"labelAppVersion": {
"message": "Версия:",
"description": "етикет на текущата версия на разширение, показвана от '@popup/components/Header'."
},
"providerNameCloudflare": {
"message": "Cloudflare",
"description": "Име: Cloudflare доставчик, показан от '@popup/components/CloudflareButton'."
},
"providerNameHcaptcha": {
"message": "hCaptcha",
"description": "Име: hCaptcha доставчик, показан от '@popup/components/HcaptchaButton'."
},
"ctaGetMorePasses": {
"message": "Още пасове.!",
"description": "mouseover текст, показан от '@popup/components/PassButton'."
},
"ctaBackupAllPasses": {
"message": "Архивиране на всички пропуски",
"description": "се показва от '@popup/components/BackupButton'."
},
"ctaRestorePasses": {
"message": "Възстановяване на пропуски от архив",
"description": "се показва от '@popup/components/RestoreButton'."
},
"ctaClearAllPasses": {
"message": "Изчистете всички.",
"description": "се показва от '@popup/components/ClearButton'."
},
"ctaViewOnGithub": {
"message": "Преглед на: Github",
"description": "се показва от '@popup/components/GithubButton'."
}
}
46 changes: 46 additions & 0 deletions public/_locales/bn/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"appName": {
"message": "Privacy Pass",
"description": "এর মধ্যে অন্তর্ভুক্ত এক্সটেনশনের নাম 'manifest.json', এবং প্রদর্শিত '@popup/components/Header'."
},
"appDescription": {
"message": "ক্লায়েন্ট সমর্থন Privacy Pass অজ্ঞাতনামা অনুমোদনের প্রোটোকল.",
"description": "এক্সটেনশন এর বর্ণনা 'manifest.json'."
},
"labelFileBackup": {
"message": "ব্যাকআপ",
"description": "লেবেল অন্তর্ভুক্ত ছিল ডিফল্ট ফাইলের নাম JSON @ info: status '@popup/store'."
},
"labelAppVersion": {
"message": "সংস্করণ",
"description": "দ্বারা প্রদর্শিত বর্তমান এক্সটেনশন সংস্করণের লেবেল '@popup/components/Header'."
},
"providerNameCloudflare": {
"message": "Cloudflare",
"description": "নাম: Cloudflare প্রদানকারী দ্বারা প্রদর্শিত '@popup/components/CloudflareButton'."
},
"providerNameHcaptcha": {
"message": "hCaptcha",
"description": "নাম: hCaptcha প্রদানকারী দ্বারা প্রদর্শিত '@popup/components/HcaptchaButton'."
},
"ctaGetMorePasses": {
"message": "আরো পাশ নিয়ে যাও!",
"description": "দ্বারা প্রদর্শিত মুখ্য লেখা '@popup/components/PassButton'."
},
"ctaBackupAllPasses": {
"message": "সমস্ত পাসওয়ার্ড ব্যাকআপ করো",
"description": "দ্বারা প্রদর্শিত '@popup/components/BackupButton'."
},
"ctaRestorePasses": {
"message": "ব্যাকআপ থেকে পাসওয়ার্ড পুনরুদ্ধার করুন",
"description": "দ্বারা প্রদর্শিত '@popup/components/RestoreButton'."
},
"ctaClearAllPasses": {
"message": "সমস্ত পাসওয়ার্ড মুছে ফেলুন",
"description": "দ্বারা প্রদর্শিত '@popup/components/ClearButton'."
},
"ctaViewOnGithub": {
"message": "ভিউ Github",
"description": "দ্বারা প্রদর্শিত '@popup/components/GithubButton'."
}
}
46 changes: 46 additions & 0 deletions public/_locales/bs/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"appName": {
"message": "Privacy Pass",
"description": "ime produžetka uključeno u 'manifest.json', i prikazuje ih '@popup/components/Header'."
},
"appDescription": {
"message": "Podrška klijentu za Privacy Pass anonimni autorizacijski protokol.",
"description": "opis produženja uključenog u 'manifest.json'."
},
"labelFileBackup": {
"message": "sigurnosna kopija",
"description": "oznaka uključena u default ime datoteke JSON sigurnosne kopije generirane '@popup/store'."
},
"labelAppVersion": {
"message": "Verzija",
"description": "oznaka trenutne verzije proširenja prikazanu '@popup/components/Header'."
},
"providerNameCloudflare": {
"message": "Cloudflare",
"description": "ime od Cloudflare davatelj je prikazan '@popup/components/CloudflareButton'."
},
"providerNameHcaptcha": {
"message": "hCaptcha",
"description": "ime od hCaptcha davatelj je prikazan '@popup/components/HcaptchaButton'."
},
"ctaGetMorePasses": {
"message": "Donesi još propusnica.!",
"description": "Tekst koji prikazuje tekst koji se prikazuje '@popup/components/PassButton'."
},
"ctaBackupAllPasses": {
"message": "Napravite sigurnosnu kopiju.",
"description": "Prikazano u '@popup/components/BackupButton'."
},
"ctaRestorePasses": {
"message": "Vrati Propusnice Iz Backup-a",
"description": "Prikazano u '@popup/components/RestoreButton'."
},
"ctaClearAllPasses": {
"message": "Očisti Sve Propusnice",
"description": "Prikazano u '@popup/components/ClearButton'."
},
"ctaViewOnGithub": {
"message": "Pogled na Github",
"description": "Prikazano u '@popup/components/GithubButton'."
}
}
46 changes: 46 additions & 0 deletions public/_locales/cnr/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"appName": {
"message": "Privacy Pass",
"description": "Ime produžetka uključeno u 'manifest.json', I prikazala ga je '@popup/components/Header'."
},
"appDescription": {
"message": "Podrška klijentima za Privacy Pass Anonimni autorizacijski protokol..",
"description": "Prevod i adaptacija: Opis: 'manifest.json'."
},
"labelFileBackup": {
"message": "Hvala.",
"description": "Oznaka je uključena u zadano ime. JSON Kopije koje su generirale '@popup/store'."
},
"labelAppVersion": {
"message": "Verzija.",
"description": "Oznaka za trenutnu verziju produženja. '@popup/components/Header'."
},
"providerNameCloudflare": {
"message": "Cloudflare",
"description": "I ... Cloudflare Danilo Leksi '@popup/components/CloudflareButton'."
},
"providerNameHcaptcha": {
"message": "hCaptcha",
"description": "I ... hCaptcha Danilo Leksi '@popup/components/HcaptchaButton'."
},
"ctaGetMorePasses": {
"message": "Daj mi još propusnice.!",
"description": "Izgovarajući tekst koji se prikazuje '@popup/components/PassButton'."
},
"ctaBackupAllPasses": {
"message": "Sve propusnice.",
"description": "Prikazao je '@popup/components/BackupButton'."
},
"ctaRestorePasses": {
"message": "Povrati propusnice od pojačanja.",
"description": "Prikazao je '@popup/components/RestoreButton'."
},
"ctaClearAllPasses": {
"message": "Očistite sve propusnice.",
"description": "Prikazao je '@popup/components/ClearButton'."
},
"ctaViewOnGithub": {
"message": "Pogled na Github",
"description": "Prikazao je '@popup/components/GithubButton'."
}
}
46 changes: 46 additions & 0 deletions public/_locales/cs/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"appName": {
"message": "Privacy Pass",
"description": "název rozšíření zahrnutého 'manifest.json', a zobrazí se '@popup/components/Header'."
},
"appDescription": {
"message": "Podpora klienta pro Privacy Pass anonymní autorizační protokol.",
"description": "popis rozšíření zahrnutou 'manifest.json'."
},
"labelFileBackup": {
"message": "zálohování",
"description": "popisek je obsažen ve výchozím názvu souboru JSON zálohy generované '@popup/store'."
},
"labelAppVersion": {
"message": "Verze",
"description": "jmenovka aktuální verze rozšíření zobrazená pomocí '@popup/components/Header'."
},
"providerNameCloudflare": {
"message": "Cloudflare",
"description": "název Cloudflare poskytovatel zobrazený dle '@popup/components/CloudflareButton'."
},
"providerNameHcaptcha": {
"message": "hCaptcha",
"description": "název hCaptcha poskytovatel zobrazený dle '@popup/components/HcaptchaButton'."
},
"ctaGetMorePasses": {
"message": "Získat více průchodů!",
"description": "mouseover text zobrazený pomocí '@popup/components/PassButton'."
},
"ctaBackupAllPasses": {
"message": "Zálohovat všechny pasy",
"description": "zobrazit podle '@popup/components/BackupButton'."
},
"ctaRestorePasses": {
"message": "Obnovit pasy ze zálohy",
"description": "zobrazit podle '@popup/components/RestoreButton'."
},
"ctaClearAllPasses": {
"message": "Vymazat všechny pasy",
"description": "zobrazit podle '@popup/components/ClearButton'."
},
"ctaViewOnGithub": {
"message": "Pohled na Github",
"description": "zobrazit podle '@popup/components/GithubButton'."
}
}
46 changes: 46 additions & 0 deletions public/_locales/cy/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"appName": {
"message": "Privacy Pass",
"description": "enw estyniad wedi ei gynnwys gan 'manifest.json', ac fe'i dangosir gan '@popup/components/Header'."
},
"appDescription": {
"message": "Cymorth cleient i Privacy Pass protocol awdurdodi anhysbys.",
"description": "disgrifiad o'r estyniad a gynhwysir ynddo 'manifest.json'."
},
"labelFileBackup": {
"message": "wrth gefn",
"description": "label wedi ei gynnwys yn enw ffeil rhagosodedig JSON llif gefn a gynhyrchir gan '@popup/store'."
},
"labelAppVersion": {
"message": "Fersiwn",
"description": "label y fersiwn estyniad cyfredol a ddangosir gan '@popup/components/Header'."
},
"providerNameCloudflare": {
"message": "Cloudflare",
"description": "enw Cloudflare darparwr a ddangosir gan '@popup/components/CloudflareButton'."
},
"providerNameHcaptcha": {
"message": "hCaptcha",
"description": "enw hCaptcha darparwr a ddangosir gan '@popup/components/HcaptchaButton'."
},
"ctaGetMorePasses": {
"message": "Estyn rhagor o docynnau!",
"description": "Dangos y llygoden dros destun a ddangosir gan '@popup/components/PassButton'."
},
"ctaBackupAllPasses": {
"message": "Cadw Copi Wrth Gefn",
"description": "a ddangosir gan '@popup/components/BackupButton'."
},
"ctaRestorePasses": {
"message": "Adfer Y Cardiau Wrth Gefn",
"description": "a ddangosir gan '@popup/components/RestoreButton'."
},
"ctaClearAllPasses": {
"message": "Clirio'r Holl Docynnau",
"description": "a ddangosir gan '@popup/components/ClearButton'."
},
"ctaViewOnGithub": {
"message": "Golwg ar Github",
"description": "a ddangosir gan '@popup/components/GithubButton'."
}
}
Loading

0 comments on commit 7057859

Please sign in to comment.