Skip to content

Commit 69762ff

Browse files
authored
chore!: replace zh-CN locale with zh (#244)
1 parent 8f3ae9f commit 69762ff

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
![nuxt-cookie-control](https://drive.google.com/a/broj42.com/uc?id=19sFguJo7SKUvmH4xu9DhK9ZXzR6oWLX8)
88

9-
✅ Translated for: ar, az, be, bg, ca, cs, da, de, en, es, fi, fr, hr, hu, id, it, ja, km, ko, lt, nl, no, oc, pt, pl, ro, rs, ru, sk, sl, sv, tr, uk and zh-CN
9+
✅ Translated for: ar, az, be, bg, ca, cs, da, de, en, es, fi, fr, hr, hu, id, it, ja, km, ko, lt, nl, no, oc, pt, pl, ro, rs, ru, sk, sl, sv, tr, uk and zh
1010

1111
✅ Vue 3 support
1212

src/runtime/locale/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import sl from './sl'
3131
import sv from './sv'
3232
import tr from './tr'
3333
import uk from './uk'
34-
import zhCN from './zh-CN'
34+
import zh from './zh'
3535

3636
export const locales = [
3737
ar,
@@ -67,5 +67,5 @@ export const locales = [
6767
sv,
6868
tr,
6969
uk,
70-
zhCN,
70+
zh,
7171
]
File renamed without changes.

src/runtime/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type Locale =
3737
| 'sv'
3838
| 'tr'
3939
| 'uk'
40-
| 'zh-CN'
40+
| 'zh'
4141

4242
export type PartialRecord<K extends string | number | symbol, T> = Partial<
4343
Record<K, T>

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type Locale =
3737
| 'sv'
3838
| 'tr'
3939
| 'uk'
40-
| 'zh-CN'
40+
| 'zh'
4141

4242
export type PartialRecord<K extends string | number | symbol, T> = Partial<
4343
Record<K, T>

0 commit comments

Comments
 (0)