@tagadapay/plugin-sdk 2.7.25 → 2.7.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.
|
@@ -69,7 +69,7 @@ export const useTranslation = (options = {}) => {
|
|
|
69
69
|
return browserLang;
|
|
70
70
|
}
|
|
71
71
|
return defaultLanguage;
|
|
72
|
-
}, [defaultLanguage]);
|
|
72
|
+
}, [defaultLanguage, currentLanguage]);
|
|
73
73
|
const t = useCallback((text, fallback, params, languageCode) => {
|
|
74
74
|
// Helper function to interpolate params into the translated string
|
|
75
75
|
const interpolate = (str, params) => {
|