From 1d09a2aa35944bc798cf53809ae227d05592a5bd Mon Sep 17 00:00:00 2001 From: "B. Jonson" Date: Sat, 15 Feb 2025 23:45:54 +0600 Subject: [PATCH] =?UTF-8?q?feat(locale):=20add=20Bengali=20(=E0=A6=AC?= =?UTF-8?q?=E0=A6=BE=E0=A6=82=E0=A6=B2=E0=A6=BE)=20language=20(#3321)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Benjamin Canac --- .../components/content/SupportedLanguages.vue | 1 + src/runtime/locale/bn.ts | 55 +++++++++++++++++++ src/runtime/locale/index.ts | 1 + 3 files changed, 57 insertions(+) create mode 100644 src/runtime/locale/bn.ts diff --git a/docs/app/components/content/SupportedLanguages.vue b/docs/app/components/content/SupportedLanguages.vue index 91ed019a..14eeb616 100644 --- a/docs/app/components/content/SupportedLanguages.vue +++ b/docs/app/components/content/SupportedLanguages.vue @@ -10,6 +10,7 @@ const props = withDefaults(defineProps<{ function getEmojiFlag(locale: string): string { const languageToCountry: Record = { ar: 'sa', + bn: 'bd', cs: 'cz', da: 'dk', el: 'gr', diff --git a/src/runtime/locale/bn.ts b/src/runtime/locale/bn.ts new file mode 100644 index 00000000..9bc10986 --- /dev/null +++ b/src/runtime/locale/bn.ts @@ -0,0 +1,55 @@ +import { defineLocale } from '../composables/defineLocale' + +export default defineLocale({ + name: 'বাংলা', + code: 'bn', + messages: { + inputMenu: { + noMatch: 'কোন মিল পাওয়া যায়নি', + noData: 'কোন তথ্য নেই', + create: '"{label}" তৈরি করুন' + }, + calendar: { + prevYear: 'পূর্ববর্তী বছর', + nextYear: 'পরবর্তী বছর', + prevMonth: 'পূর্ববর্তী মাস', + nextMonth: 'পরবর্তী মাস' + }, + inputNumber: { + increment: 'বৃদ্ধি করুন', + decrement: 'হ্রাস করুন' + }, + commandPalette: { + placeholder: 'কমান্ড টাইপ করুন বা অনুসন্ধান করুন...', + noMatch: 'কোন মিল পাওয়া যায়নি', + noData: 'কোন তথ্য নেই', + close: 'বন্ধ করুন' + }, + selectMenu: { + noMatch: 'কোন মিল পাওয়া যায়নি', + noData: 'কোন তথ্য নেই', + create: '"{label}" তৈরি করুন', + search: 'অনুসন্ধান করুন...' + }, + 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 6a262da1..bea94cc5 100644 --- a/src/runtime/locale/index.ts +++ b/src/runtime/locale/index.ts @@ -1,5 +1,6 @@ export { default as ar } from './ar' export { default as az } from './az' +export { default as bn } from './bn' export { default as cs } from './cs' export { default as da } from './da' export { default as de } from './de'