ublo-lib 1.48.4 → 1.48.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-package/i18n/translations.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-package/i18n/translations.tsx"],"names":[],"mappings":"AASA,wBAAgB,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,OAQ5C;AAED,KAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,2CAGtC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useUbloContext } from "ublo/with-ublo";
|
|
3
|
-
import
|
|
3
|
+
import ca from "./ca.json";
|
|
4
4
|
import en from "./en.json";
|
|
5
5
|
import es from "./es.json";
|
|
6
|
-
|
|
6
|
+
import fr from "./fr.json";
|
|
7
|
+
const dictionaries = { ca, en, es, fr };
|
|
7
8
|
export function t(lang, key) {
|
|
8
9
|
if (!lang || !key)
|
|
9
10
|
return "";
|