feat(module): support i18n in components (#2553)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Alex
2024-11-08 21:22:57 +05:00
committed by GitHub
parent 1e7638bd03
commit 26362408b1
30 changed files with 673 additions and 18 deletions

37
src/runtime/locale/de.ts Normal file
View File

@@ -0,0 +1,37 @@
import { defineLocale } from '../composables/defineLocale'
export default defineLocale('Deutsch', {
inputMenu: {
noMatch: 'Nichts gefunden',
noData: 'Keine Daten'
},
commandPalette: {
noMatch: 'Nichts gefunden',
noData: 'Keine Daten',
close: 'Schließen'
},
selectMenu: {
noMatch: 'Nichts gefunden',
noData: 'Keine Daten'
},
toast: {
close: 'Schließen'
},
carousel: {
prev: 'Weiter',
next: 'Zurück',
goto: 'Gehe zu {slide}'
},
modal: {
close: 'Schließen'
},
slideover: {
close: 'Schließen'
},
alert: {
close: 'Schließen'
},
table: {
noData: 'Keine Daten'
}
})

37
src/runtime/locale/en.ts Normal file
View File

@@ -0,0 +1,37 @@
import { defineLocale } from '../composables/defineLocale'
export default defineLocale('English', {
inputMenu: {
noMatch: 'No matching data',
noData: 'No data'
},
commandPalette: {
noMatch: 'No matching data',
noData: 'No data',
close: 'Close'
},
selectMenu: {
noMatch: 'No matching data',
noData: 'No data'
},
toast: {
close: 'Close'
},
carousel: {
prev: 'Prev',
next: 'Next',
goto: 'Go to slide {slide}'
},
modal: {
close: 'Close'
},
slideover: {
close: 'Close'
},
alert: {
close: 'Close'
},
table: {
noData: 'No data'
}
})

37
src/runtime/locale/fr.ts Normal file
View File

@@ -0,0 +1,37 @@
import { defineLocale } from '../composables/defineLocale'
export default defineLocale('Français', {
inputMenu: {
noMatch: 'Aucune donnée correspondante',
noData: 'Aucune donnée'
},
commandPalette: {
noMatch: 'Aucune donnée correspondante',
noData: 'Aucune donnée',
close: 'Fermer'
},
selectMenu: {
noMatch: 'Aucune donnée correspondante',
noData: 'Aucune donnée'
},
toast: {
close: 'Fermer'
},
carousel: {
prev: 'Précédent',
next: 'Suivant',
goto: 'Aller à {slide}'
},
modal: {
close: 'Fermer'
},
slideover: {
close: 'Fermer'
},
alert: {
close: 'Fermer'
},
table: {
noData: 'Aucune donnée'
}
})

View File

@@ -0,0 +1,4 @@
export { default as de } from './de'
export { default as en } from './en'
export { default as fr } from './fr'
export { default as ru } from './ru'

37
src/runtime/locale/ru.ts Normal file
View File

@@ -0,0 +1,37 @@
import { defineLocale } from '../composables/defineLocale'
export default defineLocale('Русский', {
inputMenu: {
noMatch: 'Совпадений не найдено',
noData: 'Нет данных'
},
commandPalette: {
noMatch: 'Совпадений не найдено',
noData: 'Нет данных',
close: 'Закрыть'
},
selectMenu: {
noMatch: 'Совпадений не найдено',
noData: 'Нет данных'
},
toast: {
close: 'Закрыть'
},
carousel: {
prev: 'Назад',
next: 'Далее',
goto: 'Перейти к {slide}'
},
modal: {
close: 'Закрыть'
},
slideover: {
close: 'Закрыть'
},
alert: {
close: 'Закрыть'
},
table: {
noData: 'Нет данных'
}
})