#Anyone familiar with localization
1 messages · Page 1 of 1 (latest)
You can use nested localized strings https://docs.unity3d.com/Packages/com.unity.localization@1.4/manual/Smart/Persistent-Variables-Source.html#nested-translations
But is it possible without GameObject?
but with code
Yes if you are using a LocalizedString.
E.G
var locString = new LocalizedString("My String Table", "My Game Text")
{
{ "nested", new LocalizedString("My String Table", "My Nested Text") }
};```
or
🤔
locString.Add("nested1", new LocalizedString("Nested Value 1", "My Game Text"));
locString.Add("nested2", new LocalizedString("Nested Value 2", "My Game Text"));
locString.Add("nested3", new LocalizedString("Nested Value 3", "My Game Text"));
locString.Add("nested4", new LocalizedString("Nested Value 4", "My Game Text"));
locString.Add("nested5", new LocalizedString("Nested Value 5", "My Game Text"));
locString.Add("nested6", new LocalizedString("Nested Value 6", "My Game Text"));```
Then have the main string as {0:c(0|1|2|3|4|5):{nested1}|{nested2}|{nested3}|{nested4}|{nested5}|{nested6}}