1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-10 11:35:52 +01:00
excalidraw/scripts/locales-coverage-description.js

216 lines
5.3 KiB
JavaScript
Raw Permalink Normal View History

const fs = require("fs");
const THRESSHOLD = 85;
2023-03-11 22:15:52 +01:00
// we're using BCP 47 language tags as keys
// e.g. https://gist.github.com/typpo/b2b828a35e683b9bf8db91b5404f1bd1
const crowdinMap = {
"ar-SA": "en-ar",
"bg-BG": "en-bg",
"bn-BD": "en-bn",
"ca-ES": "en-ca",
"da-DK": "en-da",
"de-DE": "en-de",
"el-GR": "en-el",
"es-ES": "en-es",
"eu-ES": "en-eu",
"fa-IR": "en-fa",
"fi-FI": "en-fi",
"fr-FR": "en-fr",
chore: Update translations from Crowdin (#5738) * New translations en.json (Ukrainian) * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (French) * New translations en.json (Bengali) * Auto commit: Calculate translation coverage * New translations en.json (Ukrainian) * New translations en.json (Ukrainian) * Auto commit: Calculate translation coverage * New translations en.json (French) * New translations en.json (Turkish) * Auto commit: Calculate translation coverage * New translations en.json (Turkish) * Auto commit: Calculate translation coverage * New translations en.json (Hindi) * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * New translations en.json (Chinese Simplified) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Italian) * Auto commit: Calculate translation coverage * New translations en.json (Portuguese, Brazilian) * Auto commit: Calculate translation coverage * Add Kurdi * Add Galego Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-10-25 12:56:55 +02:00
"gl-ES": "en-gl",
"he-IL": "en-he",
"hi-IN": "en-hi",
"hu-HU": "en-hu",
"id-ID": "en-id",
"it-IT": "en-it",
"ja-JP": "en-ja",
"kab-KAB": "en-kab",
"ko-KR": "en-ko",
chore: Update translations from Crowdin (#5738) * New translations en.json (Ukrainian) * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (French) * New translations en.json (Bengali) * Auto commit: Calculate translation coverage * New translations en.json (Ukrainian) * New translations en.json (Ukrainian) * Auto commit: Calculate translation coverage * New translations en.json (French) * New translations en.json (Turkish) * Auto commit: Calculate translation coverage * New translations en.json (Turkish) * Auto commit: Calculate translation coverage * New translations en.json (Hindi) * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * New translations en.json (Chinese Simplified) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Italian) * Auto commit: Calculate translation coverage * New translations en.json (Portuguese, Brazilian) * Auto commit: Calculate translation coverage * Add Kurdi * Add Galego Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-10-25 12:56:55 +02:00
"ku-TR": "en-ku",
"my-MM": "en-my",
"nb-NO": "en-nb",
"nl-NL": "en-nl",
"nn-NO": "en-nnno",
"oc-FR": "en-oc",
"pa-IN": "en-pain",
"pl-PL": "en-pl",
"pt-BR": "en-ptbr",
"pt-PT": "en-pt",
"ro-RO": "en-ro",
"ru-RU": "en-ru",
"si-LK": "en-silk",
"sk-SK": "en-sk",
chore: Update translations from Crowdin (#5186) * Auto commit: Calculate translation coverage * New translations en.json (Persian) * Auto commit: Calculate translation coverage * New translations en.json (Persian) * Auto commit: Calculate translation coverage * New translations en.json (Tamil) * New translations en.json (Catalan) * Auto commit: Calculate translation coverage * New translations en.json (Portuguese) * Auto commit: Calculate translation coverage * New translations en.json (Kabyle) * New translations en.json (Kabyle) * New translations en.json (Vietnamese) * Auto commit: Calculate translation coverage * New translations en.json (Vietnamese) * Auto commit: Calculate translation coverage * New translations en.json (Basque) * Auto commit: Calculate translation coverage * New translations en.json (Catalan) * New translations en.json (Catalan) * New translations en.json (Bulgarian) * New translations en.json (Hebrew) * New translations en.json (Greek) * New translations en.json (German) * New translations en.json (Danish) * New translations en.json (Czech) * New translations en.json (Finnish) * New translations en.json (Arabic) * New translations en.json (French) * New translations en.json (Romanian) * New translations en.json (Basque) * New translations en.json (Spanish) * New translations en.json (Norwegian Nynorsk) * New translations en.json (Portuguese, Brazilian) * New translations en.json (Indonesian) * New translations en.json (Persian) * New translations en.json (Tamil) * New translations en.json (Bengali) * New translations en.json (Marathi) * New translations en.json (Hindi) * New translations en.json (Kazakh) * New translations en.json (Latvian) * New translations en.json (Burmese) * New translations en.json (Chinese Traditional, Hong Kong) * New translations en.json (Norwegian Bokmal) * New translations en.json (Ukrainian) * New translations en.json (Sinhala) * New translations en.json (Chinese Traditional) * New translations en.json (Polish) * New translations en.json (Turkish) * New translations en.json (Lithuanian) * New translations en.json (Chinese Simplified) * New translations en.json (Vietnamese) * New translations en.json (Hungarian) * New translations en.json (Italian) * New translations en.json (Japanese) * New translations en.json (Korean) * New translations en.json (Dutch) * New translations en.json (Swedish) * New translations en.json (Punjabi) * New translations en.json (Kabyle) * New translations en.json (Portuguese) * New translations en.json (Russian) * New translations en.json (Slovak) * New translations en.json (Slovenian) * New translations en.json (Occitan) * Auto commit: Calculate translation coverage * New translations en.json (Slovenian) * New translations en.json (Swedish) * New translations en.json (Norwegian Bokmal) * Auto commit: Calculate translation coverage * New translations en.json (Romanian) * New translations en.json (Finnish) * New translations en.json (Latvian) * Auto commit: Calculate translation coverage * New translations en.json (Spanish) * New translations en.json (Russian) * Auto commit: Calculate translation coverage * New translations en.json (Marathi) * New translations en.json (Hindi) * Auto commit: Calculate translation coverage * New translations en.json (French) * Auto commit: Calculate translation coverage * New translations en.json (German) * Auto commit: Calculate translation coverage * New translations en.json (Chinese Simplified) * Auto commit: Calculate translation coverage * New translations en.json (Catalan) * New translations en.json (Greek) * New translations en.json (Punjabi) * New translations en.json (Dutch) * New translations en.json (Lithuanian) * New translations en.json (Korean) * New translations en.json (Japanese) * New translations en.json (Italian) * New translations en.json (Hungarian) * New translations en.json (Hebrew) * New translations en.json (Finnish) * New translations en.json (Polish) * New translations en.json (German) * New translations en.json (Czech) * New translations en.json (Bulgarian) * New translations en.json (Arabic) * New translations en.json (Spanish) * New translations en.json (French) * New translations en.json (Romanian) * New translations en.json (Basque) * New translations en.json (Danish) * New translations en.json (Kazakh) * New translations en.json (Bengali) * New translations en.json (Marathi) * New translations en.json (Norwegian Nynorsk) * New translations en.json (Sinhala) * New translations en.json (Latvian) * New translations en.json (Hindi) * New translations en.json (Burmese) * New translations en.json (Chinese Traditional, Hong Kong) * New translations en.json (Persian) * New translations en.json (Norwegian Bokmal) * New translations en.json (Tamil) * New translations en.json (Turkish) * New translations en.json (Indonesian) * New translations en.json (Portuguese, Brazilian) * New translations en.json (Chinese Traditional) * New translations en.json (Ukrainian) * New translations en.json (Swedish) * New translations en.json (Slovenian) * New translations en.json (Slovak) * New translations en.json (Russian) * New translations en.json (Portuguese) * New translations en.json (Kabyle) * New translations en.json (Chinese Simplified) * New translations en.json (Vietnamese) * New translations en.json (Occitan) * Auto commit: Calculate translation coverage * New translations en.json (Italian) * New translations en.json (Swedish) * New translations en.json (Chinese Traditional) * New translations en.json (Latvian) * New translations en.json (Norwegian Bokmal) * Auto commit: Calculate translation coverage * New translations en.json (Chinese Simplified) * New translations en.json (German) * Auto commit: Calculate translation coverage * New translations en.json (Slovenian) * Auto commit: Calculate translation coverage * New translations en.json (Indonesian) * Auto commit: Calculate translation coverage * New translations en.json (Romanian) * Auto commit: Calculate translation coverage * New translations en.json (Russian) * Auto commit: Calculate translation coverage * New translations en.json (Ukrainian) * Auto commit: Calculate translation coverage * New translations en.json (Ukrainian) * Auto commit: Calculate translation coverage * New translations en.json (Finnish) * New translations en.json (Hindi) * Auto commit: Calculate translation coverage * New translations en.json (Marathi) * Auto commit: Calculate translation coverage * New translations en.json (Tamil) * Auto commit: Calculate translation coverage * New translations en.json (French) * Auto commit: Calculate translation coverage * New translations en.json (Turkish) * New translations en.json (Italian) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Slovak) * Auto commit: Calculate translation coverage * New translations en.json (Catalan) * New translations en.json (Bengali) * New translations en.json (Slovenian) * New translations en.json (Swedish) * New translations en.json (Turkish) * New translations en.json (Ukrainian) * New translations en.json (Chinese Traditional) * New translations en.json (Portuguese, Brazilian) * New translations en.json (Indonesian) * New translations en.json (Persian) * New translations en.json (Tamil) * New translations en.json (Marathi) * New translations en.json (Russian) * New translations en.json (Norwegian Nynorsk) * New translations en.json (Kazakh) * New translations en.json (Latvian) * New translations en.json (Hindi) * New translations en.json (Burmese) * New translations en.json (Chinese Traditional, Hong Kong) * New translations en.json (Sinhala) * New translations en.json (Norwegian Bokmal) * New translations en.json (Occitan) * New translations en.json (Slovak) * New translations en.json (Portuguese) * New translations en.json (Kabyle) * New translations en.json (Danish) * New translations en.json (Chinese Simplified) * New translations en.json (Vietnamese) * New translations en.json (Basque) * New translations en.json (Romanian) * New translations en.json (French) * New translations en.json (Spanish) * New translations en.json (Arabic) * New translations en.json (Bulgarian) * New translations en.json (Czech) * New translations en.json (German) * New translations en.json (Polish) * New translations en.json (Greek) * New translations en.json (Finnish) * New translations en.json (Hebrew) * New translations en.json (Hungarian) * New translations en.json (Italian) * New translations en.json (Japanese) * New translations en.json (Korean) * New translations en.json (Lithuanian) * New translations en.json (Dutch) * New translations en.json (Punjabi) * New translations en.json (Galician) * Auto commit: Calculate translation coverage * Add Slovenščina * New translations en.json (Slovenian) * New translations en.json (Chinese Traditional) * New translations en.json (Norwegian Bokmal) * Auto commit: Calculate translation coverage * New translations en.json (Chinese Simplified) * New translations en.json (Italian) * New translations en.json (Latvian) * Auto commit: Calculate translation coverage * New translations en.json (Swedish) * Auto commit: Calculate translation coverage * New translations en.json (Russian) * Auto commit: Calculate translation coverage * New translations en.json (Spanish) * fix code for Slovenščina Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-07-09 07:58:09 +02:00
"sl-SI": "en-sl",
"sv-SE": "en-sv",
"ta-IN": "en-ta",
"tr-TR": "en-tr",
"uk-UA": "en-uk",
"zh-CN": "en-zhcn",
"zh-HK": "en-zhhk",
"zh-TW": "en-zhtw",
"lt-LT": "en-lt",
"lv-LV": "en-lv",
"cs-CZ": "en-cs",
"kk-KZ": "en-kk",
"vi-VN": "en-vi",
"mr-IN": "en-mr",
2023-03-11 22:15:52 +01:00
"th-TH": "en-th",
};
const flags = {
"ar-SA": "🇸🇦",
"bg-BG": "🇧🇬",
"bn-BD": "🇧🇩",
"ca-ES": "🏳",
"cs-CZ": "🇨🇿",
"da-DK": "🇩🇰",
"de-DE": "🇩🇪",
"el-GR": "🇬🇷",
"es-ES": "🇪🇸",
"fa-IR": "🇮🇷",
"fi-FI": "🇫🇮",
"fr-FR": "🇫🇷",
chore: Update translations from Crowdin (#5738) * New translations en.json (Ukrainian) * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (French) * New translations en.json (Bengali) * Auto commit: Calculate translation coverage * New translations en.json (Ukrainian) * New translations en.json (Ukrainian) * Auto commit: Calculate translation coverage * New translations en.json (French) * New translations en.json (Turkish) * Auto commit: Calculate translation coverage * New translations en.json (Turkish) * Auto commit: Calculate translation coverage * New translations en.json (Hindi) * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * New translations en.json (Chinese Simplified) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Italian) * Auto commit: Calculate translation coverage * New translations en.json (Portuguese, Brazilian) * Auto commit: Calculate translation coverage * Add Kurdi * Add Galego Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-10-25 12:56:55 +02:00
"gl-ES": "🇪🇸",
"he-IL": "🇮🇱",
"hi-IN": "🇮🇳",
"hu-HU": "🇭🇺",
"id-ID": "🇮🇩",
"it-IT": "🇮🇹",
"ja-JP": "🇯🇵",
"kab-KAB": "🏳",
"kk-KZ": "🇰🇿",
"ko-KR": "🇰🇷",
chore: Update translations from Crowdin (#5738) * New translations en.json (Ukrainian) * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (French) * New translations en.json (Bengali) * Auto commit: Calculate translation coverage * New translations en.json (Ukrainian) * New translations en.json (Ukrainian) * Auto commit: Calculate translation coverage * New translations en.json (French) * New translations en.json (Turkish) * Auto commit: Calculate translation coverage * New translations en.json (Turkish) * Auto commit: Calculate translation coverage * New translations en.json (Hindi) * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * New translations en.json (Chinese Simplified) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Kurdish) * Auto commit: Calculate translation coverage * New translations en.json (Italian) * Auto commit: Calculate translation coverage * New translations en.json (Portuguese, Brazilian) * Auto commit: Calculate translation coverage * Add Kurdi * Add Galego Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-10-25 12:56:55 +02:00
"ku-TR": "🏳",
"lt-LT": "🇱🇹",
"lv-LV": "🇱🇻",
"my-MM": "🇲🇲",
"nb-NO": "🇳🇴",
"nl-NL": "🇳🇱",
"nn-NO": "🇳🇴",
"oc-FR": "🏳",
"pa-IN": "🇮🇳",
"pl-PL": "🇵🇱",
"pt-BR": "🇧🇷",
"pt-PT": "🇵🇹",
"ro-RO": "🇷🇴",
"ru-RU": "🇷🇺",
"si-LK": "🇱🇰",
"sk-SK": "🇸🇰",
chore: Update translations from Crowdin (#5186) * Auto commit: Calculate translation coverage * New translations en.json (Persian) * Auto commit: Calculate translation coverage * New translations en.json (Persian) * Auto commit: Calculate translation coverage * New translations en.json (Tamil) * New translations en.json (Catalan) * Auto commit: Calculate translation coverage * New translations en.json (Portuguese) * Auto commit: Calculate translation coverage * New translations en.json (Kabyle) * New translations en.json (Kabyle) * New translations en.json (Vietnamese) * Auto commit: Calculate translation coverage * New translations en.json (Vietnamese) * Auto commit: Calculate translation coverage * New translations en.json (Basque) * Auto commit: Calculate translation coverage * New translations en.json (Catalan) * New translations en.json (Catalan) * New translations en.json (Bulgarian) * New translations en.json (Hebrew) * New translations en.json (Greek) * New translations en.json (German) * New translations en.json (Danish) * New translations en.json (Czech) * New translations en.json (Finnish) * New translations en.json (Arabic) * New translations en.json (French) * New translations en.json (Romanian) * New translations en.json (Basque) * New translations en.json (Spanish) * New translations en.json (Norwegian Nynorsk) * New translations en.json (Portuguese, Brazilian) * New translations en.json (Indonesian) * New translations en.json (Persian) * New translations en.json (Tamil) * New translations en.json (Bengali) * New translations en.json (Marathi) * New translations en.json (Hindi) * New translations en.json (Kazakh) * New translations en.json (Latvian) * New translations en.json (Burmese) * New translations en.json (Chinese Traditional, Hong Kong) * New translations en.json (Norwegian Bokmal) * New translations en.json (Ukrainian) * New translations en.json (Sinhala) * New translations en.json (Chinese Traditional) * New translations en.json (Polish) * New translations en.json (Turkish) * New translations en.json (Lithuanian) * New translations en.json (Chinese Simplified) * New translations en.json (Vietnamese) * New translations en.json (Hungarian) * New translations en.json (Italian) * New translations en.json (Japanese) * New translations en.json (Korean) * New translations en.json (Dutch) * New translations en.json (Swedish) * New translations en.json (Punjabi) * New translations en.json (Kabyle) * New translations en.json (Portuguese) * New translations en.json (Russian) * New translations en.json (Slovak) * New translations en.json (Slovenian) * New translations en.json (Occitan) * Auto commit: Calculate translation coverage * New translations en.json (Slovenian) * New translations en.json (Swedish) * New translations en.json (Norwegian Bokmal) * Auto commit: Calculate translation coverage * New translations en.json (Romanian) * New translations en.json (Finnish) * New translations en.json (Latvian) * Auto commit: Calculate translation coverage * New translations en.json (Spanish) * New translations en.json (Russian) * Auto commit: Calculate translation coverage * New translations en.json (Marathi) * New translations en.json (Hindi) * Auto commit: Calculate translation coverage * New translations en.json (French) * Auto commit: Calculate translation coverage * New translations en.json (German) * Auto commit: Calculate translation coverage * New translations en.json (Chinese Simplified) * Auto commit: Calculate translation coverage * New translations en.json (Catalan) * New translations en.json (Greek) * New translations en.json (Punjabi) * New translations en.json (Dutch) * New translations en.json (Lithuanian) * New translations en.json (Korean) * New translations en.json (Japanese) * New translations en.json (Italian) * New translations en.json (Hungarian) * New translations en.json (Hebrew) * New translations en.json (Finnish) * New translations en.json (Polish) * New translations en.json (German) * New translations en.json (Czech) * New translations en.json (Bulgarian) * New translations en.json (Arabic) * New translations en.json (Spanish) * New translations en.json (French) * New translations en.json (Romanian) * New translations en.json (Basque) * New translations en.json (Danish) * New translations en.json (Kazakh) * New translations en.json (Bengali) * New translations en.json (Marathi) * New translations en.json (Norwegian Nynorsk) * New translations en.json (Sinhala) * New translations en.json (Latvian) * New translations en.json (Hindi) * New translations en.json (Burmese) * New translations en.json (Chinese Traditional, Hong Kong) * New translations en.json (Persian) * New translations en.json (Norwegian Bokmal) * New translations en.json (Tamil) * New translations en.json (Turkish) * New translations en.json (Indonesian) * New translations en.json (Portuguese, Brazilian) * New translations en.json (Chinese Traditional) * New translations en.json (Ukrainian) * New translations en.json (Swedish) * New translations en.json (Slovenian) * New translations en.json (Slovak) * New translations en.json (Russian) * New translations en.json (Portuguese) * New translations en.json (Kabyle) * New translations en.json (Chinese Simplified) * New translations en.json (Vietnamese) * New translations en.json (Occitan) * Auto commit: Calculate translation coverage * New translations en.json (Italian) * New translations en.json (Swedish) * New translations en.json (Chinese Traditional) * New translations en.json (Latvian) * New translations en.json (Norwegian Bokmal) * Auto commit: Calculate translation coverage * New translations en.json (Chinese Simplified) * New translations en.json (German) * Auto commit: Calculate translation coverage * New translations en.json (Slovenian) * Auto commit: Calculate translation coverage * New translations en.json (Indonesian) * Auto commit: Calculate translation coverage * New translations en.json (Romanian) * Auto commit: Calculate translation coverage * New translations en.json (Russian) * Auto commit: Calculate translation coverage * New translations en.json (Ukrainian) * Auto commit: Calculate translation coverage * New translations en.json (Ukrainian) * Auto commit: Calculate translation coverage * New translations en.json (Finnish) * New translations en.json (Hindi) * Auto commit: Calculate translation coverage * New translations en.json (Marathi) * Auto commit: Calculate translation coverage * New translations en.json (Tamil) * Auto commit: Calculate translation coverage * New translations en.json (French) * Auto commit: Calculate translation coverage * New translations en.json (Turkish) * New translations en.json (Italian) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Slovak) * Auto commit: Calculate translation coverage * New translations en.json (Catalan) * New translations en.json (Bengali) * New translations en.json (Slovenian) * New translations en.json (Swedish) * New translations en.json (Turkish) * New translations en.json (Ukrainian) * New translations en.json (Chinese Traditional) * New translations en.json (Portuguese, Brazilian) * New translations en.json (Indonesian) * New translations en.json (Persian) * New translations en.json (Tamil) * New translations en.json (Marathi) * New translations en.json (Russian) * New translations en.json (Norwegian Nynorsk) * New translations en.json (Kazakh) * New translations en.json (Latvian) * New translations en.json (Hindi) * New translations en.json (Burmese) * New translations en.json (Chinese Traditional, Hong Kong) * New translations en.json (Sinhala) * New translations en.json (Norwegian Bokmal) * New translations en.json (Occitan) * New translations en.json (Slovak) * New translations en.json (Portuguese) * New translations en.json (Kabyle) * New translations en.json (Danish) * New translations en.json (Chinese Simplified) * New translations en.json (Vietnamese) * New translations en.json (Basque) * New translations en.json (Romanian) * New translations en.json (French) * New translations en.json (Spanish) * New translations en.json (Arabic) * New translations en.json (Bulgarian) * New translations en.json (Czech) * New translations en.json (German) * New translations en.json (Polish) * New translations en.json (Greek) * New translations en.json (Finnish) * New translations en.json (Hebrew) * New translations en.json (Hungarian) * New translations en.json (Italian) * New translations en.json (Japanese) * New translations en.json (Korean) * New translations en.json (Lithuanian) * New translations en.json (Dutch) * New translations en.json (Punjabi) * New translations en.json (Galician) * Auto commit: Calculate translation coverage * Add Slovenščina * New translations en.json (Slovenian) * New translations en.json (Chinese Traditional) * New translations en.json (Norwegian Bokmal) * Auto commit: Calculate translation coverage * New translations en.json (Chinese Simplified) * New translations en.json (Italian) * New translations en.json (Latvian) * Auto commit: Calculate translation coverage * New translations en.json (Swedish) * Auto commit: Calculate translation coverage * New translations en.json (Russian) * Auto commit: Calculate translation coverage * New translations en.json (Spanish) * fix code for Slovenščina Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-07-09 07:58:09 +02:00
"sl-SI": "🇸🇮",
"sv-SE": "🇸🇪",
"ta-IN": "🇮🇳",
"tr-TR": "🇹🇷",
"uk-UA": "🇺🇦",
"zh-CN": "🇨🇳",
"zh-HK": "🇭🇰",
"zh-TW": "🇹🇼",
"eu-ES": "🇪🇦",
"vi-VN": "🇻🇳",
"mr-IN": "🇮🇳",
2023-03-11 22:15:52 +01:00
"th-TH": "🇹🇭",
};
const languages = {
"ar-SA": "العربية",
"bg-BG": "Български",
"bn-BD": "Bengali",
"ca-ES": "Català",
"cs-CZ": "Česky",
"da-DK": "Dansk",
"de-DE": "Deutsch",
"el-GR": "Ελληνικά",
"es-ES": "Español",
"eu-ES": "Euskara",
"fa-IR": "فارسی",
"fi-FI": "Suomi",
"fr-FR": "Français",
"gl-ES": "Galego",
"he-IL": "עברית",
"hi-IN": "हिन्दी",
"hu-HU": "Magyar",
"id-ID": "Bahasa Indonesia",
"it-IT": "Italiano",
"ja-JP": "日本語",
2021-02-02 10:35:00 +01:00
"kab-KAB": "Taqbaylit",
"kk-KZ": "Қазақ тілі",
"ko-KR": "한국어",
"ku-TR": "Kurdî",
"lt-LT": "Lietuvių",
"lv-LV": "Latviešu",
"my-MM": "Burmese",
"nb-NO": "Norsk bokmål",
"nl-NL": "Nederlands",
"nn-NO": "Norsk nynorsk",
"oc-FR": "Occitan",
"pa-IN": "ਪੰਜਾਬੀ",
"pl-PL": "Polski",
"pt-BR": "Português Brasileiro",
"pt-PT": "Português",
"ro-RO": "Română",
"ru-RU": "Русский",
"si-LK": "සිංහල",
"sk-SK": "Slovenčina",
chore: Update translations from Crowdin (#5186) * Auto commit: Calculate translation coverage * New translations en.json (Persian) * Auto commit: Calculate translation coverage * New translations en.json (Persian) * Auto commit: Calculate translation coverage * New translations en.json (Tamil) * New translations en.json (Catalan) * Auto commit: Calculate translation coverage * New translations en.json (Portuguese) * Auto commit: Calculate translation coverage * New translations en.json (Kabyle) * New translations en.json (Kabyle) * New translations en.json (Vietnamese) * Auto commit: Calculate translation coverage * New translations en.json (Vietnamese) * Auto commit: Calculate translation coverage * New translations en.json (Basque) * Auto commit: Calculate translation coverage * New translations en.json (Catalan) * New translations en.json (Catalan) * New translations en.json (Bulgarian) * New translations en.json (Hebrew) * New translations en.json (Greek) * New translations en.json (German) * New translations en.json (Danish) * New translations en.json (Czech) * New translations en.json (Finnish) * New translations en.json (Arabic) * New translations en.json (French) * New translations en.json (Romanian) * New translations en.json (Basque) * New translations en.json (Spanish) * New translations en.json (Norwegian Nynorsk) * New translations en.json (Portuguese, Brazilian) * New translations en.json (Indonesian) * New translations en.json (Persian) * New translations en.json (Tamil) * New translations en.json (Bengali) * New translations en.json (Marathi) * New translations en.json (Hindi) * New translations en.json (Kazakh) * New translations en.json (Latvian) * New translations en.json (Burmese) * New translations en.json (Chinese Traditional, Hong Kong) * New translations en.json (Norwegian Bokmal) * New translations en.json (Ukrainian) * New translations en.json (Sinhala) * New translations en.json (Chinese Traditional) * New translations en.json (Polish) * New translations en.json (Turkish) * New translations en.json (Lithuanian) * New translations en.json (Chinese Simplified) * New translations en.json (Vietnamese) * New translations en.json (Hungarian) * New translations en.json (Italian) * New translations en.json (Japanese) * New translations en.json (Korean) * New translations en.json (Dutch) * New translations en.json (Swedish) * New translations en.json (Punjabi) * New translations en.json (Kabyle) * New translations en.json (Portuguese) * New translations en.json (Russian) * New translations en.json (Slovak) * New translations en.json (Slovenian) * New translations en.json (Occitan) * Auto commit: Calculate translation coverage * New translations en.json (Slovenian) * New translations en.json (Swedish) * New translations en.json (Norwegian Bokmal) * Auto commit: Calculate translation coverage * New translations en.json (Romanian) * New translations en.json (Finnish) * New translations en.json (Latvian) * Auto commit: Calculate translation coverage * New translations en.json (Spanish) * New translations en.json (Russian) * Auto commit: Calculate translation coverage * New translations en.json (Marathi) * New translations en.json (Hindi) * Auto commit: Calculate translation coverage * New translations en.json (French) * Auto commit: Calculate translation coverage * New translations en.json (German) * Auto commit: Calculate translation coverage * New translations en.json (Chinese Simplified) * Auto commit: Calculate translation coverage * New translations en.json (Catalan) * New translations en.json (Greek) * New translations en.json (Punjabi) * New translations en.json (Dutch) * New translations en.json (Lithuanian) * New translations en.json (Korean) * New translations en.json (Japanese) * New translations en.json (Italian) * New translations en.json (Hungarian) * New translations en.json (Hebrew) * New translations en.json (Finnish) * New translations en.json (Polish) * New translations en.json (German) * New translations en.json (Czech) * New translations en.json (Bulgarian) * New translations en.json (Arabic) * New translations en.json (Spanish) * New translations en.json (French) * New translations en.json (Romanian) * New translations en.json (Basque) * New translations en.json (Danish) * New translations en.json (Kazakh) * New translations en.json (Bengali) * New translations en.json (Marathi) * New translations en.json (Norwegian Nynorsk) * New translations en.json (Sinhala) * New translations en.json (Latvian) * New translations en.json (Hindi) * New translations en.json (Burmese) * New translations en.json (Chinese Traditional, Hong Kong) * New translations en.json (Persian) * New translations en.json (Norwegian Bokmal) * New translations en.json (Tamil) * New translations en.json (Turkish) * New translations en.json (Indonesian) * New translations en.json (Portuguese, Brazilian) * New translations en.json (Chinese Traditional) * New translations en.json (Ukrainian) * New translations en.json (Swedish) * New translations en.json (Slovenian) * New translations en.json (Slovak) * New translations en.json (Russian) * New translations en.json (Portuguese) * New translations en.json (Kabyle) * New translations en.json (Chinese Simplified) * New translations en.json (Vietnamese) * New translations en.json (Occitan) * Auto commit: Calculate translation coverage * New translations en.json (Italian) * New translations en.json (Swedish) * New translations en.json (Chinese Traditional) * New translations en.json (Latvian) * New translations en.json (Norwegian Bokmal) * Auto commit: Calculate translation coverage * New translations en.json (Chinese Simplified) * New translations en.json (German) * Auto commit: Calculate translation coverage * New translations en.json (Slovenian) * Auto commit: Calculate translation coverage * New translations en.json (Indonesian) * Auto commit: Calculate translation coverage * New translations en.json (Romanian) * Auto commit: Calculate translation coverage * New translations en.json (Russian) * Auto commit: Calculate translation coverage * New translations en.json (Ukrainian) * Auto commit: Calculate translation coverage * New translations en.json (Ukrainian) * Auto commit: Calculate translation coverage * New translations en.json (Finnish) * New translations en.json (Hindi) * Auto commit: Calculate translation coverage * New translations en.json (Marathi) * Auto commit: Calculate translation coverage * New translations en.json (Tamil) * Auto commit: Calculate translation coverage * New translations en.json (French) * Auto commit: Calculate translation coverage * New translations en.json (Turkish) * New translations en.json (Italian) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Czech) * Auto commit: Calculate translation coverage * New translations en.json (Galician) * Auto commit: Calculate translation coverage * New translations en.json (Slovak) * Auto commit: Calculate translation coverage * New translations en.json (Catalan) * New translations en.json (Bengali) * New translations en.json (Slovenian) * New translations en.json (Swedish) * New translations en.json (Turkish) * New translations en.json (Ukrainian) * New translations en.json (Chinese Traditional) * New translations en.json (Portuguese, Brazilian) * New translations en.json (Indonesian) * New translations en.json (Persian) * New translations en.json (Tamil) * New translations en.json (Marathi) * New translations en.json (Russian) * New translations en.json (Norwegian Nynorsk) * New translations en.json (Kazakh) * New translations en.json (Latvian) * New translations en.json (Hindi) * New translations en.json (Burmese) * New translations en.json (Chinese Traditional, Hong Kong) * New translations en.json (Sinhala) * New translations en.json (Norwegian Bokmal) * New translations en.json (Occitan) * New translations en.json (Slovak) * New translations en.json (Portuguese) * New translations en.json (Kabyle) * New translations en.json (Danish) * New translations en.json (Chinese Simplified) * New translations en.json (Vietnamese) * New translations en.json (Basque) * New translations en.json (Romanian) * New translations en.json (French) * New translations en.json (Spanish) * New translations en.json (Arabic) * New translations en.json (Bulgarian) * New translations en.json (Czech) * New translations en.json (German) * New translations en.json (Polish) * New translations en.json (Greek) * New translations en.json (Finnish) * New translations en.json (Hebrew) * New translations en.json (Hungarian) * New translations en.json (Italian) * New translations en.json (Japanese) * New translations en.json (Korean) * New translations en.json (Lithuanian) * New translations en.json (Dutch) * New translations en.json (Punjabi) * New translations en.json (Galician) * Auto commit: Calculate translation coverage * Add Slovenščina * New translations en.json (Slovenian) * New translations en.json (Chinese Traditional) * New translations en.json (Norwegian Bokmal) * Auto commit: Calculate translation coverage * New translations en.json (Chinese Simplified) * New translations en.json (Italian) * New translations en.json (Latvian) * Auto commit: Calculate translation coverage * New translations en.json (Swedish) * Auto commit: Calculate translation coverage * New translations en.json (Russian) * Auto commit: Calculate translation coverage * New translations en.json (Spanish) * fix code for Slovenščina Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-07-09 07:58:09 +02:00
"sl-SI": "Slovenščina",
"sv-SE": "Svenska",
"ta-IN": "Tamil",
"tr-TR": "Türkçe",
"uk-UA": "Українська",
"zh-CN": "简体中文",
"zh-HK": "繁體中文 (香港)",
"zh-TW": "繁體中文",
"vi-VN": "Tiếng Việt",
"mr-IN": "मराठी",
2023-03-11 22:15:52 +01:00
"th-TH": "ภาษาไทย",
};
const percentages = fs.readFileSync(
`${__dirname}/../src/locales/percentages.json`,
);
const rowData = JSON.parse(percentages);
const coverages = Object.entries(rowData)
.sort(([, a], [, b]) => b - a)
.reduce((r, [k, v]) => ({ ...r, [k]: v }), {});
const boldIf = (text, condition) => (condition ? `**${text}**` : text);
const printHeader = () => {
let result = "| | Flag | Locale | % |\n";
result += "| :--: | :--: | -- | :--: |";
return result;
};
const printRow = (id, locale, coverage) => {
const isOver = coverage >= THRESSHOLD;
let result = `| ${isOver ? id : "..."} | `;
result += `${locale in flags ? flags[locale] : ""} | `;
const language = locale in languages ? languages[locale] : locale;
if (locale in crowdinMap && crowdinMap[locale]) {
result += `[${boldIf(
language,
isOver,
)}](https://crowdin.com/translate/excalidraw/10/${crowdinMap[locale]}) | `;
} else {
result += `${boldIf(language, isOver)} | `;
}
result += `${coverage === 100 ? "💯" : boldIf(coverage, isOver)} |`;
return result;
};
console.info(
`Each language must be at least **${THRESSHOLD}%** translated in order to appear on Excalidraw. Join us on [Crowdin](https://crowdin.com/project/excalidraw) and help us translate your own language. **Can't find yours yet?** Open an [issue](https://github.com/excalidraw/excalidraw/issues/new) and we'll add it to the list.`,
);
console.info("\n\r");
console.info(printHeader());
let index = 1;
for (const coverage in coverages) {
if (coverage === "en") {
continue;
}
console.info(printRow(index, coverage, coverages[coverage]));
index++;
}
console.info("\n\r");
console.info("\\* Languages in **bold** are going to appear on production.");