Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
feat: support for rtl and farsi i18n (#3558)
Parsa Arvanehb13168d5b4ab
diff --git a/README.md b/README.mdindex 083118abba..d6aaaa6438 100644--- a/README.md+++ b/README.md@@ -104,6 +104,7 @@ Univer supports multiple languages, including:- `en-US`- `ru-RU`- `vi-VN`+- `fa-IR``zh-CN` and `en-US` are officially supported, while the others are contributed by the community.diff --git a/examples/scripts/generate-locales.mjs b/examples/scripts/generate-locales.mjsindex ac7c47f776..f1f0364fbb 100644--- a/examples/scripts/generate-locales.mjs+++ b/examples/scripts/generate-locales.mjs@@ -10,7 +10,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));async function generateLocales() {const pkg = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../package.json'), 'utf-8'));const output = path.resolve(__dirname, '../src/locales.ts');- const locales = ['en-US', 'ru-RU', 'zh-CN', 'zh-TW', 'vi-VN'];+ const locales = ['en-US', 'ru-RU', 'zh-CN', 'zh-TW', 'vi-VN', 'fa-IR'];const header = `/*** Copyright 2023-present DreamNum Inc.diff --git a/examples/src/docs-uniscript/main.ts b/examples/src/docs-uniscript/main.tsindex 6ff572f460..82dae3cd76 100644--- a/examples/src/docs-uniscript/main.ts+++ b/examples/src/docs-uniscript/main.ts@@ -26,7 +26,7 @@ import { UniverSheetsPlugin } from '@univerjs/sheets';import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';import { UniverUIPlugin } from '@univerjs/ui';import { UniverUniscriptPlugin } from '@univerjs/uniscript';-import { enUS, ruRU, zhCN } from '../locales';+import { enUS, faIR, ruRU, zhCN } from '../locales';// univerconst univer = new Univer({@@ -36,6 +36,7 @@ const univer = new Univer({[LocaleType.ZH_CN]: zhCN,[LocaleType.EN_US]: enUS,[LocaleType.RU_RU]: ruRU,+ [LocaleType.FA_IR]: faIR,},logLevel: LogLevel.VERBOSE,});diff --git a/examples/src/docs/main.ts b/examples/src/docs/main.tsindex 049f561d90..17a36f67b6 100644--- a/examples/src/docs/main.ts+++ b/examples/src/docs/main.ts@@ -28,7 +28,7 @@ import { UniverRenderEnginePlugin } from '@univerjs/engine-render';import { FUniver } from '@univerjs/facade';import { DEFAULT_DOCUMENT_DATA_CN } from '@univerjs/mockdata';import { UniverUIPlugin } from '@univerjs/ui';-import { enUS, ruRU, zhCN } from '../locales';+import { enUS, faIR, ruRU, zhCN } from '../locales';/* eslint-disable node/prefer-global/process */const IS_E2E: boolean = !!process.env.IS_E2E;@@ -41,6 +41,7 @@ const univer = new Univer({[LocaleType.ZH_CN]: zhCN,[LocaleType.EN_US]: enUS,[LocaleType.RU_RU]: ruRU,+ [LocaleType.FA_IR]: faIR,},logLevel: LogLevel.VERBOSE,});diff --git a/examples/src/mobile-s/main.ts b/examples/src/mobile-s/main.tsindex 73d90b86c2..50d9f09f6d 100644--- a/examples/src/mobile-s/main.ts+++ b/examples/src/mobile-s/main.ts@@ -34,7 +34,7 @@ import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt';import { UniverSheetsMobileUIPlugin } from '@univerjs/sheets-ui';import { UniverMobileUIPlugin } from '@univerjs/ui';-import { enUS } from '../locales';+import { enUS, faIR } from '../locales';// univerconst univer = new Univer({@@ -42,6 +42,7 @@ const univer = new Univer({locale: LocaleType.EN_US,locales: {[LocaleType.EN_US]: enUS,+ [LocaleType.FA_IR]: faIR,},logLevel: LogLevel.VERBOSE,});diff --git a/examples/src/sheets-multi/main.tsx b/examples/src/sheets-multi/main.tsxindex 31f59ddbb1..948a342ee7 100644--- a/examples/src/sheets-multi/main.tsx+++ b/examples/src/sheets-multi/main.tsx@@ -30,8 +30,8 @@ import { UniverUIPlugin } from '@univerjs/ui';import React, { useEffect } from 'react';import { createRoot } from 'react-dom/client';import { Mosaic, MosaicWindow } from 'react-mosaic-component';+import { enUS, faIR, ruRU, zhCN } from '../locales';-import { enUS, ruRU, zhCN } from '../locales';import 'react-mosaic-component/react-mosaic-component.css';import './index.css';@@ -44,6 +44,7 @@ function factory(id: string) {[LocaleType.ZH_CN]: zhCN,[LocaleType.EN_US]: enUS,[LocaleType.RU_RU]: ruRU,+ [LocaleType.FA_IR]: faIR,},logLevel: LogLevel.VERBOSE,});diff --git a/examples/src/sheets-uniscript/main.ts b/examples/src/sheets-uniscript/main.tsindex 54afd6b862..fac05bcbe8 100644--- a/examples/src/sheets-uniscript/main.ts+++ b/examples/src/sheets-uniscript/main.ts@@ -28,7 +28,8 @@ import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt';import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';import { UniverUIPlugin } from '@univerjs/ui';import { UniverUniscriptPlugin } from '@univerjs/uniscript';-import { enUS, ruRU, zhCN } from '../locales';++import { enUS, faIR, ruRU, zhCN } from '../locales';// univerconst univer = new Univer({@@ -38,6 +39,7 @@ const univer = new Univer({[LocaleType.ZH_CN]: zhCN,[LocaleType.EN_US]: enUS,[LocaleType.RU_RU]: ruRU,+ [LocaleType.FA_IR]: faIR,},logLevel: LogLevel.VERBOSE,});diff --git a/examples/src/sheets/main.ts b/examples/src/sheets/main.tsindex 4a42c1edc2..c325b208c6 100644--- a/examples/src/sheets/main.ts+++ b/examples/src/sheets/main.ts@@ -22,10 +22,10 @@ import { UniverDebuggerPlugin } from '@univerjs/debugger';import { defaultTheme } from '@univerjs/design';import { UniverDocsPlugin } from '@univerjs/docs';import { UniverDocsUIPlugin } from '@univerjs/docs-ui';+import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';import { UniverRenderEnginePlugin } from '@univerjs/engine-render';import { FUniver } from '@univerjs/facade';-import { DEFAULT_WORKBOOK_DATA_DEMO } from '@univerjs/mockdata';import { UniverRPCMainThreadPlugin } from '@univerjs/rpc';import { UniverSheetsPlugin } from '@univerjs/sheets';@@ -45,7 +45,7 @@ import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';import { UniverSheetsZenEditorPlugin } from '@univerjs/sheets-zen-editor';import { IThreadCommentMentionDataService, UniverThreadCommentUIPlugin } from '@univerjs/thread-comment-ui';import { UniverUIPlugin } from '@univerjs/ui';-import { enUS, ruRU, viVN, zhCN, zhTW } from '../locales';+import { enUS, faIR, ruRU, viVN, zhCN, zhTW } from '../locales';/* eslint-disable-next-line node/prefer-global/process */const IS_E2E: boolean = !!process.env.IS_E2E;@@ -62,6 +62,7 @@ const univer = new Univer({[LocaleType.RU_RU]: ruRU,[LocaleType.ZH_TW]: zhTW,[LocaleType.VI_VN]: viVN,+ [LocaleType.FA_IR]: faIR,},logLevel: LogLevel.VERBOSE,});diff --git a/examples/src/sheets/worker.ts b/examples/src/sheets/worker.tsindex 1795528ffa..003e0bab6e 100644--- a/examples/src/sheets/worker.ts+++ b/examples/src/sheets/worker.ts@@ -20,7 +20,7 @@ import { UniverRPCWorkerThreadPlugin } from '@univerjs/rpc';import { UniverSheetsPlugin } from '@univerjs/sheets';import { UniverSheetsFilterUIWorkerPlugin } from '@univerjs/sheets-filter-ui';import { UniverRemoteSheetsFormulaPlugin } from '@univerjs/sheets-formula';-import { enUS, ruRU, viVN, zhCN, zhTW } from '../locales';+import { enUS, faIR, ruRU, viVN, zhCN, zhTW } from '../locales';// Univer web worker is also a univer application.const univer = new Univer({@@ -32,6 +32,7 @@ const univer = new Univer({[LocaleType.RU_RU]: ruRU,[LocaleType.ZH_TW]: zhTW,[LocaleType.VI_VN]: viVN,+ [LocaleType.FA_IR]: faIR,},});diff --git a/examples/src/slides/main.ts b/examples/src/slides/main.tsindex 28b5524f66..ac26d9e10b 100644--- a/examples/src/slides/main.ts+++ b/examples/src/slides/main.ts@@ -26,7 +26,7 @@ import { DEFAULT_SLIDE_DATA } from '@univerjs/mockdata';import { UniverSlidesPlugin } from '@univerjs/slides';import { UniverSlidesUIPlugin } from '@univerjs/slides-ui';import { UniverUIPlugin } from '@univerjs/ui';-import { enUS, ruRU, zhCN } from '../locales';+import { enUS, faIR, ruRU, zhCN } from '../locales';// univerconst univer = new Univer({@@ -36,6 +36,7 @@ const univer = new Univer({[LocaleType.ZH_CN]: zhCN,[LocaleType.EN_US]: enUS,[LocaleType.RU_RU]: ruRU,+ [LocaleType.FA_IR]: faIR,},});diff --git a/examples/src/uni/main.ts b/examples/src/uni/main.tsindex e0baf08def..ead32bcc42 100644--- a/examples/src/uni/main.ts+++ b/examples/src/uni/main.ts@@ -46,7 +46,7 @@ import { UniverDocUniFormulaPlugin } from '@univerjs/uni-formula';import { UniSheetsUIController } from '@univerjs/uni-sheets-ui';import { UniSlidesUIController } from '@univerjs/uni-slides-ui';import { UniverUniUIPlugin } from '@univerjs/uniui';-import { enUS } from '../locales';+import { enUS, faIR } from '../locales';const LOAD_LAZY_PLUGINS_TIMEOUT = 4_000;@@ -56,6 +56,7 @@ const univer = new Univer({locale: LocaleType.EN_US,locales: {[LocaleType.EN_US]: enUS,+ [LocaleType.FA_IR]: faIR,},logLevel: LogLevel.VERBOSE,});diff --git a/packages-experimental/action-recorder/src/locale/fa-IR.ts b/packages-experimental/action-recorder/src/locale/fa-IR.tsnew file mode 100644index 0000000000..46e3f9659e--- /dev/null+++ b/packages-experimental/action-recorder/src/locale/fa-IR.ts@@ -0,0 +1,29 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ 'action-recorder': {+ menu: {+ title: 'ثبت اقدامات',+ record: 'ثبت اقدامات...',+ 'replay-local': 'بازپخش محلی ثبت...',+ },+ },+};++export default locale;diff --git a/packages-experimental/uni-formula-ui/src/locale/fa-IR.ts b/packages-experimental/uni-formula-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..4539946a22--- /dev/null+++ b/packages-experimental/uni-formula-ui/src/locale/fa-IR.ts@@ -0,0 +1,38 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ 'uni-formula': {+ popup: {+ title: {+ new: 'ایجاد فرمول جدید',+ existing: 'ویرایش فرمول',+ },+ placeholder: 'برای درج فرمول اینجا کلیک کنید یا برای ادامه تایپ کردن بسته شود...',+ button: {+ confirm: 'تایید',+ cancel: 'انصراف',+ },+ },+ command: {+ 'stream-placeholder': 'فرمول Uni',+ },+ },+};++export default locale;diff --git a/packages/core/src/types/enum/locale-type.ts b/packages/core/src/types/enum/locale-type.tsindex 7a93496c91..e85f348323 100644--- a/packages/core/src/types/enum/locale-type.ts+++ b/packages/core/src/types/enum/locale-type.ts@@ -23,4 +23,5 @@ export enum LocaleType {RU_RU = 'ruRU',ZH_TW = 'zhTW',VI_VN = 'viVN',+ FA_IR = 'faIR',}diff --git a/packages/design/src/locale/fa-IR.ts b/packages/design/src/locale/fa-IR.tsnew file mode 100644index 0000000000..3f1372aaf0--- /dev/null+++ b/packages/design/src/locale/fa-IR.ts@@ -0,0 +1,43 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import dajsEnUS from 'dayjs/locale/en';+import PickerEnUs from 'rc-picker/lib/locale/en_US';+import type { ILocale } from './interface';++const locale: ILocale = {+ design: {+ Confirm: {+ cancel: 'لغو',+ confirm: 'باشه',+ },+ Slider: {+ resetTo: 'بازنشانی به',+ },+ Picker: {+ ...dajsEnUS,+ ...PickerEnUs,+ },+ CascaderList: {+ empty: 'هیچ کدام',+ },+ Select: {+ empty: 'هیچکدام',+ },+ },+};++export default locale;diff --git a/packages/docs-drawing-ui/src/locale/fa-IR.ts b/packages/docs-drawing-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..94ff108d46--- /dev/null+++ b/packages/docs-drawing-ui/src/locale/fa-IR.ts@@ -0,0 +1,81 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ docImage: {+ title: 'تصویر',++ upload: {+ float: 'درج تصویر',+ },++ panel: {+ title: 'ویرایش تصویر',+ },+ },+ 'image-popup': {+ replace: 'تعویض',+ delete: 'حذف',+ edit: 'ویرایش',+ crop: 'کراپ',+ reset: 'بازنشانی اندازه',+ },+ 'image-text-wrap': {+ title: 'پیچش متن',+ wrappingStyle: 'سبک پیچش',+ square: 'مربع',+ topAndBottom: 'بالا و پایین',+ inline: 'در یک خط با متن',+ behindText: 'پشت متن',+ inFrontText: 'جلوی متن',+ wrapText: 'پیچش متن',+ bothSide: 'هر دو طرف',+ leftOnly: 'فقط سمت چپ',+ rightOnly: 'فقط سمت راست',+ distanceFromText: 'فاصله از متن',+ top: 'بالا(px)',+ left: 'چپ(px)',+ bottom: 'پایین(px)',+ right: 'راست(px)',+ },+ 'image-position': {+ title: 'موقعیت',+ horizontal: 'افقی',+ vertical: 'عمودی',+ absolutePosition: 'موقعیت مطلق(px)',+ relativePosition: 'موقعیت نسبی',+ toTheRightOf: 'سمت راست',+ relativeTo: 'نسبت به',+ bellow: 'زیر',+ options: 'گزینهها',+ moveObjectWithText: 'جابهجایی شیء با متن',+ column: 'ستون',+ margin: 'حاشیه',+ page: 'صفحه',+ line: 'خط',+ paragraph: 'پاراگراف',+ },+ 'update-status': {+ exceedMaxSize: 'اندازه تصویر از حد مجاز فراتر رفته است، حد مجاز {0}M است',+ invalidImageType: 'نوع تصویر نامعتبر است',+ exceedMaxCount: 'فقط {0} تصویر میتوانند همزمان آپلود شوند',+ invalidImage: 'تصویر نامعتبر است',+ },+};++export default locale;diff --git a/packages/docs-hyper-link-ui/src/locale/fa-IR.ts b/packages/docs-hyper-link-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..e80e4ead83--- /dev/null+++ b/packages/docs-hyper-link-ui/src/locale/fa-IR.ts@@ -0,0 +1,43 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ docLink: {+ edit: {+ confirm: 'تایید',+ cancel: 'انصراف',+ title: 'لینک',+ address: 'لینک',+ placeholder: 'لطفا یک آدرس لینک وارد کنید',+ addressError: 'آدرس غیرمجاز است!',+ label: 'برچسب',+ labelError: 'لطفا برچسب لینک را وارد کنید',+ },+ info: {+ copy: 'کپی',+ edit: 'ویرایش',+ cancel: 'لینک را لغو کنید',+ coped: 'لینک به کلیپ بورد کپی شد',+ },+ menu: {+ tooltip: 'افزودن لینک',+ },+ },+};++export default locale;diff --git a/packages/docs-ui/src/locale/fa-IR.ts b/packages/docs-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..f88a3c0d80--- /dev/null+++ b/packages/docs-ui/src/locale/fa-IR.ts@@ -0,0 +1,101 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ toolbar: {+ undo: 'بازگرداندن',+ redo: 'تکرار',+ font: 'فونت',+ fontSize: 'اندازه فونت',+ bold: 'پررنگ',+ italic: 'ایتالیک',+ strikethrough: 'خطدار',+ subscript: 'زیرنویس',+ superscript: 'بالانویس',+ underline: 'خطکشی',+ textColor: {+ main: 'رنگ متن',+ right: 'انتخاب رنگ',+ },+ fillColor: {+ main: 'رنگ پسزمینه متن',+ right: 'انتخاب رنگ',+ },+ table: {+ main: 'جدول',+ insert: 'درج جدول',+ colCount: 'تعداد ستون',+ rowCount: 'تعداد سطر',+ },+ resetColor: 'بازنشانی',+ order: 'لیست شمارهدار',+ unorder: 'لیست بدون شماره',+ checklist: 'لیست وظیفه',+ alignLeft: 'تراز چپ',+ alignCenter: 'تراز وسط',+ alignRight: 'تراز راست',+ alignJustify: 'توجیه',+ headerFooter: 'هدر و فوتر',+ },+ table: {+ insert: 'درج',+ insertRowAbove: 'درج سطر بالاتر',+ insertRowBelow: 'درج سطر پایینتر',+ insertColumnLeft: 'درج ستون چپ',+ insertColumnRight: 'درج ستون راست',+ delete: 'حذف جدول',+ deleteRows: 'حذف سطر',+ deleteColumns: 'حذف ستون',+ deleteTable: 'حذف جدول',+ },+ headerFooter: {+ header: 'هدر',+ footer: 'فوتر',+ panel: 'تنظیمات هدر و فوتر',+ firstPageCheckBox: 'صفحه اول متفاوت',+ oddEvenCheckBox: 'صفحات فرد و زوج متفاوت',+ headerTopMargin: 'حاشیه بالای هدر(px)',+ footerBottomMargin: 'حاشیه پایینی فوتر(px)',+ closeHeaderFooter: 'بستن هدر و فوتر',+ disableText: 'تنظیمات هدر و فوتر غیرفعال است',+ },+ doc: {+ menu: {+ paragraphSetting: 'تنظیمات پاراگراف',+ },+ slider: {+ paragraphSetting: 'تنظیمات پاراگراف',+ },+ paragraphSetting: {+ alignment: 'تراز',+ indentation: 'تورفتگی',+ left: 'چپ',+ right: 'راست',+ firstLine: 'خط اول',+ hanging: 'آویز',+ spacing: 'فاصلهگذاری',+ before: 'قبل',+ after: 'بعد',+ lineSpace: 'فاصله خط',+ multiSpace: 'فاصله چندگانه',+ fixedValue: 'مقدار ثابت(px)',+ },+ },+};++export default locale;diff --git a/packages/drawing-ui/src/locale/fa-IR.ts b/packages/drawing-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..6e990fcc88--- /dev/null+++ b/packages/drawing-ui/src/locale/fa-IR.ts@@ -0,0 +1,74 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ 'image-popup': {+ replace: 'تعویض',+ delete: 'حذف',+ edit: 'ویرایش',+ crop: 'کراپ',+ reset: 'بازنشانی اندازه',+ },+ 'image-cropper': {+ error: 'کراپ کردن اشیاء غیرتصویری امکانپذیر نیست.',+ },+ 'image-panel': {+ arrange: {+ title: 'ترتیبدهی',+ forward: 'آوردن به جلو',+ backward: 'فرستادن به عقب',+ front: 'آوردن به جلوی همه',+ back: 'فرستادن به پشت همه',+ },+ transform: {+ title: 'تبدیل',+ rotate: 'چرخش (°)',+ x: 'X (px)',+ y: 'Y (px)',+ width: 'عرض (px)',+ height: 'ارتفاع (px)',+ lock: 'قفل نسبت (%)',+ },+ crop: {+ title: 'کراپ',+ start: 'شروع کراپ',+ mode: 'آزاد',+ },+ group: {+ title: 'گروه',+ group: 'گروهبندی',+ reGroup: 'گروهبندی مجدد',+ unGroup: 'لغو گروهبندی',+ },+ align: {+ title: 'تراز',+ default: 'انتخاب نوع تراز',+ left: 'تراز چپ',+ center: 'تراز وسط',+ right: 'تراز راست',+ top: 'تراز بالا',+ middle: 'تراز وسط',+ bottom: 'تراز پایین',+ horizon: 'توزیع افقی',+ vertical: 'توزیع عمودی',+ },+ null: 'هیچ شیئی انتخاب نشده است',+ },+};++export default locale;diff --git a/packages/find-replace/src/locale/fa-IR.ts b/packages/find-replace/src/locale/fa-IR.tsnew file mode 100644index 0000000000..d706b8de01--- /dev/null+++ b/packages/find-replace/src/locale/fa-IR.ts@@ -0,0 +1,68 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ 'find-replace': {+ toolbar: 'یافتن و جایگزینی',+ shortcut: {+ 'open-find-dialog': 'باز کردن پنجره گفتگوی یافتن',+ 'open-replace-dialog': 'باز کردن پنجره گفتگوی جایگزینی',+ 'close-dialog': 'بستن پنجره گفتگوی یافتن و جایگزینی',+ 'go-to-next-match': 'رفتن به تطابق بعدی',+ 'go-to-previous-match': 'رفتن به تطابق قبلی',+ },+ dialog: {+ title: 'یافتن',+ find: 'یافتن',+ replace: 'جایگزینی',+ 'replace-all': 'جایگزینی همه',+ 'case-sensitive': 'حساس به حروف کوچک و بزرگ',+ 'find-placeholder': 'یافتن در این برگ',+ 'advanced-finding': 'جستجوی پیشرفته و جایگزینی',+ 'replace-placeholder': 'ورود رشته جایگزین',+ 'match-the-whole-cell': 'مطابقت با کل سلول',+ 'find-direction': {+ title: 'جهت یافتن',+ row: 'جستجو بر اساس سطر',+ column: 'جستجو بر اساس ستون',+ },+ 'find-scope': {+ title: 'محدوده یافتن',+ 'current-sheet': 'برگ فعلی',+ workbook: 'کتاب کار',+ },+ 'find-by': {+ title: 'یافتن بر اساس',+ value: 'یافتن بر اساس مقدار',+ formula: 'یافتن فرمول',+ },+ 'no-match': 'یافتن تکمیل شد اما هیچ تطابقی یافت نشد.',+ 'no-result': 'نتیجهای وجود ندارد',+ },+ replace: {+ 'all-success': 'همه {0} تطابق جایگزین شد',+ 'all-failure': 'جایگزینی ناموفق بود',+ confirm: {+ title: 'آیا مطمئن هستید که همه تطابقها را جایگزین کنید؟',+ },+ },+ },+ 'find-replace-shortcuts': 'یافتن و جایگزینی',+};++export default locale;diff --git a/packages/sheets-conditional-formatting-ui/src/locale/fa-IR.ts b/packages/sheets-conditional-formatting-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..c8539bf583--- /dev/null+++ b/packages/sheets-conditional-formatting-ui/src/locale/fa-IR.ts@@ -0,0 +1,178 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ sheet: {+ cf: {+ title: 'قالببندی شرطی',+ menu: {+ manageConditionalFormatting: 'مدیریت قالببندی شرطی',+ createConditionalFormatting: 'ایجاد قالببندی شرطی',+ clearRangeRules: 'پاک کردن قوانین برای محدوده انتخاب شده',+ clearWorkSheetRules: 'پاک کردن قوانین برای کل برگ',+ },+ form: {+ lessThan: 'مقدار باید کمتر از {0} باشد',+ lessThanOrEqual: 'مقدار باید کمتر از یا برابر با {0} باشد',+ greaterThan: 'مقدار باید بزرگتر از {0} باشد',+ greaterThanOrEqual: 'مقدار باید بزرگتر از یا برابر با {0} باشد',+ rangeSelector: 'انتخاب محدوده یا وارد کردن مقدار',+ },+ iconSet: {+ direction: 'جهت',+ shape: 'شکل',+ mark: 'علامت',+ rank: 'رتبه',+ rule: 'قانون',+ icon: 'آیکون',+ type: 'نوع',+ value: 'مقدار',+ reverseIconOrder: 'معکوس کردن ترتیب آیکون',+ and: 'و',+ when: 'هنگامی که',+ onlyShowIcon: 'فقط نمایش آیکون',+ },+ symbol: {+ greaterThan: '>',+ greaterThanOrEqual: '>=',+ lessThan: '<',+ lessThanOrEqual: '<=',+ },+ panel: {+ createRule: 'ایجاد قانون',+ clear: 'پاک کردن همه قوانین',+ range: 'اعمال محدوده',+ styleType: 'نوع سبک',+ submit: 'ارسال',+ cancel: 'انصراف',+ rankAndAverage: 'بالا/پایین/میانگین',+ styleRule: 'قانون سبک',+ isNotBottom: 'بالا',+ isBottom: 'پایین',+ greaterThanAverage: 'بزرگتر از میانگین',+ lessThanAverage: 'کوچکتر از میانگین',+ medianValue: 'مقدار میانه',+ fillType: 'نوع پر کردن',+ pureColor: 'رنگ جامد',+ gradient: 'شیب رنگی',+ colorSet: 'مجموعه رنگ',+ positive: 'مثبت',+ native: 'منفی',+ workSheet: 'کل برگ',+ selectedRange: 'محدوده انتخاب شده',+ managerRuleSelect: 'مدیریت {0} قوانین',+ onlyShowDataBar: 'فقط نمایش نوار داده',+ },+ preview: {+ describe: {+ beginsWith: 'با {0} شروع میشود',+ endsWith: 'با {0} پایان مییابد',+ containsText: 'شامل متن {0} است',+ notContainsText: 'شامل متن {0} نیست',+ equal: 'برابر است با {0}',+ notEqual: 'برابر نیست با {0}',+ containsBlanks: 'شامل مقادیر خالی است',+ notContainsBlanks: 'شامل مقادیر خالی نیست',+ containsErrors: 'شامل خطاها است',+ notContainsErrors: 'شامل خطاها نیست',+ greaterThan: 'بزرگتر از {0}',+ greaterThanOrEqual: 'بزرگتر از یا برابر با {0}',+ lessThan: 'کوچکتر از {0}',+ lessThanOrEqual: 'کوچکتر از یا برابر با {0}',+ notBetween: 'بین {0} و {1} نیست',+ between: 'بین {0} و {1}',+ yesterday: 'دیروز',+ tomorrow: 'فردا',+ last7Days: '7 روز گذشته',+ thisMonth: 'این ماه',+ lastMonth: 'ماه گذشته',+ nextMonth: 'ماه آینده',+ thisWeek: 'این هفته',+ lastWeek: 'هفته گذشته',+ nextWeek: 'هفته آینده',+ today: 'امروز',+ topN: '{0} برتر',+ bottomN: '{0} پایینتر',+ topNPercent: '{0}% برتر',+ bottomNPercent: '{0}% پایینتر',+ },+ },+ operator: {+ beginsWith: 'با ... شروع میشود',+ endsWith: 'با ... پایان مییابد',+ containsText: 'شامل متن ... است',+ notContainsText: 'شامل متن ... نیست',+ equal: 'برابر است با',+ notEqual: 'برابر نیست با',+ containsBlanks: 'شامل مقادیر خالی است',+ notContainsBlanks: 'شامل مقادیر خالی نیست',+ containsErrors: 'شامل خطاها است',+ notContainsErrors: 'شامل خطاها نیست',+ greaterThan: 'بزرگتر از',+ greaterThanOrEqual: 'بزرگتر از یا برابر با',+ lessThan: 'کوچکتر از',+ lessThanOrEqual: 'کوچکتر از یا برابر با',+ notBetween: 'بین ... و ... نیست',+ between: 'بین ... و ...',+ yesterday: 'دیروز',+ tomorrow: 'فردا',+ last7Days: '7 روز گذشته',+ thisMonth: 'این ماه',+ lastMonth: 'ماه گذشته',+ nextMonth: 'ماه آینده',+ thisWeek: 'این هفته',+ lastWeek: 'هفته گذشته',+ nextWeek: 'هفته آینده',+ today: 'امروز',+ },+ ruleType: {+ highlightCell: 'برجسته کردن سلول',+ dataBar: 'نوار داده',+ colorScale: 'مقیاس رنگی',+ formula: 'فرمول سفارشی',+ iconSet: 'مجموعه آیکون',+ duplicateValues: 'مقادیر تکراری',+ uniqueValues: 'مقادیر منحصربهفرد',+ },+ subRuleType: {+ uniqueValues: 'مقادیر منحصربهفرد',+ duplicateValues: 'مقادیر تکراری',+ rank: 'رتبه',+ text: 'متن',+ timePeriod: 'دوره زمانی',+ number: 'عدد',+ average: 'میانگین',+ },+ valueType: {+ num: 'عدد',+ min: 'حداقل',+ max: 'حداکثر',+ percent: 'درصد',+ percentile: 'درصد صدک',+ formula: 'فرمول',+ none: 'هیچ کدام',+ },+ errorMessage: {+ notBlank: 'شرط نمیتواند خالی باشد',+ formulaError: 'فرمول اشتباه',+ },+ },+ },+};++export default locale;diff --git a/packages/sheets-crosshair-highlight/src/locale/fa-IR.ts b/packages/sheets-crosshair-highlight/src/locale/fa-IR.tsnew file mode 100644index 0000000000..30db777049--- /dev/null+++ b/packages/sheets-crosshair-highlight/src/locale/fa-IR.ts@@ -0,0 +1,27 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ crosshair: {+ button: {+ tooltip: 'برجسته کردن خط نشانه',+ },+ },+};++export default locale;diff --git a/packages/sheets-data-validation-ui/src/locale/fa-IR.ts b/packages/sheets-data-validation-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..438b07bef0--- /dev/null+++ b/packages/sheets-data-validation-ui/src/locale/fa-IR.ts@@ -0,0 +1,187 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ dataValidation: {+ title: 'اعتبارسنجی داده',+ validFail: {+ value: 'لطفا یک مقدار وارد کنید',+ common: 'لطفا مقدار یا فرمول را وارد کنید',+ number: 'لطفا عدد یا فرمول را وارد کنید',+ formula: 'لطفا فرمول را وارد کنید',+ integer: 'لطفا عدد صحیح یا فرمول را وارد کنید',+ date: 'لطفا تاریخ یا فرمول را وارد کنید',+ list: 'لطفا گزینهها را وارد کنید',+ listInvalid: 'منبع لیست باید یک لیست جدا شده یا یک مرجع به یک سطر یا ستون منفرد باشد',+ checkboxEqual: 'برای محتوای سلولهای علامتدار و علامتگذاری نشده، مقادیر متفاوتی وارد کنید.',+ formulaError: 'محدوده مرجع حاوی دادههای نامرئی است، لطفا محدوده را دوباره تنظیم کنید',+ listIntersects: 'محدوده انتخاب شده نمیتواند با دامنه قوانین تداخل داشته باشد',+ primitive: 'فرمولها برای مقادیر سفارشی علامتدار و علامتگذاری نشده مجاز نیستند.',+ },+ panel: {+ title: 'مدیریت اعتبارسنجی داده',+ addTitle: 'ایجاد اعتبارسنجی داده جدید',+ removeAll: 'حذف همه',+ add: 'افزودن قانون',+ range: 'محدودهها',+ type: 'نوع',+ options: 'گزینههای پیشرفته',+ operator: 'عملگر',+ removeRule: 'حذف',+ done: 'انجام شد',+ formulaPlaceholder: 'لطفا مقدار یا فرمول را وارد کنید',+ valuePlaceholder: 'لطفا مقدار را وارد کنید',+ formulaAnd: 'و',+ invalid: 'نامعتبر',+ showWarning: 'نمایش هشدار',+ rejectInput: 'رد ورودی',+ messageInfo: 'پیام راهنما',+ showInfo: 'نمایش متن راهنما برای یک سلول انتخاب شده',+ rangeError: 'محدودهها نامعتبر هستند',+ },+ operators: {+ between: 'بین',+ greaterThan: 'بزرگتر از',+ greaterThanOrEqual: 'بزرگتر از یا برابر با',+ lessThan: 'کوچکتر از',+ lessThanOrEqual: 'کوچکتر از یا برابر با',+ equal: 'برابر است با',+ notEqual: 'برابر نیست با',+ notBetween: 'بین ... و ... نیست',+ },+ ruleName: {+ between: 'بین {FORMULA1} و {FORMULA2} است',+ greaterThan: 'بزرگتر از {FORMULA1} است',+ greaterThanOrEqual: 'بزرگتر از یا برابر با {FORMULA1} است',+ lessThan: 'کوچکتر از {FORMULA1} است',+ lessThanOrEqual: 'کوچکتر از یا برابر با {FORMULA1} است',+ equal: 'برابر است با {FORMULA1}',+ notEqual: 'برابر نیست با {FORMULA1}',+ notBetween: 'بین {FORMULA1} و {FORMULA2} نیست',+ },+ errorMsg: {+ between: 'مقدار باید بین {FORMULA1} و {FORMULA2} باشد',+ greaterThan: 'مقدار باید بزرگتر از {FORMULA1} باشد',+ greaterThanOrEqual: 'مقدار باید بزرگتر از یا برابر با {FORMULA1} باشد',+ lessThan: 'مقدار باید کوچکتر از {FORMULA1} باشد',+ lessThanOrEqual: 'مقدار باید کوچکتر از یا برابر با {FORMULA1} باشد',+ equal: 'مقدار باید برابر با {FORMULA1} باشد',+ notEqual: 'مقدار باید برابر نیست با {FORMULA1}',+ notBetween: 'مقدار باید بین {FORMULA1} و {FORMULA2} نباشد',+ },+ date: {+ title: 'تاریخ',+ operators: {+ between: 'بین',+ greaterThan: 'بعد از',+ greaterThanOrEqual: 'روی یا بعد از',+ lessThan: 'قبل از',+ lessThanOrEqual: 'روی یا قبل از',+ equal: 'برابر است با',+ notEqual: 'برابر نیست با',+ notBetween: 'بین ... و ... نیست',+ },+ ruleName: {+ between: 'بین {FORMULA1} و {FORMULA2} است',+ greaterThan: 'بعد از {FORMULA1} است',+ greaterThanOrEqual: 'روی یا بعد از {FORMULA1} است',+ lessThan: 'قبل از {FORMULA1} است',+ lessThanOrEqual: 'روی یا قبل از {FORMULA1} است',+ equal: 'برابر است با {FORMULA1}',+ notEqual: 'برابر نیست با {FORMULA1}',+ notBetween: 'بین {FORMULA1} و {FORMULA2} نیست',+ },+ errorMsg: {+ between: 'مقدار باید یک تاریخ معتبر و بین {FORMULA1} و {FORMULA2} باشد',+ greaterThan: 'مقدار باید یک تاریخ معتبر و بعد از {FORMULA1} باشد',+ greaterThanOrEqual: 'مقدار باید یک تاریخ معتبر و روی یا بعد از {FORMULA1} باشد',+ lessThan: 'مقدار باید یک تاریخ معتبر و قبل از {FORMULA1} باشد',+ lessThanOrEqual: 'مقدار باید یک تاریخ معتبر و روی یا قبل از {FORMULA1} باشد',+ equal: 'مقدار باید یک تاریخ معتبر و {FORMULA1} باشد',+ notEqual: 'مقدار باید یک تاریخ معتبر و نه {FORMULA1} باشد',+ notBetween: 'مقدار باید یک تاریخ معتبر و بین {FORMULA1} و {FORMULA2} نباشد',+ },+ },+ list: {+ title: 'لیست کشویی',+ name: 'مقدار شامل یکی از محدوده است',+ error: 'ورود باید در محدوده مشخص شده قرار گیرد',+ emptyError: 'لطفا یک مقدار وارد کنید',+ add: 'افزودن',+ dropdown: 'انتخاب',+ options: 'گزینهها',+ customOptions: 'سفارشی',+ refOptions: 'از یک محدوده',+ formulaError: 'منبع لیست باید یک لیست جدا شده از دادهها یا یک مرجع به یک سطر یا ستون منفرد باشد.',+ edit: 'ویرایش',+ },+ listMultiple: {+ title: 'لیست کشویی چندگانه',+ dropdown: 'انتخاب چندگانه',+ },+ textLength: {+ title: 'طول متن',+ errorMsg: {+ between: 'طول متن باید بین {FORMULA1} و {FORMULA2} باشد',+ greaterThan: 'طول متن باید بعد از {FORMULA1} باشد',+ greaterThanOrEqual: 'طول متن باید روی یا بعد از {FORMULA1} باشد',+ lessThan: 'طول متن باید قبل از {FORMULA1} باشد',+ lessThanOrEqual: 'طول متن باید روی یا قبل از {FORMULA1} باشد',+ equal: 'طول متن باید {FORMULA1} باشد',+ notEqual: 'طول متن باید {FORMULA1} نباشد',+ notBetween: 'طول متن باید بین {FORMULA1} و {FORMULA2} نباشد',+ },+ },+ decimal: {+ title: 'عدد',+ },+ whole: {+ title: 'عدد صحیح',+ },+ checkbox: {+ title: 'کادر انتخاب',+ error: 'محتوای این سلول با قانون اعتبارسنجی آن نقض میشود',+ tips: 'از مقادیر سفارشی در سلولها استفاده کنید',+ checked: 'مقدار انتخاب شده',+ unchecked: 'مقدار انتخاب نشده',+ },+ custom: {+ title: 'فرمول سفارشی',+ error: 'محتوای این سلول با قانون اعتبارسنجی آن نقض میشود',+ validFail: 'لطفا یک فرمول معتبر وارد کنید',+ },+ alert: {+ title: 'خطا',+ ok: 'باشه',+ },+ error: {+ title: 'نامعتبر:',+ },+ renderMode: {+ arrow: 'فلش',+ chip: 'چیپ',+ text: 'متن ساده',+ label: 'سبک نمایش',+ },+ showTime: {+ label: 'نمایش انتخابگر زمان',+ },+ },+};++export default locale;diff --git a/packages/sheets-drawing-ui/src/locale/fa-IR.ts b/packages/sheets-drawing-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..7f9fe78466--- /dev/null+++ b/packages/sheets-drawing-ui/src/locale/fa-IR.ts@@ -0,0 +1,63 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ sheetImage: {+ title: 'تصویر',++ upload: {+ float: 'شناور کردن تصویر',+ cell: 'تصویر سلولی',+ },++ panel: {+ title: 'ویرایش تصویر',+ },+ },+ 'image-popup': {+ replace: 'تعویض',+ delete: 'حذف',+ edit: 'ویرایش',+ crop: 'کراپ',+ reset: 'بازنشانی اندازه',+ },+ 'drawing-anchor': {+ title: 'خواص لنگر',+ both: 'جابهجایی و تغییر اندازه با سلولها',+ position: 'جابهجایی اما تغییر اندازه نکردن با سلولها',+ none: 'جابهجایی یا تغییر اندازه نکردن با سلولها',+ },+ 'update-status': {+ exceedMaxSize: 'اندازه تصویر از حد مجاز فراتر رفته است، حد مجاز {0}M است',+ invalidImageType: 'نوع تصویر نامعتبر است',+ exceedMaxCount: 'فقط {0} تصویر میتوانند همزمان آپلود شوند',+ invalidImage: 'تصویر نامعتبر است',+ },+ 'sheet-drawing-view': 'طراحی',+ shortcut: {+ sheet: {+ 'drawing-move-down': 'جابهجایی طراحی به پایین',+ 'drawing-move-up': 'جابهجایی طراحی به بالا',+ 'drawing-move-left': 'جابهجایی طراحی به چپ',+ 'drawing-move-right': 'جابهجایی طراحی به راست',+ 'drawing-delete': 'حذف طراحی',+ },+ },+};++export default locale;diff --git a/packages/sheets-filter-ui/src/locale/fa-IR.ts b/packages/sheets-filter-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..e0b2e9b2bf--- /dev/null+++ b/packages/sheets-filter-ui/src/locale/fa-IR.ts@@ -0,0 +1,73 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ 'sheets-filter': {+ toolbar: {+ 'smart-toggle-filter-tooltip': 'تغییر حالت فیلتر',+ 'clear-filter-criteria': 'پاک کردن شرایط فیلتر',+ 're-calc-filter-conditions': 'بازمحاسبه شرایط فیلتر',+ },+ command: {+ 'not-valid-filter-range': 'محدوده انتخاب شده فقط یک ردیف دارد و برای فیلتر معتبر نیست.',+ },+ shortcut: {+ 'smart-toggle-filter': 'تغییر حالت فیلتر',+ },+ panel: {+ 'clear-filter': 'پاک کردن فیلتر',+ cancel: 'انصراف',+ confirm: 'تایید',+ 'by-values': 'بر اساس مقادیر',+ 'by-conditions': 'بر اساس شرایط',+ 'filter-only': 'فقط فیلتر',+ 'search-placeholder': 'برای جداسازی کلیدواژهها از فاصله استفاده کنید',+ 'select-all': 'انتخاب همه',+ 'input-values-placeholder': 'ورود مقادیر',+ and: 'و',+ or: 'یا',+ empty: '(خالی)',+ '?': 'برای نمایش یک کاراکتر از “?” استفاده کنید.',+ '*': 'برای نمایش چندین کاراکتر از “*” استفاده کنید.',+ },+ conditions: {+ none: 'هیچ کدام',+ empty: 'خالی است',+ 'not-empty': 'خالی نیست',+ 'text-contains': 'شامل متن است',+ 'does-not-contain': 'شامل متن نیست',+ 'starts-with': 'با متن شروع میشود',+ 'ends-with': 'با متن پایان مییابد',+ equals: 'برابر است با',+ 'greater-than': 'بزرگتر از',+ 'greater-than-or-equal': 'بزرگتر از یا برابر با',+ 'less-than': 'کوچکتر از',+ 'less-than-or-equal': 'کوچکتر از یا برابر با',+ equal: 'برابر است با',+ 'not-equal': 'برابر نیست با',+ between: 'بین',+ 'not-between': 'بین نیست',+ custom: 'سفارشی',+ },+ msg: {+ 'filter-header-forbidden': 'شما نمیتوانید ردیف هدر یک فیلتر را جابهجا کنید.',+ },+ },+};++export default locale;diff --git a/packages/sheets-find-replace/src/locale/fa-IR.ts b/packages/sheets-find-replace/src/locale/fa-IR.tsnew file mode 100644index 0000000000..86d3221249--- /dev/null+++ b/packages/sheets-find-replace/src/locale/fa-IR.ts@@ -0,0 +1,28 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ 'sheet-find-replace': {+ replace: {+ 'partial-failure': 'جایگزینی برخی سلولها ناموفق بود',+ failure: 'جایگزینی همه سلولها ناموفق بود',+ },+ },+};++export default locale;diff --git a/packages/sheets-formula-ui/src/locale/fa-IR.ts b/packages/sheets-formula-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..ccb7781f39--- /dev/null+++ b/packages/sheets-formula-ui/src/locale/fa-IR.ts@@ -0,0 +1,114 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import array from './function-list/array/en-US';+import compatibility from './function-list/compatibility/en-US';+import cube from './function-list/cube/en-US';+import database from './function-list/database/en-US';+import date from './function-list/date/en-US';+import engineering from './function-list/engineering/en-US';+import financial from './function-list/financial/en-US';+import information from './function-list/information/en-US';+import logical from './function-list/logical/en-US';+import lookup from './function-list/lookup/en-US';+import math from './function-list/math/en-US';+import statistical from './function-list/statistical/en-US';+import text from './function-list/text/en-US';+import univer from './function-list/univer/en-US';+import web from './function-list/web/en-US';++export default {+ formula: {+ insert: {+ tooltip: 'توابع',+ sum: 'SUM',+ average: 'AVERAGE',+ count: 'COUNT',+ max: 'MAX',+ min: 'MIN',+ more: 'توابع بیشتر...',+ },+ functionList: {+ ...financial,+ ...date,+ ...math,+ ...statistical,+ ...lookup,+ ...database,+ ...text,+ ...logical,+ ...information,+ ...engineering,+ ...cube,+ ...compatibility,+ ...web,+ ...array,+ ...univer,+ },+ prompt: {+ helpExample: 'مثال',+ helpAbstract: 'درباره',+ required: 'ضروری.',+ optional: 'اختیاری.',+ },+ error: {+ title: 'خطا',+ divByZero: 'خطای تقسیم بر صفر',+ name: 'خطای نام نامعتبر',+ value: 'خطا در مقدار',+ num: 'خطای عدد',+ na: 'خطای مقدار موجود نیست',+ cycle: 'خطای مرجع دورهای',+ ref: 'خطای مرجع سلول نامعتبر',+ spill: 'دامنه ریزش خالی نیست',+ calc: 'خطای محاسبه',+ error: 'خطا',+ connect: 'در حال دریافت دادهها',+ null: 'خطای تهی',+ },++ functionType: {+ financial: 'مالی',+ date: 'تاریخ و زمان',+ math: 'ریاضی و مثلثاتی',+ statistical: 'آماری',+ lookup: 'جستجو و مرجع',+ database: 'پایگاه داده',+ text: 'متن',+ logical: 'منطقی',+ information: 'اطلاعاتی',+ engineering: 'مهندسی',+ cube: 'مکعب',+ compatibility: 'سازگاری',+ web: 'وب',+ array: 'آرایه',+ univer: 'Univer',+ user: 'تعریف شده توسط کاربر',+ definedname: 'نام تعریف شده',+ },+ moreFunctions: {+ confirm: 'تایید',+ prev: 'قبلی',+ next: 'بعدی',+ searchFunctionPlaceholder: 'جستجوی تابع',+ allFunctions: 'همه توابع',+ syntax: 'سینتکس',+ },+ operation: {+ pasteFormula: 'چسباندن فرمول',+ },+ },+};diff --git a/packages/sheets-hyper-link-ui/src/locale/fa-IR.ts b/packages/sheets-hyper-link-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..86636c0eb7--- /dev/null+++ b/packages/sheets-hyper-link-ui/src/locale/fa-IR.ts@@ -0,0 +1,55 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ hyperLink: {+ form: {+ editTitle: 'ویرایش لینک',+ addTitle: 'درج لینک',+ label: 'برچسب',+ type: 'نوع',+ link: 'لینک',+ linkPlaceholder: 'لینک را وارد کنید',+ range: 'محدوده',+ worksheet: 'برگ کار',+ definedName: 'نام تعریف شده',+ ok: 'تایید',+ cancel: 'انصراف',+ labelPlaceholder: 'برچسب را وارد کنید',+ inputError: 'لطفا وارد کنید',+ selectError: 'لطفا انتخاب کنید',+ linkError: 'لطفا یک لینک معتبر وارد کنید',+ },+ menu: {+ add: 'درج لینک',+ },+ message: {+ noSheet: 'برگ هدف حذف شده است',+ refError: 'محدوده نامعتبر',+ hiddenSheet: 'نمیتوان لینک را باز کرد زیرا برگ مرتبط پنهان است',+ coped: 'لینک به کلیپ بورد کپی شد',+ },+ popup: {+ copy: 'کپی لینک',+ edit: 'ویرایش لینک',+ cancel: 'لینک را لغو کنید',+ },+ },+};++export default locale;diff --git a/packages/sheets-numfmt/src/locale/fa-IR.ts b/packages/sheets-numfmt/src/locale/fa-IR.tsnew file mode 100644index 0000000000..ac0456293f--- /dev/null+++ b/packages/sheets-numfmt/src/locale/fa-IR.ts@@ -0,0 +1,58 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ sheet: {+ numfmt: {+ percent: 'درصد',+ title: 'قالببندی عدد',+ numfmtType: 'انواع قالببندی',+ cancel: 'انصراف',+ confirm: 'تایید',+ general: 'عمومی',+ accounting: 'حسابداری',+ text: 'متن',+ number: 'عدد',+ currency: 'ارز',+ date: 'تاریخ',+ time: 'زمان',+ thousandthPercentile: 'جداساز هزارتایی',+ preview: 'پیشنمایش',+ dateTime: 'تاریخ و زمان',+ decimalLength: 'اعشار',+ currencyType: 'نماد ارز',+ moreFmt: 'قالبها',+ financialValue: 'مقدار مالی',+ roundingCurrency: 'گرد کردن ارز',+ timeDuration: 'مدت زمان',+ currencyDes: 'قالببندی ارز برای نمایش مقادیر عمومی ارز استفاده میشود. قالببندی حسابداری ستونی از مقادیر را با اعشار تراز میکند.',+ accountingDes: 'قالببندی عددی حسابداری ستونی از مقادیر را با نمادهای ارز و اعشار تراز میکند.',+ dateType: 'نوع تاریخ',+ dateDes: 'قالببندی تاریخ مقادیر سری تاریخ و زمان را به عنوان مقادیر تاریخ ارائه میدهد.',+ negType: 'نوع عدد منفی',+ generalDes: 'قالببندی معمولی حاوی هیچ قالببندی عدد خاصی نیست.',+ thousandthPercentileDes: 'قالببندی درصدی برای نمایش اعداد معمولی استفاده میشود. قالببندیهای پولی و حسابداری قالب تخصصی برای محاسبات مقدار پولی ارائه میدهند.',+ addDecimal: 'افزایش اعشار',+ subtractDecimal: 'کاهش اعشار',+ customFormat: 'قالببندی سفارشی',+ customFormatDes: 'ایجاد قالببندیهای عددی سفارشی بر اساس قالببندیهای موجود.',+ },+ },+};++export default locale;diff --git a/packages/sheets-sort-ui/src/locale/fa-IR.ts b/packages/sheets-sort-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..1a560fd4da--- /dev/null+++ b/packages/sheets-sort-ui/src/locale/fa-IR.ts@@ -0,0 +1,50 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ 'sheets-sort': {+ general: {+ sort: 'مرتبسازی',+ 'sort-asc': 'صعودی',+ 'sort-desc': 'نزولی',+ 'sort-custom': 'مرتبسازی سفارشی',+ 'sort-asc-ext': 'گسترش صعودی',+ 'sort-desc-ext': 'گسترش نزولی',+ 'sort-asc-cur': 'صعودی',+ 'sort-desc-cur': 'نزولی',+ },+ error: {+ 'merge-size': 'محدوده انتخاب شده حاوی سلولهای ادغام شده با اندازههای مختلف است که نمیتوان مرتب کرد.',+ empty: 'محدوده انتخاب شده هیچ محتوایی ندارد و نمیتوان مرتب کرد.',+ single: 'محدوده انتخاب شده فقط یک ردیف دارد و نمیتوان مرتب کرد.',+ 'formula-array': 'محدوده انتخاب شده دارای فرمولهای آرایهای است و نمیتوان مرتب کرد.',+ },+ dialog: {+ 'sort-reminder': 'یادآوری مرتبسازی',+ 'sort-reminder-desc': 'گسترش مرتبسازی محدوده یا حفظ مرتبسازی محدوده؟',+ 'sort-reminder-ext': 'گسترش مرتبسازی محدوده',+ 'sort-reminder-no': 'حفظ مرتبسازی محدوده',+ 'first-row-check': 'ردیف اول در مرتبسازی شرکت نمیکند',+ 'add-condition': 'افزودن شرط',+ cancel: 'انصراف',+ confirm: 'تایید',+ },+ },+};++export default locale;diff --git a/packages/sheets-sort/src/locale/fa-IR.ts b/packages/sheets-sort/src/locale/fa-IR.tsnew file mode 100644index 0000000000..5419d1e875--- /dev/null+++ b/packages/sheets-sort/src/locale/fa-IR.ts@@ -0,0 +1,35 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ sheetsSort: {+ title: 'مرتبسازی',+ toolbar: {+ 'sort-asc': 'ترتیب صعودی',+ 'sort-desc': 'ترتیب نزولی',+ 'sort-custom': 'ترتیب سفارشی',+ },+ 'context-menu': {+ 'sort-asc': 'ترتیب صعودی',+ 'sort-desc': 'ترتیب نزولی',+ 'sort-custom': 'ترتیب سفارشی',+ },+ },+};++export default locale;diff --git a/packages/sheets-thread-comment/src/locale/fa-IR.ts b/packages/sheets-thread-comment/src/locale/fa-IR.tsnew file mode 100644index 0000000000..00c9cf6492--- /dev/null+++ b/packages/sheets-thread-comment/src/locale/fa-IR.ts@@ -0,0 +1,24 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++export default {+ sheetThreadComment: {+ menu: {+ addComment: 'افزودن نظر',+ commentManagement: 'مدیریت نظر',+ },+ },+};diff --git a/packages/sheets-ui/src/locale/fa-IR.ts b/packages/sheets-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..35dfd1db09--- /dev/null+++ b/packages/sheets-ui/src/locale/fa-IR.ts@@ -0,0 +1,633 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ spreadsheetLabel: 'برگه گسترده',+ spreadsheetRightLabel: 'برگههای بیشتر',++ toolbar: {+ undo: 'بازگرداندن',+ redo: 'تکرار',+ formatPainter: 'کپی قالب',+ currencyFormat: 'قالببندی به عنوان ارز',+ percentageFormat: 'قالببندی به عنوان درصد',+ numberDecrease: 'کاهش اعشار',+ numberIncrease: 'افزایش اعشار',+ moreFormats: 'قالبهای بیشتر',+ font: 'فونت',+ fontSize: 'اندازه فونت',+ bold: 'پررنگ',+ italic: 'ایتالیک',+ strikethrough: 'خطدار',+ subscript: 'زیرنویس',+ superscript: 'بالانویس',+ underline: 'خطکشی',+ textColor: {+ main: 'رنگ متن',+ right: 'انتخاب رنگ',+ },+ resetColor: 'بازنشانی',+ customColor: 'سفارشی',+ alternatingColors: 'رنگهای متناوب',+ confirmColor: 'تایید',+ cancelColor: 'انصراف',+ collapse: 'جمع کردن',+ fillColor: {+ main: 'رنگ پر کردن',+ right: 'انتخاب رنگ',+ },+ border: {+ main: 'حاشیه',+ right: 'سبک حاشیه',+ },+ mergeCell: {+ main: 'ادغام سلولها',+ right: 'انتخاب نوع ادغام',+ },+ horizontalAlignMode: {+ main: 'تراز افقی',+ right: 'تراز',+ },+ verticalAlignMode: {+ main: 'تراز عمودی',+ right: 'تراز',+ },+ textWrapMode: {+ main: 'پیچش متن',+ right: 'حالت پیچش متن',+ },+ textRotateMode: {+ main: 'چرخش متن',+ right: 'حالت چرخش متن',+ },+ freezeTopRow: 'فریز کردن سطر بالا',+ sortAndFilter: 'مرتبسازی و فیلتر',+ findAndReplace: 'یافتن و جایگزینی',+ sum: 'SUM',+ autoSum: 'جمع خودکار',+ moreFunction: 'توابع بیشتر',+ conditionalFormatting: 'قالببندی شرطی',+ comment: 'نظر',+ pivotTable: 'جدول محوری',+ chart: 'نمودار',+ screenshot: 'عکس صفحه',+ splitColumn: 'تقسیم متن',+ insertImage: 'درج تصویر',+ insertLink: 'درج لینک',+ dataValidation: 'اعتبارسنجی داده',+ protection: 'محافظت از برگ',++ clearText: 'پاک کردن رنگ',+ noColorSelectedText: 'هیچ رنگی انتخاب نشده است',++ toolMore: 'بیشتر',+ toolLess: 'کمتر',+ toolClose: 'بستن',+ toolMoreTip: 'امکانات بیشتر',+ moreOptions: 'گزینههای بیشتر',++ cellFormat: 'تنظیمات قالب سلول',+ print: 'چاپ',+ borderMethod: {+ top: 'خط بالای قاب',+ bottom: 'خط پایینی قاب',+ left: 'خط چپ قاب',+ right: 'خط راست قاب',+ },+ more: 'بیشتر',+ },+ defaultFmt: {+ Automatic: {+ text: 'خودکار',+ value: 'General',+ example: '',+ },+ Number: {+ text: 'عدد',+ value: '##0.00',+ example: '1000.12',+ },+ Percent: {+ text: 'درصد',+ value: '#0.00%',+ example: '12.21%',+ },+ PlainText: {+ text: 'متن ساده',+ value: '@',+ example: '',+ },+ Scientific: {+ text: 'علمی',+ value: '0.00E+00',+ example: '1.01E+5',+ },+ Accounting: {+ text: 'حسابداری',+ value: '¥(0.00)',+ example: '¥(1200.09)',+ },+ Thousand: {+ text: 'ده هزار',+ value: 'w',+ example: '1亿2000万2500',+ },+ Currency: {+ text: 'ارز',+ value: '¥0.00',+ example: '¥1200.09',+ },+ Digit: {+ text: 'دهها هزار با دو رقم اعشار',+ value: 'w0.00',+ example: '2万2500.55',+ },+ Date: {+ text: 'تاریخ',+ value: 'yyyy-MM-dd',+ example: '2017-11-29',+ },+ Time: { text: 'زمان', value: 'hh:mm AM/PM', example: '3:00 PM' },+ Time24H: { text: 'زمان 24 ساعته', value: 'hh:mm', example: '15:00' },+ DateTime: { text: 'تاریخ و زمان', value: 'yyyy-MM-dd hh:mm AM/PM', example: '2017-11-29 3:00 PM' },+ DateTime24H: { text: 'تاریخ و زمان 24 ساعته', value: 'yyyy-MM-dd hh:mm', example: '2017-11-29 15:00' },+ CustomFormats: { text: 'قالبهای سفارشی', value: 'fmtOtherSelf', example: '' },+ },+ format: {+ moreCurrency: 'قالبهای ارز بیشتر',+ moreDateTime: 'قالبهای تاریخ و زمان بیشتر',+ moreNumber: 'قالبهای عددی بیشتر',++ titleCurrency: 'قالبهای ارز',+ decimalPlaces: 'اعشار',+ titleDateTime: 'قالبهای تاریخ و زمان',+ titleNumber: 'قالبهای عددی',+ },+ print: {+ normalBtn: 'عادی',+ layoutBtn: 'چیدمان صفحه',+ pageBtn: 'پیشنمایش شکست صفحه',++ menuItemPrint: 'چاپ (Ctrl+P)',+ menuItemAreas: 'مناطق چاپ',+ menuItemRows: 'سطرهای عنوان چاپ',+ menuItemColumns: 'ستونهای عنوان چاپ',+ },+ align: {+ left: 'چپ',+ center: 'وسط',+ right: 'راست',++ top: 'بالا',+ middle: 'وسط',+ bottom: 'پایین',+ },++ button: {+ confirm: 'تایید',+ cancel: 'انصراف',+ close: 'بستن',+ update: 'بهروزرسانی',+ delete: 'حذف',+ insert: 'درج',+ prevPage: 'قبلی',+ nextPage: 'بعدی',+ total: 'مجموع:',+ },+ punctuation: {+ tab: 'تب',+ semicolon: 'نقطهویرگول',+ comma: 'ویرگول',+ space: 'فاصله',+ },+ colorPicker: {+ collapse: 'جمع کردن',+ customColor: 'سفارشی',+ change: 'تغییر',+ confirmColor: 'تایید',+ cancelColor: 'انصراف',+ },+ borderLine: {+ borderTop: 'خط بالای قاب',+ borderBottom: 'خط پایینی قاب',+ borderLeft: 'خط چپ قاب',+ borderRight: 'خط راست قاب',+ borderNone: 'بدون حاشیه',+ borderAll: 'همه حاشیهها',+ borderOutside: 'حاشیه بیرونی',+ borderInside: 'حاشیه داخلی',+ borderHorizontal: 'حاشیه افقی',+ borderVertical: 'حاشیه عمودی',+ borderColor: 'رنگ حاشیه',+ borderSize: 'اندازه حاشیه',+ borderType: 'نوع حاشیه',+ },+ merge: {+ all: 'ادغام همه',+ vertical: 'ادغام عمودی',+ horizontal: 'ادغام افقی',+ cancel: 'لغو ادغام',+ overlappingError: 'نمیتوان نواحی همپوشان را ادغام کرد',+ partiallyError: 'نمیتوان این عملیات را روی سلولهای ادغامشده جزئی انجام داد',+ confirm: {+ title: 'ادامه ادغام فقط مقدار سلول بالا-چپ را نگه میدارد و مقادیر دیگر حذف خواهند شد. آیا مطمئن هستید که میخواهید ادامه دهید؟',+ cancel: 'لغو ادغام',+ confirm: 'ادامه ادغام',+ waring: 'هشدار',+ dismantleMergeCellWaring: 'این باعث شکستن برخی از سلولهای ادغامشده میشود. آیا میخواهید ادامه دهید؟',+ },+ },+ filter: {+ confirm: {+ error: 'مشکلی پیش آمد',+ notAllowedToInsertRange: 'تا زمانی که فیلتر پاک نشود، اجازه حرکت سلولها به اینجا داده نمیشود',+ },+ },+ textWrap: {+ overflow: 'سرریز',+ wrap: 'بپیچ',+ clip: 'برش',+ },+ textRotate: {+ none: 'هیچ',+ angleUp: 'شیب بالا',+ angleDown: 'شیب پایین',+ vertical: 'عمودی انباشته کردن',+ rotationUp: 'چرخش بالا',+ rotationDown: 'چرخش پایین',+ },+ sheetConfig: {+ delete: 'حذف',+ copy: 'کپی',+ rename: 'تغییر نام',+ changeColor: 'تغییر رنگ',+ hide: 'پنهان کردن',+ unhide: 'نشان دادن',+ moveLeft: 'جابجایی به چپ',+ moveRight: 'جابجایی به راست',+ resetColor: 'بازنشانی رنگ',+ cancelText: 'انصراف',+ chooseText: 'تایید رنگ',++ tipNameRepeat: 'نام برگه زبانه نمیتواند تکرار شود! لطفا تجدید نظر کنید',+ noMoreSheet:+ 'کاربرگ حداقل شامل یک برگه بصری است. برای حذف برگه انتخاب شده، لطفا یک برگه جدید وارد کنید یا یک برگه پنهان را نمایش دهید.',+ confirmDelete: 'آیا مطمئن هستید که میخواهید حذف کنید',+ redoDelete: 'میتواند با Ctrl+Z لغو شود',+ noHide: 'نمیتوان پنهان کرد، حداقل یک برگه تگ را نگه دارید',+ chartEditNoOpt: 'این عملیات در حالت ویرایش نمودار مجاز نیست!',+ sheetNameErrorTitle: 'مشکلی پیش آمد',+ sheetNameSpecCharError: "نام نمیتواند از 31 کاراکتر بیشتر باشد، نمیتواند با ' شروع یا پایان یابد و نمیتواند شامل: [ ] : \\ ? * / باشد",+ sheetNameCannotIsEmptyError: 'نام برگه نمیتواند خالی باشد.',+ sheetNameAlreadyExistsError: 'نام برگه قبلاً وجود دارد. لطفا نام دیگری وارد کنید.',+ deleteSheet: 'حذف برگه',+ deleteSheetContent:+ 'تایید حذف این برگه. پس از حذف، بازیابی نخواهد شد. آیا مطمئن هستید که میخواهید آن را حذف کنید؟',+ addProtectSheet: 'محافظت از برگه',+ removeProtectSheet: 'لغو محافظت از برگه',+ changeSheetPermission: 'تغییر مجوزهای برگه',+ viewAllProtectArea: 'مشاهده همه محدودههای محافظت شده',+ },+ rightClick: {+ copy: 'کپی',+ copyAs: 'کپی به عنوان',+ cut: 'برش',+ paste: 'چسباندن',+ pasteSpecial: 'چسباندن ویژه',+ pasteValue: 'چسباندن مقدار',+ pasteFormat: 'چسباندن قالب',+ pasteColWidth: 'چسباندن عرض ستون',+ pasteBesidesBorder: 'چسباندن کنار سبکهای مرز',+ insert: 'درج',+ insertRow: 'درج سطر',+ insertRowBefore: 'درج سطر قبل از',+ insertColumn: 'درج ستون',+ insertColumnBefore: 'درج ستون قبل از',+ delete: 'حذف',+ deleteCell: 'حذف سلول',+ insertCell: 'درج سلول',+ deleteSelected: 'حذف انتخاب شده',+ hide: 'پنهان کردن',+ hideSelected: 'پنهان کردن انتخاب شده',+ showHide: 'نمایش پنهان شده',+ toTopAdd: 'اضافه کردن به بالا',+ toBottomAdd: 'اضافه کردن به پایین',+ toLeftAdd: 'اضافه کردن به چپ',+ toRightAdd: 'اضافه کردن به راست',+ deleteSelectedRow: 'حذف سطر انتخاب شده',+ deleteSelectedColumn: 'حذف ستون انتخاب شده',+ hideSelectedRow: 'پنهان کردن سطر انتخاب شده',+ showHideRow: 'نمایش سطر انتخاب شده',+ rowHeight: 'ارتفاع سطر',+ hideSelectedColumn: 'پنهان کردن ستون انتخاب شده',+ showHideColumn: 'نمایش پنهان کردن ستون',+ columnWidth: 'عرض ستون',+ to: 'به سمت',+ left: 'چپ',+ right: 'راست',+ top: 'بالا',+ bottom: 'پایین',+ moveLeft: 'جابجایی به چپ',+ moveUp: 'جابجایی به بالا',+ moveRight: 'جابجایی به راست',+ moveDown: 'جابجایی به پایین',+ add: 'اضافه کردن',+ row: 'سطر',+ column: 'ستون',+ width: 'عرض',+ height: 'ارتفاع',+ number: 'عدد',+ confirm: 'تایید',+ orderAZ: 'ترتیب A-Z',+ orderZA: 'ترتیب Z-A',+ clearSelection: 'پاک کردن',+ clearContent: 'پاک کردن محتوا',+ clearFormat: 'پاک کردن قالبها',+ clearAll: 'پاک کردن همه',+ matrix: 'عملیات ماتریسی',+ sortSelection: 'مرتبسازی',+ filterSelection: 'فیلتر کردن',+ chartGeneration: 'ایجاد نمودار',+ firstLineTitle: 'عنوان خط اول',+ untitled: 'بدون عنوان',+ array1: 'آرایه یک بعدی',+ array2: 'آرایه دو بعدی',+ array3: 'آرایههای چند بعدی',+ diagonal: 'قطری',+ antiDiagonal: 'ضد قطری',+ diagonalOffset: 'جابجایی قطری',+ offset: 'جابجایی',+ boolean: 'بولین',+ flip: 'واژگون کردن',+ upAndDown: 'بالا و پایین',+ leftAndRight: 'چپ و راست',+ clockwise: 'در جهت عقربههای ساعت',+ counterclockwise: 'در خلاف جهت عقربههای ساعت',+ transpose: 'ترانهاده',+ matrixCalculation: 'محاسبه ماتریسی',+ plus: 'جمع',+ minus: 'تفریق',+ multiply: 'ضرب',+ divided: 'تقسیم',+ power: 'توان',+ root: 'ریشه',+ log: 'لوگاریتم',+ delete0: 'حذف مقادیر 0 در دو طرف',+ removeDuplicate: 'حذف مقادیر تکراری',+ byRow: 'بر اساس سطر',+ byCol: 'بر اساس ستون',+ generateNewMatrix: 'ایجاد ماتریس جدید',+ fitContent: 'مناسب برای دادهها',+ freeze: 'انجماد',+ freezeCol: 'انجماد در این ستون',+ freezeRow: 'انجماد در این سطر',+ cancelFreeze: 'لغو انجماد',+ zenEditor: 'ویرایشگر تمام صفحه',+ deleteAllRowsAlert: 'شما نمیتوانید تمام سطرهای برگه را حذف کنید',+ deleteAllColumnsAlert: 'شما نمیتوانید تمام ستونهای برگه را حذف کنید',+ hideAllRowsAlert: 'شما نمیتوانید تمام سطرهای برگه را پنهان کنید',+ hideAllColumnsAlert: 'شما نمیتوانید تمام ستونهای برگه را پنهان کنید',+ protectRange: 'محافظت از سطرها و ستونها',+ editProtectRange: 'تنظیم محدوده محافظت',+ removeProtectRange: 'حذف محدوده محافظت',+ turnOnProtectRange: 'اضافه کردن محدوده محافظت',+ viewAllProtectArea: 'مشاهده همه محدودههای محافظت شده',+ },+ info: {+ tooltip: 'راهنما',+ error: 'خطا',+ notChangeMerge: 'شما نمیتوانید تغییرات جزئی در سلولهای ادغام شده ایجاد کنید',+ detailUpdate: 'جدید باز شد',+ detailSave: 'پنهانگاه محلی بازیابی شد',+ row: '',+ column: '',+ loading: 'در حال بارگیری...',++ copy: 'کپی',+ return: 'خروج',+ rename: 'تغییر نام',+ tips: 'تغییر نام',+ noName: 'بدون عنوان صفحه گسترده',+ wait: 'در انتظار بهروزرسانی',++ add: 'اضافه کردن',+ addLast: 'سطرهای بیشتر در پایین',+ backTop: 'بازگشت به بالا',+ // eslint-disable-next-line no-template-curly-in-string+ pageInfo: 'مجموع ${total}، ${totalPage} صفحه، جاری ${currentPage}',+ nextPage: 'بعدی',++ tipInputNumber: 'لطفا عدد را وارد کنید',+ tipInputNumberLimit: 'محدوده افزایش محدود به 1-100 است',++ tipRowHeightLimit: 'ارتفاع سطر باید بین 0 ~ 545 باشد',+ tipColumnWidthLimit: 'عرض ستون باید بین 0 ~ 2038 باشد',+ // eslint-disable-next-line no-template-curly-in-string+ pageInfoFull: 'مجموع ${total}، ${totalPage} صفحه، همه دادهها نمایش داده شده',+ problem: 'مشکلی پیش آمد',+ forceStringInfo: 'عدد به عنوان متن ذخیره شده',+ },+ clipboard: {+ paste: {+ exceedMaxCells: 'تعداد سلولهای چسبانده شده از حداکثر تعداد سلولها فراتر میرود',+ overlappingMergedCells: 'منطقه چسباندن با سلولهای ادغام شده همپوشانی دارد',+ },+ shortCutNotify: {+ title: 'لطفا با استفاده از میانبرهای صفحه کلید بچسبانید.',+ useShortCutInstead: 'محتوای اکسل تشخیص داده شد. از میانبر صفحه کلید برای چسباندن استفاده کنید.',+ },+ },+ statusbar: {+ sum: 'جمع',+ average: 'میانگین',+ min: 'حداقل',+ max: 'حداکثر',+ count: 'شمارش عددی',+ countA: 'شمارش',+ clickToCopy: 'کلیک کنید تا کپی کنید',+ copied: 'کپی شد',+ },+ autoFill: {+ copy: 'کپی سلول',+ series: 'پر کردن سری',+ formatOnly: 'فقط قالب',+ noFormat: 'بدون قالب',+ },++ rangeSelector: {+ placeholder: 'انتخاب محدوده یا وارد کردن مقدار',+ tooltip: 'انتخاب محدوده',+ },++ shortcut: {+ sheet: {+ 'zoom-in': 'بزرگنمایی',+ 'zoom-out': 'کوچکنمایی',+ 'reset-zoom': 'بازنشانی سطح بزرگنمایی',+ 'select-below-cell': 'انتخاب سلول پایین',+ 'select-up-cell': 'انتخاب سلول بالا',+ 'select-left-cell': 'انتخاب سلول چپ',+ 'select-right-cell': 'انتخاب سلول راست',+ 'select-next-cell': 'انتخاب سلول بعدی',+ 'select-previous-cell': 'انتخاب سلول قبلی',+ 'select-up-value-cell': 'انتخاب سلول بالا که دارای مقدار است',+ 'select-below-value-cell': 'انتخاب سلول پایین که دارای مقدار است',+ 'select-left-value-cell': 'انتخاب سلول چپ که دارای مقدار است',+ 'select-right-value-cell': 'انتخاب سلول راست که دارای مقدار است',+ 'expand-selection-down': 'گسترش انتخاب به پایین',+ 'expand-selection-up': 'گسترش انتخاب به بالا',+ 'expand-selection-left': 'گسترش انتخاب به چپ',+ 'expand-selection-right': 'گسترش انتخاب به راست',+ 'expand-selection-to-left-gap': 'گسترش انتخاب به شکاف چپ',+ 'expand-selection-to-below-gap': 'گسترش انتخاب به شکاف پایین',+ 'expand-selection-to-right-gap': 'گسترش انتخاب به شکاف راست',+ 'expand-selection-to-up-gap': 'گسترش انتخاب به شکاف بالا',+ 'select-all': 'انتخاب همه',+ 'toggle-editing': 'تغییر حالت ویرایش',+ 'delete-and-start-editing': 'پاک کردن و شروع ویرایش',+ 'abort-editing': 'لغو ویرایش',+ 'break-line': 'شکستن خط',+ 'set-bold': 'تغییر حالت پررنگ',+ 'start-editing': 'شروع ویرایش (انتخاب در ویرایشگر)',+ 'set-italic': 'تغییر حالت مورب',+ 'set-underline': 'تغییر حالت خط زیرین',+ 'set-strike-through': 'تغییر حالت خطخورده',+ },+ },+ 'sheet-view': 'نمای برگه',+ 'sheet-edit': 'ویرایش برگه',++ definedName: {+ managerTitle: 'مدیر نامگذاری شده',+ managerDescription: 'با انتخاب سلولها یا فرمولها و وارد کردن نام دلخواه در کادر متن، یک نام تعریف شده ایجاد کنید.',+ addButton: 'اضافه کردن نام تعریف شده',+ featureTitle: 'نامهای تعریف شده',+ ratioRange: 'محدوده',+ ratioFormula: 'فرمول',+ confirm: 'تایید',+ cancel: 'انصراف',+ scopeWorkbook: 'کاربرگ',+ inputNamePlaceholder: 'لطفا نام را وارد کنید (فاصله مجاز نیست)',+ inputCommentPlaceholder: 'لطفا یک نظر وارد کنید',+ inputRangePlaceholder: 'لطفا محدوده را وارد کنید (فاصله مجاز نیست)',+ inputFormulaPlaceholder: 'لطفا یک فرمول وارد کنید (فاصله مجاز نیست)',+ nameEmpty: 'نام نمیتواند خالی باشد',+ nameDuplicate: 'نام قبلاً وجود دارد',+ formulaOrRefStringEmpty: 'فرمول یا رشته مرجع نمیتواند خالی باشد',+ formulaOrRefStringInvalid: 'فرمول یا رشته مرجع نامعتبر است',+ defaultName: 'DefinedName',+ updateButton: 'بهروزرسانی',+ deleteButton: 'حذف',+ deleteConfirmText: 'آیا مطمئن هستید که میخواهید این نام تعریف شده را حذف کنید؟',+ nameConflict: 'نام با نام تابع در تضاد است',+ nameInvalid: 'نام نامعتبر است',+ nameSheetConflict: 'نام با نام برگه در تضاد است',+ },+ uploadLoading: {+ loading: 'در حال بارگیری...، باقی مانده', // 正在上传,当前剩余+ error: 'خطا', // 加载失败+ },+ permission: {+ toolbarMenu: 'محافظت',+ panel: {+ title: 'محافظت از سطرها و ستونها',+ name: 'نام',+ protectedRange: 'محدوده محافظت شده',+ permissionDirection: 'شرح مجوز',+ permissionDirectionPlaceholder: 'شرح مجوز را وارد کنید',+ editPermission: 'ویرایش مجوزها',+ onlyICanEdit: 'فقط من میتوانم ویرایش کنم',+ designedUserCanEdit: 'کاربران مشخص شده میتوانند ویرایش کنند',+ viewPermission: 'مجوز مشاهده',+ othersCanView: 'دیگران میتوانند مشاهده کنند',+ noOneElseCanView: 'هیچ کس دیگری نمیتواند مشاهده کند',+ designedPerson: 'افراد مشخص شده',+ addPerson: 'اضافه کردن شخص',+ canEdit: 'میتواند ویرایش کند',+ canView: 'میتواند مشاهده کند',+ delete: 'حذف',+ currentSheet: 'برگه فعلی',+ allSheet: 'همه برگهها',+ edit: 'ویرایش',+ Print: 'چاپ',+ Comment: 'نظر',+ Copy: 'کپی',+ SetCellStyle: 'تنظیم سبک سلول',+ SetCellValue: 'تنظیم مقدار سلول',+ SetHyperLink: 'تنظیم هایپرلینک',+ Sort: 'مرتبسازی',+ Filter: 'فیلتر',+ PivotTable: 'جدول محوری',+ FloatImage: 'تصویر شناور',+ RowHeightColWidth: 'ارتفاع سطر و عرض ستون',+ RowHeightColWidthReadonly: 'ارتفاع سطر و عرض ستون فقط خواندنی',+ FilterReadonly: 'فیلتر فقط خواندنی',+ nameError: 'نام نمیتواند خالی باشد',+ created: 'ایجاد شده',+ iCanEdit: 'من میتوانم ویرایش کنم',+ iCanNotEdit: 'من نمیتوانم ویرایش کنم',+ iCanView: 'من میتوانم مشاهده کنم',+ iCanNotView: 'من نمیتوانم مشاهده کنم',+ emptyRangeError: 'محدوده نمیتواند خالی باشد',+ rangeOverlapError: 'محدوده نمیتواند همپوشانی داشته باشد',+ rangeOverlapOverPermissionError: 'محدوده نمیتواند با محدودهای که دارای همان مجوز است همپوشانی داشته باشد',+ InsertHyperlink: 'درج هایپرلینک',+ SetRowStyle: 'تنظیم سبک سطر',+ SetColumnStyle: 'تنظیم سبک ستون',+ InsertColumn: 'درج ستون',+ InsertRow: 'درج سطر',+ DeleteRow: 'حذف سطر',+ DeleteColumn: 'حذف ستون',+ EditExtraObject: 'ویرایش شیء اضافی',+ },+ dialog: {+ allowUserToEdit: 'اجازه ویرایش به کاربر',+ allowedPermissionType: 'انواع مجوز مجاز',+ setCellValue: 'تنظیم مقدار سلول',+ setCellStyle: 'تنظیم سبک سلول',+ copy: 'کپی',+ alert: 'هشدار',+ alertContent: 'این محدوده محافظت شده است و در حال حاضر هیچ مجوز ویرایشی در دسترس نیست. اگر نیاز به ویرایش دارید، لطفا با سازنده تماس بگیرید.',+ userEmpty: 'هیچ شخص تعیین شدهای وجود ندارد، لینک اشتراک را برای دعوت افراد خاص ارسال کنید.',+ listEmpty: 'شما هیچ محدوده یا برگهای را به عنوان محافظت شده تنظیم نکردهاید.',+ commonErr: 'محدوده محافظت شده است و شما مجوز این عملیات را ندارید. برای ویرایش، لطفا با سازنده تماس بگیرید.',+ editErr: 'محدوده محافظت شده است و شما مجوز ویرایش را ندارید. برای ویرایش، لطفا با سازنده تماس بگیرید.',+ pasteErr: 'محدوده محافظت شده است و شما مجوز چسباندن را ندارید. برای چسباندن، لطفا با سازنده تماس بگیرید.',+ setStyleErr: 'محدوده محافظت شده است و شما مجوز تنظیم سبکها را ندارید. برای تنظیم سبکها، لطفا با سازنده تماس بگیرید.',+ copyErr: 'محدوده محافظت شده است و شما مجوز کپی را ندارید. برای کپی کردن، لطفا با سازنده تماس بگیرید.',+ workbookCopyErr: 'کاربرگ محافظت شده است و شما مجوز کپی کردن را ندارید. برای کپی کردن، لطفا با سازنده تماس بگیرید.',+ setRowColStyleErr: 'محدوده محافظت شده است و شما مجوز تنظیم سبکهای سطر و ستون را ندارید. برای تنظیم سبکهای سطر و ستون، لطفا با سازنده تماس بگیرید.',+ moveRowColErr: 'محدوده محافظت شده است و شما مجوز جابجایی سطرها و ستونها را ندارید. برای جابجایی سطرها و ستونها، لطفا با سازنده تماس بگیرید.',+ moveRangeErr: 'محدوده محافظت شده است و شما مجوز جابجایی انتخاب را ندارید. برای جابجایی انتخاب، لطفا با سازنده تماس بگیرید.',+ autoFillErr: 'محدوده محافظت شده است و شما مجوز پر کردن خودکار را ندارید. برای استفاده از پر کردن خودکار، لطفا با سازنده تماس بگیرید.',+ filterErr: 'محدوده محافظت شده است و شما مجوز فیلتر کردن را ندارید. برای فیلتر کردن، لطفا با سازنده تماس بگیرید.',+ operatorSheetErr: 'کاربرگ محافظت شده است و شما مجوز کار با کاربرگ را ندارید. برای کار با کاربرگ، لطفا با سازنده تماس بگیرید.',+ insertOrDeleteMoveRangeErr: 'محدوده درج شده یا حذف شده با محدوده محافظت شده تلاقی دارد و این عملیات در حال حاضر پشتیبانی نمیشود.',+ printErr: 'کاربرگ محافظت شده است و شما مجوز چاپ را ندارید. برای چاپ، لطفا با سازنده تماس بگیرید.',+ formulaErr: 'محدوده یا محدوده مرجع محافظت شده است و شما مجوز ویرایش را ندارید. برای ویرایش، لطفا با سازنده تماس بگیرید.',+ hyperLinkErr: 'محدوده محافظت شده است و شما مجوز تنظیم هایپرلینک را ندارید. برای تنظیم هایپرلینک، لطفا با سازنده تماس بگیرید.',+ },+ button: {+ confirm: 'تایید',+ cancel: 'انصراف',+ addNewPermission: 'اضافه کردن مجوز جدید',+ },+ },+};++export default locale;diff --git a/packages/sheets-zen-editor/src/locale/fa-IR.ts b/packages/sheets-zen-editor/src/locale/fa-IR.tsnew file mode 100644index 0000000000..5be22f57df--- /dev/null+++ b/packages/sheets-zen-editor/src/locale/fa-IR.ts@@ -0,0 +1,28 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ shortcut: {+ sheet: {+ 'zen-edit-cancel': 'لغو ویرایش Zen',+ 'zen-edit-confirm': 'تایید ویرایش Zen',+ },+ },+};++export default locale;diff --git a/packages/sheets/src/locale/fa-IR.ts b/packages/sheets/src/locale/fa-IR.tsnew file mode 100644index 0000000000..923f9879bc--- /dev/null+++ b/packages/sheets/src/locale/fa-IR.ts@@ -0,0 +1,34 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ sheets: {+ tabs: {+ sheetCopy: '(کپی{0})',+ sheet: 'برگ',+ },+ info: {+ overlappingSelections: 'نمیتوان از این دستور روی انتخابهای همپوشانی استفاده کرد',+ acrossMergedCell: 'در سراسر سلول ادغام شده',+ partOfCell: 'فقط بخشی از سلول ادغام شده انتخاب شده است',+ hideSheet: 'پس از پنهان کردن این برگ، هیچ برگی قابل مشاهده نخواهد بود',+ },+ },+};++export default locale;diff --git a/packages/slides-ui/src/locale/fa-IR.ts b/packages/slides-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..8ab3976074--- /dev/null+++ b/packages/slides-ui/src/locale/fa-IR.ts@@ -0,0 +1,62 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ slide: {+ append: 'اضافه کردن اسلاید',++ text: {+ insert: {+ title: 'درج متن',+ },+ },++ shape: {+ insert: {+ title: 'درج شکل',+ rectangle: 'درج مستطیل',+ },+ },++ image: {+ insert: {+ title: 'درج تصویر',+ float: 'درج تصویر شناور',+ },+ },++ popup: {+ edit: 'ویرایش',+ delete: 'حذف',+ },++ sidebar: {+ text: 'ویرایش متن',+ shape: 'ویرایش شکل',+ image: 'ویرایش تصویر',+ },++ panel: {+ fill: {+ title: 'رنگ پر کردن',+ },+ },+ },+};++export default locale;diff --git a/packages/thread-comment-ui/src/locale/fa-IR.ts b/packages/thread-comment-ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..cb42f87b8f--- /dev/null+++ b/packages/thread-comment-ui/src/locale/fa-IR.ts@@ -0,0 +1,53 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ threadCommentUI: {+ panel: {+ title: 'مدیریت نظرات',+ empty: 'هنوز نظری وجود ندارد',+ filterEmpty: 'نتیجه ای یافت نشد',+ reset: 'بازنشانی فیلتر',+ addComment: 'افزودن نظر',+ },+ editor: {+ placeholder: 'پاسخ یا اضافه کردن دیگران با @',+ reply: 'نظر',+ cancel: 'انصراف',+ save: 'ذخیره',+ },+ item: {+ edit: 'ویرایش',+ delete: 'حذف این نظر',+ },+ filter: {+ sheet: {+ all: 'همه برگهها',+ current: 'برگه فعلی',+ },+ status: {+ all: 'همه نظرات',+ resolved: 'حل شده',+ unsolved: 'حل نشده',+ concernMe: 'موضوع مربوط به من',+ },+ },+ },+};++export default locale;diff --git a/packages/ui/src/locale/fa-IR.ts b/packages/ui/src/locale/fa-IR.tsnew file mode 100644index 0000000000..55cdcac079--- /dev/null+++ b/packages/ui/src/locale/fa-IR.ts@@ -0,0 +1,81 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ ribbon: {+ start: 'شروع',+ insert: 'درج',+ formulas: 'فرمولها',+ data: 'دادهها',+ view: 'نمایش',+ others: 'دیگر',+ more: 'بیشتر',+ },+ fontFamily: {+ TimesNewRoman: 'Times New Roman',+ Arial: 'Arial',+ Tahoma: 'Tahoma',+ Verdana: 'Verdana',+ MicrosoftYaHei: 'Microsoft YaHei',+ SimSun: 'SimSun',+ SimHei: 'SimHei',+ Kaiti: 'Kaiti',+ FangSong: 'FangSong',+ NSimSun: 'NSimSun',+ STXinwei: 'STXinwei',+ STXingkai: 'STXingkai',+ STLiti: 'STLiti',+ HanaleiFill: 'HanaleiFill',+ Anton: 'Anton',+ Pacifico: 'Pacifico',+ },+ 'shortcut-panel': {+ title: 'کلیدهای میانبر',+ },+ shortcut: {+ undo: 'بازگرداندن',+ redo: 'تکرار',+ cut: 'بریدن',+ copy: 'کپی کردن',+ paste: 'چسباندن',+ 'shortcut-panel': 'نمایش/مخفی کردن پنل کلیدهای میانبر',+ },+ 'common-edit': 'کلیدهای میانبر ویرایش عمومی',+ 'toggle-shortcut-panel': 'نمایش/مخفی کردن پنل کلیدهای میانبر',+ clipboard: {+ authentication: {+ title: 'اجازه دسترسی داده نشده است',+ content: 'لطفا به Univer اجازه دسترسی به کلیپ بورد خود را بدهید.',+ },+ },+ textEditor: {+ formulaError: 'لطفا یک فرمول معتبر مانند =SUM(A1) وارد کنید.',+ rangeError: 'لطفا یک محدوده معتبر مانند A1:B10 وارد کنید.',+ },+ rangeSelector: {+ title: 'انتخاب محدوده داده',+ addAnotherRange: 'افزودن محدوده',+ buttonTooltip: 'انتخاب محدوده داده',+ placeHolder: 'انتخاب محدوده یا وارد کردن.',+ confirm: 'تایید',+ cancel: 'انصراف',+ },+ 'global-shortcut': 'کلید میانبر جهانی',+};++export default locale;diff --git a/packages/uniscript/src/locale/fa-IR.ts b/packages/uniscript/src/locale/fa-IR.tsnew file mode 100644index 0000000000..802a7bdaa5--- /dev/null+++ b/packages/uniscript/src/locale/fa-IR.ts@@ -0,0 +1,37 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import type zhCN from './zh-CN';++const locale: typeof zhCN = {+ 'script-panel': {+ title: 'Uniscript',+ tooltip: {+ 'menu-button': 'نمایش/مخفی کردن پنل Uniscript',+ },+ panel: {+ execute: 'اجرای اسکریپت',+ },+ },+ uniscript: {+ message: {+ success: 'اجرای موفق',+ failed: 'اجرای ناموفق',+ },+ },+};++export default locale;