diff --git a/README.md b/README.md index bec22fa1..e349e35b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ![nuxt-cookie-control](https://drive.google.com/a/broj42.com/uc?id=19sFguJo7SKUvmH4xu9DhK9ZXzR6oWLX8) -✅ Translated for: ar, az, bg, ca, cs, da, de, en, es, fi, fr, hr, hu, id, it, ja, ko, lt, nl, no, oc, pt, pl, ro, rs, ru, sk, sv, tr and uk +✅ Translated for: ar, az, bg, ca, cs, da, de, en, es, fi, fr, hr, hu, id, it, ja, ko, lt, nl, no, oc, pt, pl, ro, rs, ru, sk, sv, tr, uk and zh-CN ✅ Vue 3 support diff --git a/src/runtime/locale/index.ts b/src/runtime/locale/index.ts index a5c3b1e2..8f7f2ca6 100644 --- a/src/runtime/locale/index.ts +++ b/src/runtime/locale/index.ts @@ -28,7 +28,7 @@ import sk from './sk' import sv from './sv' import tr from './tr' import uk from './uk' - +import zhCN from './zh-CN' export const locales = [ ar, az, @@ -60,4 +60,5 @@ export const locales = [ sv, tr, uk, + zhCN, ] diff --git a/src/runtime/locale/zh-CN.ts b/src/runtime/locale/zh-CN.ts new file mode 100644 index 00000000..9843583e --- /dev/null +++ b/src/runtime/locale/zh-CN.ts @@ -0,0 +1,20 @@ +import type { LocaleStrings } from '../types' + +export default { + accept: '接受', + acceptAll: '接受所有', + bannerDescription: + '我们使用自己的cookie和第三方cookie,以便我们能够正确显示本网站并更好地了解本网站的使用方式,以改善我们提供的服务。关于cookie使用权限的决定可以随时使用cookie按钮进行更改,该按钮将在此横幅上进行选择后显示。', + bannerTitle: 'Cookies', + close: '关闭', + cookiesFunctional: '功能性 Cookies', + cookiesNecessary: '必要 Cookies', + cookiesOptional: '可选 Cookies', + decline: '拒绝', + declineAll: '拒绝所有', + here: '在这里', + iframeBlocked: '如需查看,请启用功能 Cookie', + manageCookies: '了解更多信息并进行自定义', + save: '保存', + settingsUnsaved: '您有未保存的设置', +} as LocaleStrings diff --git a/src/runtime/types.ts b/src/runtime/types.ts index 600f3ffa..aef44947 100644 --- a/src/runtime/types.ts +++ b/src/runtime/types.ts @@ -34,6 +34,7 @@ export type Locale = | 'sv' | 'tr' | 'uk' + | 'zh-CN' export type PartialRecord = Partial>