nathanhoad / godot_dialogue_manager

A powerful nonlinear dialogue system for Godot
MIT License
2.04k stars 161 forks source link

Variable Interpolation in translation files #602

Closed manuelsanchez2 closed 2 months ago

manuelsanchez2 commented 2 months ago

Hi, I decided to add localization to my game and there will be some cases in which I will need to interpolate some strings / floats inside the dialogues. When I was not making use of the translations, it was working and reading the variable from my Singleton, but now it does not. It just renders {{PlayerData.version}}.

It would be great if we could keep using the variables there, or maybe there is another solution I am not aware of?

Captura de pantalla 2024-06-26 a las 13 24 27

quest here.

Captura de pantalla 2024-06-26 a las 13 26 00

manuelsanchez2 commented 2 months ago

Okay, it is now working somehow, sorry! haha