You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(useI18nBundle): add new hook to retrieve current i18n bundle (#1104)
* chore(useI18nBundle): add useI18nBundle
* deprecate old hook, update docs & add migration guide
* add test for i18n hook
* early exit test when running in react 16.8.0
In case you have texts without placeholder values you can use the simple `string` arguments, but if you have parameters
82
-
in your message bundle you will have to use the `array` notation (_please see step 6_).
83
-
You can mix `string` and `array` arguments in the same call.
84
-
85
-
Each parameter will be translated one by one and returned in an array in the same order.
82
+
The `i18nBundle` is offering one public method `getText` which accepts a string as first parameter, followed by optional replacement parameters for your translation.
0 commit comments