【发布时间】:2020-09-27 02:23:45
【问题描述】:
我正在使用 React 和 Material UI 的应用程序工作。应用程序需要根据语言环境值翻译用户界面。我需要提供 5 种语言的设施。我想达到与Material UI documentation page 类似的响应水平。
I noticed that for the base language, which is English, the routes do not include a language segment on the URL path, but when a language other than English is selected, the URL has a language segment.例如,英文的本地化页面 URL 是 https://material-ui.com/guides/localization/,而法语的同一页面是 https://material-ui.com/fr/guides/localization/。
对架构模式或示例代码的任何引用将不胜感激。
【问题讨论】:
标签: reactjs react-redux internationalization material-ui material-design