How to change the text scratch3.0

 

 

First, let's look at the following chart, we need to change the text scratch3.0, such as file, new works, and other text from your computer to upload.

 

Open source code directory src / compents / menu-bar / menu-bar.jsx

We will find that all words are calling id = "gui.menubar.file". So in the end where the text to modify it?

This is because scratch3.0 multi-language version of the function.

Below, please find node_modules> scratch-l10n> editor> interface> zh-cn.json

node_modules>scratch-l10n>locales>editor-msgs.js

node_modules>scratch-l10n>locales>interface-msgs.js

 

 

 

Therefore, we can see that, in fact, the text is written in here, you can do several things

1. Modify the text

2. Add parameters

3. Replace into other languages. Text in different languages ​​need to set a different language packages. Otherwise it will display the default English

Guess you like

Origin www.cnblogs.com/lickies1983/p/11918610.html