So, I'm doing translations for a game, and I have different dictionaries. If a translation doesn't exist in one language, I want to set it to the English translation. Every method I've tried to combine the dictionaries has ended up incredibly inefficient.
Here are some cut down examples
local translation-sr = {
Buttons = {
Confirm = "???????";
Submit = "?????";
};
Countries = {
Bloxell = "???????";
USA = "????????? ???????? ??????";
};
Firearms = {
Manufacturers = {
GenMot = "????????? ??????";
Intratec = "????????";
TF = "?? ??????";
};
};
};
local translation-en = {
Buttons = {
Confirm = "Confirm";
Purchase = "Purchase";
Submit = "Submit";
};
Countries = {
Bloxell = "Bloxell";
USA = "United States";
};
Firearms = {
Manufacturers = {
GenMot = "General Motors";
Intratec = "Intratec ";
TF = "TF Armaments";
};
};
Languages = {
Belarusian = "Belarusian";
English = "English";
French = "French";
German = "German";
Italian = "Italian";
Russian = "Russian";
Serbian = "Serbian";
Spanish = "Spanish";
};
};

3 comments
wow y'all ain't even use UTF-8 on scripting helpers smh
Out of curiosity -- why not use Roblox's localization tools? They are made to do this kind of thing.
A lot of the text in my game uses a "typewriter" effect, which gets undesired results with the built-in localization.