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
Then in one of my schema, I added: <string keyName="hours" title="${hours_label}"/>
When I run, it doesn't render the text; instead, it just shows as hours_label.
I also tried react-intl. But react-intl somehow does not work for components. It works on higher level such as in dashboard.js. For components, the function {this.props.intl.formatMessage(messageObj)} works but does not appear localized based on selected language. It doesn't seem to get the IntlProvider data.
I'll be thankful if you can set me in the right direction for internationalization.
The text was updated successfully, but these errors were encountered:
Hi there!
Thank you for this great work! I am trying to create a CMS that has English and Norwegian as base languages. I followed the guide here:
https://www.cannercms.com/docs/guides-internationalization
In this project, there was no canner.server.js, so I created one and included the following as test code:
Then in one of my schema, I added:
<string keyName="hours" title="${hours_label}"/>
When I run, it doesn't render the text; instead, it just shows as hours_label.
I also tried react-intl. But react-intl somehow does not work for components. It works on higher level such as in dashboard.js. For components, the function {this.props.intl.formatMessage(messageObj)} works but does not appear localized based on selected language. It doesn't seem to get the IntlProvider data.
I'll be thankful if you can set me in the right direction for internationalization.
The text was updated successfully, but these errors were encountered: