From 14fb21be0034ffc0ba5d213734c00f12e0d6bea8 Mon Sep 17 00:00:00 2001 From: Mohet Date: Tue, 19 Nov 2024 14:40:09 +0330 Subject: [PATCH] feat(locale): add Persian language (#2682) Co-authored-by: Ali Zemani Co-authored-by: Benjamin Canac --- src/runtime/locale/fa_ir.ts | 48 +++++++++++++++++++++++++++++++++++++ src/runtime/locale/index.ts | 1 + 2 files changed, 49 insertions(+) create mode 100644 src/runtime/locale/fa_ir.ts diff --git a/src/runtime/locale/fa_ir.ts b/src/runtime/locale/fa_ir.ts new file mode 100644 index 00000000..8a047305 --- /dev/null +++ b/src/runtime/locale/fa_ir.ts @@ -0,0 +1,48 @@ +import { defineLocale } from '../composables/defineLocale' + +export default defineLocale({ + name: 'فارسی', + code: 'fa-IR', + dir: 'rtl', + messages: { + inputMenu: { + noMatch: 'داده‌ای یافت نشد', + noData: 'داده‌ای موجود نیست', + create: 'ایجاد "{label}"' + }, + inputNumber: { + increment: 'افزایش', + decrement: 'کاهش' + }, + commandPalette: { + noMatch: 'داده‌ای یافت نشد', + noData: 'داده‌ای موجود نیست', + close: 'بستن' + }, + selectMenu: { + noMatch: 'داده‌ای یافت نشد', + noData: 'داده‌ای موجود نیست', + create: 'ایجاد "{label}"' + }, + toast: { + close: 'بستن' + }, + carousel: { + prev: 'قبلی', + next: 'بعدی', + goto: 'رفتن به اسلاید {slide}' + }, + modal: { + close: 'بستن' + }, + slideover: { + close: 'بستن' + }, + alert: { + close: 'بستن' + }, + table: { + noData: 'داده‌ای موجود نیست' + } + } +}) diff --git a/src/runtime/locale/index.ts b/src/runtime/locale/index.ts index de665c53..41cb552a 100644 --- a/src/runtime/locale/index.ts +++ b/src/runtime/locale/index.ts @@ -4,6 +4,7 @@ export { default as de } from './de' export { default as en } from './en' export { default as es } from './es' export { default as fr } from './fr' +export { default as fa_ir } from './fa_ir' export { default as it } from './it' export { default as pl } from './pl' export { default as ru } from './ru'