It looks like you're new here. If you want to get involved, click one of these buttons!
<<link "RU" "Debug">><<script>> l10nStrings.savesTitle = "Сохранения"; l10nStrings.restartTitle = "Рестарт"; ... <</script>> <<set $lang = "RU">> <</link>> <<link "EN" "Debug">><<script>> l10nStrings.savesTitle = "Saves"; l10nStrings.restartTitle = "Restart"; ... <</script>> <<set $lang = "EN">> <</link>>So I changed l10nStrings.saveTitle and other vars but don't see changes in game. When I check this thing by this way:
<<link "Test" "Debug">><<script>> alert(l10nStrings.savesTitle); l10nStrings.savesTitle = "Bla bla"; alert(l10nStrings.savesTitle); <</script>><</link>><br>I see that savesTitle changed to "Bla bla". But in UI bar I see "Saves" (it doesn't change if I toggle between passages).
Comments
You'd probably be better off using a setting, which would provide the correct localization before the UI bar was initialized. See the Possible to do a language switch option with Twine 1.4 and Sugarcube? Q&A for one example of how you might do so.