Refactor data models and code to support internationlization and localisation #400
abderrahmaneMustapha
started this conversation in
Architecture
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, we need to refactor the data models so we can support multi-languages, and this is already done we discussed this in our slack channel, but you can share other ideas to get a better result, what we want to do is
to transform the articles, documentation, and learn models from :
to something like this
Secondly, we want to refactor the data code because we were forced to translate some urls in the redux actions, for example
in [https://github.com/dzcode-io/dzcode.io/blob/main/web/src/apps/main/redux/actions/articles-page/index.ts](the article page redux actions) line 24 to 30.
We need to translate "/Articles/" in order to add support for multi-language URLs, we don't want to control the URLs from redux actions.
Beta Was this translation helpful? Give feedback.
All reactions