DEV Community

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

Posted on • Edited on

1

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

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

While many AI coding tools operate as simple command-response systems, Qodo Gen 1.0 represents the next generation: autonomous, multi-step problem-solving agents that work alongside you.

Read full post

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay