Language Tutorial?

I need your help!
How do I use this?
I want to create an FNaF-type game and I want to add two or more languages.

I would be very grateful for your help. :slight_smile:

Hi @MatixPon!

This an example from my last game.

A+
Xierra

2 Likes

Thank you for your help @Amigo54! Now I’ll take care of the rest myself, for now.

Additional question @Amigo54 . Does the language of the text change based on the language of GDevelop or based on the user’s country?

That is a good question.
I have not the answer but what i can say, it seems that by default, GD is configured on English (menus, events, etc.). You can change that in settings.

I don’t remember precisely because i used for the first time GD in 2019.

I hope answering to your questions.

A+
Xierra

1 Like

I’m working on an extension which will let you translate your whole game with just a few logic (code) blocks by using external JSON files to store translations for different languages:

It supports parameterized translations and even changing order of parameters in your translations (sometimes it’s needed to change the order of the words in order to make it sound more natural in the target language).

It works with multiple scenes and can take user’s system/browser preferred language and fall back to English (or whatever language you want) if the translation for user’s preferred language doesn’t exist.

edit: Check here:

4 Likes

Thank you for your advice, @Amigo54.

So, in your opinion, JSON is an easy way to translate into multiple languages. So how do I do it as in the attachment you sent?

How do you do what exactly? You can download the demo project and see how it’s done in there.

As for managing translations withing JSON files, I’m afraid you’ll have to manage them manually. So, Notepad(++) or similar software and crate json with your strings for translations. There are some websites which allow you to upload JSON, translate it into multiple languages (even invite others to help), and then download separate JSON file for each language once it’s translated. But such websites usually charge for their services.