mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 02:10:40 +01:00
feat(module): support i18n in components (#2553)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
8
src/runtime/composables/defineLocale.ts
Normal file
8
src/runtime/composables/defineLocale.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { Locale, LocalePair } from '../types/locale'
|
||||
|
||||
export function defineLocale(name: string, pair: LocalePair): Locale {
|
||||
return {
|
||||
name,
|
||||
ui: pair
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user