DEV Community

Cover image for How to create a Offline Internationalization App:Data modeling
nasa.wang
nasa.wang

Posted on • Updated on

How to create a Offline Internationalization App:Data modeling

With Strapi's powerful content management functions, data modeling can be carried out freely.

First set the language type supported by Strapi GLOBAL SETTINGS> Internationalization

image-20211009161842-yftbalp

image-20211009161910-ouo1opo

Setting up Strapi in this way supports both Chinese and English

Next, use the CONTENT TYPE BUILDER function for modeling. Here we take vegetables as an example to build a vegetable data model.

Content-Types Builder> Create new collection type

Enable the internationalization function in the advanced settings Enable localization for this Content-Type

image-20211009162247-no80sdx

image-20211009162320-2m98i00

image-20211009162550-23wrk31

Click Save and Strapi will automatically restart. After the restart is completed, an order will be opened in the COLLECTION TYPES on the left to the data model just created.

image-20211009163139-1joavuo

Next, add some data here

Use the Removebg website to quickly create beautiful transparent background images

image-20211009163750-0sn9c4a

image-20211009163923-ysijmwx

After the save is successful, you can edit other language versions in the language selection on the right, and copy the content from the existing languages.

image-20211009164200-hl8sbfo

image-20211009164254-8o1qu1j

Such a piece of data supports multiple languages

image-20211009164536-a1myfdv


Image description

Play Store

Apple Store

Top comments (0)