diff --git a/apps/editor/src/i18n/fa-ir.ts b/apps/editor/src/i18n/fa-ir.ts new file mode 100644 index 0000000000..7f4352213d --- /dev/null +++ b/apps/editor/src/i18n/fa-ir.ts @@ -0,0 +1,56 @@ +/** + * @fileoverview I18N for Persian (Farsi - Iran) + * @author Bambi Bambier + */ +import Editor from '../editorCore'; + +Editor.setLanguage(['fa', 'fa-IR'], { + Markdown: 'مارک‌داون', + WYSIWYG: 'ویزی‌ویگ', + Write: 'نویسه', + Preview: 'پیش‌نمایش', + Headings: 'سربرگ', + Paragraph: 'پارنوشته', + Bold: 'سبک درشت', + Italic: 'سبک خوابیده', + Strike: 'خط خورده', + Code: 'کد درون خطی', + Line: 'خط', + Blockquote: 'نقل قول', + 'Unordered list': 'لیست نامرتب', + 'Ordered list': 'لیست مرتب', + Task: 'چک لیست', + Indent: 'افزایش تورفتگی', + Outdent: 'کاهش تورفتگی', + 'Insert link': 'وارد کردن لینک', + 'Insert CodeBlock': 'وارد کردن نقل قول', + 'Insert table': 'وارد کردن جدول', + 'Insert image': 'وارد کردن تصویر', + Heading: 'سر برگ', + 'Image URL': 'آدرس تصویر', + 'Select image file': 'انتخاب تصویر', + 'Choose a file': 'انتخاب پرونده', + 'No file': 'بدون پرونده', + Description: 'توضیحات', + OK: 'تایید', + More: 'بیشتر', + Cancel: 'لغو', + File: 'پرونده', + URL: 'مکان‌یاب منبع یکسان (URL)', + 'Link text': 'لینک کردن متن', + 'Add row to up': 'افزودن سطر به بالا', + 'Add row to down': 'افزودن سطر به پایین', + 'Add column to left': 'افزودن ستون به چپ', + 'Add column to right': 'افزودن ستون به راست', + 'Remove row': 'حذف سطر', + 'Remove column': 'حذف ستون', + 'Align column to left': 'ترازبندی ستون به سمت چپ', + 'Align column to center': 'ترازبندی ستون به وسط', + 'Align column to right': 'ترازبندی ستون به سمت راست', + 'Remove table': 'حذف جدول', + 'Would you like to paste as table?': 'آیا می‌خواهید به عنوان جدول بچسبانید؟', + 'Text color': 'رنگ متن', + 'Auto scroll enabled': 'اسکرول خودکار روشن شده', + 'Auto scroll disabled': 'اسکرول خودکار خاموش شد', + 'Choose language': 'انتخاب زبان', +}); diff --git a/docs/en/i18n.md b/docs/en/i18n.md index ab4587e5a3..146894c449 100644 --- a/docs/en/i18n.md +++ b/docs/en/i18n.md @@ -13,6 +13,7 @@ If you want to contribute language files in addition to the [languages ​​sup - i18n/ - en-us.ts - ko-kr.ts + - fa-ir.ts - ... ``` @@ -74,6 +75,7 @@ Below is a table of valid language codes for i18n files provided by the TOAST UI | Swedish (Sweden) | sv-se.js | `sv` \| `sv-SE` | | Turkish (Turkey) | tr-tr.js | `tr` \| `tr-TR` | | Ukrainian (Ukraine) | uk-ua.js | `uk` \| `uk-UA` | +| Persian (Iran) | fa-ir.js | `fa` \| `fa-IR` | ## Importing Language Files @@ -195,6 +197,7 @@ Fork the repository and add the language file to the path below. The name of the - i18n/ - en-us.ts - ko-kr.ts + - fa-ir.ts - ... ``` diff --git a/docs/ko/i18n.md b/docs/ko/i18n.md index 33e1ea3c24..90af3cda2a 100644 --- a/docs/ko/i18n.md +++ b/docs/ko/i18n.md @@ -13,6 +13,7 @@ TOASE UI Editor는 다양한 언어로 UI의 텍스트를 설정할 수 있는 - i18n/ - en-us.ts - ko-kr.ts + - fa-ir.ts - ... ``` @@ -74,6 +75,7 @@ TOASE UI Editor는 다양한 언어로 UI의 텍스트를 설정할 수 있는 | Swedish (Sweden) | sv-se.js | `sv` \| `sv-SE` | | Turkish (Turkey) | tr-tr.js | `tr` \| `tr-TR` | | Ukrainian (Ukraine) | uk-ua.js | `uk` \| `uk-UA` | +| Persian (Iran) | fa-ir.js | `fa` \| `fa-IR` | ## 언어 파일 가져오기 @@ -194,6 +196,7 @@ const bar = new Editor({ - i18n/ - en-us.ts - ko-kr.ts + - fa-ir.ts - ... ``` diff --git a/plugins/color-syntax/src/i18n/langs.ts b/plugins/color-syntax/src/i18n/langs.ts index f9659d8dcc..45510264bc 100644 --- a/plugins/color-syntax/src/i18n/langs.ts +++ b/plugins/color-syntax/src/i18n/langs.ts @@ -88,4 +88,9 @@ export function addLangs(i18n: I18n) { i18n.setLanguage('zh-TW', { 'Text color': '文字顏色', }); + + i18n.setLanguage('fa-IR', { + 'Text color': 'رنگ متن', + }); + } diff --git a/plugins/table-merged-cell/src/i18n/langs.ts b/plugins/table-merged-cell/src/i18n/langs.ts index b71088d073..8f45cb2d17 100644 --- a/plugins/table-merged-cell/src/i18n/langs.ts +++ b/plugins/table-merged-cell/src/i18n/langs.ts @@ -168,4 +168,13 @@ export function addLangs(i18n: I18n) { 'Cannot paste row merged cells into the table header': 'Ne mogu zaljepiti redak spojenih ćelija u zaglavlje tablice', }); + + i18n.setLanguage(['fa', 'fa-IR'], { + 'Merge cells': 'ادغام خانه‌ها', + 'Split cells': 'تقسیم خانه‌ها', + 'Cannot change part of merged cell': 'نمی‌توان بخشی از سلول ادغام‌شده را تغییر داد.', + 'Cannot paste row merged cells into the table header': + 'نمی‌توان سلول‌های ادغام‌شده‌ی ردیف را در سربرگ جدول جای‌گذاری کرد.', + }); + }