简体   繁体   中英

What is the simplest way to add multi language support to a simple mobile app?

I am working on a simple mobile online shop app and need to add internationalization to it. For example, the products' descriptions need to be presented in, at least three languages. Also, the user should be able to select the needed language. Want to use Appery as a tool since the app should work for both iOS and Android.

  1. Create the TypeScript code with the type Angular i18n language and the following content
{ "Card_Title": "Hello,": "Card_Content": { "spec_value_1", "This is a multilingual app": "spec_value_2": "Made by:" } }
  1. Add the ngx-translate library (see this link on how to add it https://docs.appery.io/docs/ionic-5-internationalization-sample-app )

  2. Now you can use the library ngx-translate in your project

More information you can find here: https://docs.appery.io/docs/ionic-5-property-internationalization

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM