mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
feat: ru-RU locale (#863)
* feat(locale): add Ru locale * fix(locale): add export for ru locale Co-authored-by: 07akioni <07akioni2@gmail.com>
This commit is contained in:
parent
a4f29bebaa
commit
a164170505
@ -2,6 +2,11 @@
|
||||
|
||||
## Pending
|
||||
|
||||
### Localization
|
||||
|
||||
- Add ruRU locale [#852](https://github.com/TuSimple/naive-ui/pull/852).
|
||||
|
||||
|
||||
### Feats
|
||||
|
||||
- `n-message-provider` add `container-style` prop
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
## Pending
|
||||
|
||||
### Localization
|
||||
|
||||
- 新增 ruRU locale [#852](https://github.com/TuSimple/naive-ui/pull/852)
|
||||
|
||||
### Feats
|
||||
|
||||
- `n-message-provider` 新增 `container-style` 属性
|
||||
|
15
src/locales/date/RuRU.ts
Normal file
15
src/locales/date/RuRU.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import type { Locale } from 'date-fns'
|
||||
import ru from 'date-fns/locale/ru'
|
||||
|
||||
interface NDateLocale {
|
||||
name: string
|
||||
locale: Locale
|
||||
}
|
||||
|
||||
const dateRuRU: NDateLocale = {
|
||||
name: 'ru-RU',
|
||||
locale: ru
|
||||
}
|
||||
|
||||
export { NDateLocale }
|
||||
export default dateRuRU
|
@ -1,6 +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 dateZhCN } from './date/zhCN'
|
||||
export { default as dateEnUS } from './date/enUS'
|
||||
export { default as dateRuRU } from './date/RuRU'
|
||||
export type { NLocale } from './common/enUS'
|
||||
export type { NDateLocale } from './date/enUS'
|
||||
|
Loading…
Reference in New Issue
Block a user