Internationalization #
NOTE: Pull-Requests are always welcome to add or update translation. If you can translate but not familiar with GitHub, please contact me and I can get your translation into Scratch3-Tello.
Block names are defined in scratch-vm/src/extensions/scratch3_tello/index.js. The message
object described in this file will be used by i18n.
message['internal block code']['language code']
is the block name in that language for that block.
Example #
For example, translate the takeoff
block into German. At the moment, message['takeoff']
looks like this
const message = {
takeoff: {
'ja': '離陸する',
'ja-Hira': 'りりくする',
'en': 'takeoff',
},
// ...
};
The language code for German is de
. Edit the following so that message['takeoff']['de']
becomes abheben
.
const message = {
takeoff: {
'ja': '離陸する',
'ja-Hira': 'りりくする',
'en': 'takeoff',
'de': 'abheben',
},
...
};
This is done.