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
Npm version
9.8.1 Node.js version
18.18.2 React version:
18.3.1 @strapi/sdk-plugin version
5.3.1
What's Wrong?
My understanding is that a plugin should use translations with the plugin name as a prefix, hence the use of PLUGIN_ID to get the translation.
It seems that before a prefixPluginTranslations function was used to "add" the prefix to each translated string (e.g. users-permissions plugin).
To Reproduce
We can see that this is not working because there's no functionality to add this prefix.
We can also check the messages object from the useIntl() hook to see how its being saved (after adding some strings to /translations/en.json for example).
Expected Behaviour
The getTranslation function should return the correct string for the current locale.
The text was updated successfully, but these errors were encountered:
What version of
@strapi/sdk-plugin
are you using?Npm version
9.8.1
Node.js version
18.18.2
React version:
18.3.1
@strapi/sdk-plugin version
5.3.1
What's Wrong?
My understanding is that a plugin should use translations with the plugin name as a prefix, hence the use of
PLUGIN_ID
to get the translation.It seems that before a
prefixPluginTranslations
function was used to "add" the prefix to each translated string (e.g. users-permissions plugin).To Reproduce
We can see that this is not working because there's no functionality to add this prefix.
We can also check the
messages
object from theuseIntl()
hook to see how its being saved (after adding some strings to/translations/en.json
for example).Expected Behaviour
The
getTranslation
function should return the correct string for the current locale.The text was updated successfully, but these errors were encountered: