@fluid-topics/ft-i18n 1.3.24 → 1.3.26
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/build/decorators/I18nAttributeConverter.d.ts +5 -1
- package/build/decorators/I18nAttributeConverter.js +24 -0
- package/build/decorators/I18nListAttributeConverter.d.ts +7 -0
- package/build/decorators/I18nListAttributeConverter.js +28 -0
- package/build/decorators/i18nAttribute.d.ts +0 -1
- package/build/decorators/i18nAttribute.js +4 -27
- package/build/ft-i18n.light.js +6 -6
- package/build/ft-i18n.min.js +13 -13
- package/build/lit/i18n.js +2 -2
- package/package.json +4 -4
package/build/lit/i18n.js
CHANGED
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { FtLitElement, FtLitElementRedux } from "@fluid-topics/ft-wc-utils";
|
|
8
8
|
import { ftCustomI18nService, ftI18nService } from "@fluid-topics/ft-app-context";
|
|
9
9
|
import { property } from "lit/decorators.js";
|
|
10
|
-
import {
|
|
10
|
+
import { i18nAttributeConverter } from "../decorators/I18nAttributeConverter";
|
|
11
11
|
export const i18nAttributes = Symbol("i18nAttributes");
|
|
12
12
|
export const i18nListAttributes = Symbol("i18nListAttributes");
|
|
13
13
|
export const i18nProperties = Symbol("i18nProperties");
|
|
@@ -38,7 +38,7 @@ export function withI18n(Class) {
|
|
|
38
38
|
return message;
|
|
39
39
|
}
|
|
40
40
|
customI18n(value, init) {
|
|
41
|
-
if (isI18nKey(value)) {
|
|
41
|
+
if (i18nAttributeConverter.isI18nKey(value)) {
|
|
42
42
|
const [context, key] = value.split(".");
|
|
43
43
|
return this.i18n({ custom: true, context, key, ...init }) || value;
|
|
44
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-i18n",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.26",
|
|
4
4
|
"description": "Integrated component that displays internationalized label from a Fluid Topics portal.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-app-context": "1.3.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.3.
|
|
22
|
+
"@fluid-topics/ft-app-context": "1.3.26",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.3.26",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "2801b1f3a132753af33d5d62b8001164737e2a4f"
|
|
27
27
|
}
|