@zerotal/i18n 1.7.2 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-surface.md +2 -2
- package/package.json +2 -2
package/api-surface.md
CHANGED
|
@@ -64,6 +64,8 @@ class Translator = {
|
|
|
64
64
|
|
|
65
65
|
const Lang = Translator
|
|
66
66
|
|
|
67
|
+
function __ = (key: string, replacements?: Replacements, locale?: string) => string
|
|
68
|
+
|
|
67
69
|
function I18nConfig = (options?: Partial<I18nConfigShape>) => I18nConfigShape
|
|
68
70
|
|
|
69
71
|
function loadCatalogs = (dir: string) => Promise<Catalogs>
|
|
@@ -72,8 +74,6 @@ function parseAcceptLanguage = (header: string | null) => string[]
|
|
|
72
74
|
|
|
73
75
|
function resolveLocale = (request: Request, config: I18nConfigShape) => string
|
|
74
76
|
|
|
75
|
-
function t = (key: string, replacements?: Replacements, locale?: string) => string
|
|
76
|
-
|
|
77
77
|
interface I18nConfigShape = {
|
|
78
78
|
catalogs?: Catalogs
|
|
79
79
|
cookieKey: string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerotal/i18n",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"maturity": "stable",
|
|
6
6
|
"private": false,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typecheck": "tsc --noEmit"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@zerotal/core": "1.7.
|
|
36
|
+
"@zerotal/core": "1.7.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"typescript": "^5.8.0"
|