Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions apps/editor/src/i18n/fa-ir.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* @fileoverview I18N for Persian (Farsi - Iran)
* @author Bambi Bambier <no@mail.not>
*/
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': 'انتخاب زبان',
});
3 changes: 3 additions & 0 deletions docs/en/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
- ...
```

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
- ...
```

Expand Down
3 changes: 3 additions & 0 deletions docs/ko/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ TOASE UI Editor는 다양한 언어로 UI의 텍스트를 설정할 수 있는
- i18n/
- en-us.ts
- ko-kr.ts
- fa-ir.ts
- ...
```

Expand Down Expand Up @@ -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` |

## 언어 파일 가져오기

Expand Down Expand Up @@ -194,6 +196,7 @@ const bar = new Editor({
- i18n/
- en-us.ts
- ko-kr.ts
- fa-ir.ts
- ...
```

Expand Down
5 changes: 5 additions & 0 deletions plugins/color-syntax/src/i18n/langs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,9 @@ export function addLangs(i18n: I18n) {
i18n.setLanguage('zh-TW', {
'Text color': '文字顏色',
});

i18n.setLanguage('fa-IR', {
'Text color': 'رنگ متن',
});

}
9 changes: 9 additions & 0 deletions plugins/table-merged-cell/src/i18n/langs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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':
'نمی‌توان سلول‌های ادغام‌شده‌ی ردیف را در سربرگ جدول جای‌گذاری کرد.',
});

}