intor-translator 1.1.3 → 1.1.4
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/dist/index.cjs +5 -1
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -148,7 +148,11 @@ var BaseTranslator = class {
|
|
|
148
148
|
var CoreTranslator = class extends BaseTranslator {
|
|
149
149
|
options;
|
|
150
150
|
constructor(options) {
|
|
151
|
-
super({
|
|
151
|
+
super({
|
|
152
|
+
locale: options.locale,
|
|
153
|
+
messages: options.messages,
|
|
154
|
+
isLoading: options.isLoading
|
|
155
|
+
});
|
|
152
156
|
this.options = options;
|
|
153
157
|
}
|
|
154
158
|
/** Check if a key exists in the specified locale or current locale. */
|
package/dist/index.js
CHANGED
|
@@ -146,7 +146,11 @@ var BaseTranslator = class {
|
|
|
146
146
|
var CoreTranslator = class extends BaseTranslator {
|
|
147
147
|
options;
|
|
148
148
|
constructor(options) {
|
|
149
|
-
super({
|
|
149
|
+
super({
|
|
150
|
+
locale: options.locale,
|
|
151
|
+
messages: options.messages,
|
|
152
|
+
isLoading: options.isLoading
|
|
153
|
+
});
|
|
150
154
|
this.options = options;
|
|
151
155
|
}
|
|
152
156
|
/** Check if a key exists in the specified locale or current locale. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intor-translator",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "A type safe translator that knows what to say and how to handle the rest. Supports custom messages, rich replacements, and async loading.",
|
|
5
5
|
"author": "Yiming Liao",
|
|
6
6
|
"license": "MIT",
|