fix: ruRU locale

This commit is contained in:
07akioni 2021-08-16 03:12:40 +08:00
parent 18aeaa9700
commit e8603e038a
3 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,6 @@
const ruRu = {
import type { NLocale } from './enUS'
const ruRu: NLocale = {
name: 'ru-RU',
global: {
undo: 'Отменить',
@ -91,5 +93,4 @@ const ruRu = {
}
}
export type NLocale = typeof ruRu
export default ruRu

9
src/locales/date/ruRU.ts Normal file
View File

@ -0,0 +1,9 @@
import ru from 'date-fns/locale/ru'
import { NDateLocale } from './enUS'
const dateRuRU: NDateLocale = {
name: 'ru-RU',
locale: ru
}
export default dateRuRU

View File

@ -1,8 +1,8 @@
export { default as zhCN } from './common/zhCN'
export { default as enUS } from './common/enUS'
export { default as ruRu } from './common/ruRU'
export { default as ruRU } from './common/ruRU'
export { default as dateZhCN } from './date/zhCN'
export { default as dateEnUS } from './date/enUS'
export { default as dateRuRU } from './date/RuRU'
export { default as dateRuRU } from './date/ruRU'
export type { NLocale } from './common/enUS'
export type { NDateLocale } from './date/enUS'