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:
Artem 2021-08-13 19:08:21 +05:00 committed by GitHub
parent a4f29bebaa
commit a164170505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 0 deletions

View File

@ -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

View File

@ -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
View 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

View File

@ -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'