@designcrowd/fe-shared-lib 1.2.7-rr-debugging → 1.2.7-rr-debugging-2

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.7-rr-debugging",
3
+ "version": "1.2.7-rr-debugging-2",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -41,6 +41,7 @@
41
41
  </div>
42
42
  </template>
43
43
  <script>
44
+ import i18next from 'i18next';
44
45
  import Button from '../../../atoms/components/Button/Button.vue';
45
46
  import TextInput from '../../../atoms/components/TextInput/TextInput.vue';
46
47
  import { sellDomainNameMinSearchTextLength } from '../../constants/sell-domain-name-constants';
@@ -82,6 +83,12 @@ export default {
82
83
  },
83
84
  emits: ['onSearch', 'onSearchTextInputChange'],
84
85
  setup() {
86
+ // eslint-disable-next-line import/no-extraneous-dependencies
87
+ // Make i18next available globally for debugging
88
+ if (typeof window !== 'undefined') {
89
+ window.i18nextSearch = i18next;
90
+ }
91
+
85
92
  return {
86
93
  searchButtonLabel: sellDomainNameSearchTr('searchButtonLabel'),
87
94
  searchBarLabel: sellDomainNameSearchTr('searchBarLabel'),
@@ -21,7 +21,7 @@ const setSharedLibLocaleAsync = async (locale = 'en-US') => {
21
21
 
22
22
  if (!i18next.isInitialized) {
23
23
  await i18next.init({
24
- debug: true, // ✅ Turn on i18next debug logs
24
+ debug: true,
25
25
  fallbackLng: fallbackLocale,
26
26
  lng: localeToUse,
27
27
  });