@dcloudio/uni-i18n
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -254,2 +254,5 @@ 'use strict'; | ||
}, | ||
getLocale() { | ||
return i18n.getLocale(); | ||
}, | ||
setLocale(newLocale) { | ||
@@ -256,0 +259,0 @@ return i18n.setLocale(newLocale); |
@@ -33,2 +33,3 @@ | ||
t(key: string, values?: Record<string, unknown> | unknown[] | undefined): string; | ||
getLocale(): BuiltInLocale; | ||
setLocale(newLocale: BuiltInLocale): void; | ||
@@ -35,0 +36,0 @@ mixin: { |
@@ -250,2 +250,5 @@ const isObject = (val) => val !== null && typeof val === 'object'; | ||
}, | ||
getLocale() { | ||
return i18n.getLocale(); | ||
}, | ||
setLocale(newLocale) { | ||
@@ -252,0 +255,0 @@ return i18n.setLocale(newLocale); |
{ | ||
"name": "@dcloudio/uni-i18n", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "@dcloudio/uni-i18n", | ||
@@ -5,0 +5,0 @@ "main": "dist/uni-i18n.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30876
586