feat(locale): add Armenian language (#3664)

This commit is contained in:
Vahe Sargsyan
2025-03-24 14:29:32 +04:00
committed by GitHub
parent 4dee7c3bd3
commit c76f590097
3 changed files with 59 additions and 1 deletions

View File

@@ -27,7 +27,8 @@ function getEmojiFlag(locale: string): string {
sv: 'se', // Swedish -> Sweden
uk: 'ua', // Ukrainian -> Ukraine
ur: 'pk', // Urdu -> Pakistan
vi: 'vn' // Vietnamese -> Vietnam
vi: 'vn', // Vietnamese -> Vietnam
hy: 'am' // Armenian -> Armenia
}
const baseLanguage = locale.split('-')[0]?.toLowerCase() || locale

56
src/runtime/locale/hy.ts Normal file
View File

@@ -0,0 +1,56 @@
import type { Messages } from '../types'
import { defineLocale } from '../composables/defineLocale'
export default defineLocale<Messages>({
name: 'Հայերեն',
code: 'hy',
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: 'Տվյալներ չկան'
}
}
})

View File

@@ -16,6 +16,7 @@ export { default as fr } from './fr'
export { default as he } from './he'
export { default as hi } from './hi'
export { default as hu } from './hu'
export { default as hy } from './hy'
export { default as id } from './id'
export { default as it } from './it'
export { default as ja } from './ja'