From bf1c28e8fde606b01b8b08b44444f909e37dfaf2 Mon Sep 17 00:00:00 2001 From: Santiago Palenque Date: Tue, 5 May 2026 16:49:46 -0300 Subject: [PATCH 1/2] fix: remove setTexts from barrel import - conflicts with host translations --- src/components/index.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/components/index.js b/src/components/index.js index 38180cd3..b2274545 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -1,7 +1,3 @@ -import React from 'react'; -import T from 'i18n-react'; -import { getCurrentUserLanguage } from '../utils/methods'; - export {default as AjaxLoader} from './ajaxloader'; export {default as RawHTML} from './raw-html'; export {default as FreeTextSearch} from './free-text-search'; @@ -131,20 +127,3 @@ export {default as MuiUploadDialog} from './mui/UploadDialog' // export {default as MuiStripePayment} from './mui/StripePayment' // @stripe/react-stripe-js, @stripe/stripe-js // export {default as MuiAdditionalInput} from './mui/formik-inputs/additional-input/additional-input' // react-beautiful-dnd (via dnd-list) // export {default as MuiAdditionalInputList} from './mui/formik-inputs/additional-input/additional-input-list' // react-beautiful-dnd (via dnd-list) - -let language = getCurrentUserLanguage(); - -// language would be something like es-ES or es_ES -// However we store our files with format es.json or en.json -// therefore retrieve only the first 2 digits - -if (language.length > 2) { - language = language.split("-")[0]; - language = language.split("_")[0]; -} - -try { - T.setTexts(require(`../i18n/${language}.json`)); -} catch (e) { - T.setTexts(require(`../i18n/en.json`)); -} From 8cefc9550af500c6816f79ba34dfe7269226bec4 Mon Sep 17 00:00:00 2001 From: Santiago Palenque Date: Tue, 5 May 2026 17:13:25 -0300 Subject: [PATCH 2/2] v5.0.18-beta.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4d8f87a3..3f2ee5a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openstack-uicore-foundation", - "version": "5.0.16", + "version": "5.0.18-beta.1", "description": "ui reactjs components for openstack marketing site", "main": "lib/openstack-uicore-foundation.js", "scripts": {