@designcrowd/fe-shared-lib 1.2.0-tr-7 → 1.2.0-tr-9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.0-tr-7",
3
+ "version": "1.2.0-tr-9",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -494,6 +494,9 @@ export default {
494
494
  },
495
495
  onCloseModal() {
496
496
  console.log(this.testMessage);
497
+
498
+ console.log('closing the modal with', this.tr('publishModal.test'));
499
+
497
500
  this.$emit('close-modal');
498
501
  this.$emit('on-hide-domain-modal');
499
502
  },
@@ -35,6 +35,10 @@ const setLocaleAsync = async (locale = 'en-US') => {
35
35
  };
36
36
 
37
37
  const tr = (key, valuesToInterpolate = {}) => {
38
+ const languages = i18next.getDataByLanguage('en-US');
39
+
40
+ console.log('languages in the fesharedlib', languages);
41
+
38
42
  const translated = i18next.t(key, { ns: 'fe-shared-lib', ...valuesToInterpolate });
39
43
 
40
44
  return translated;