GetLocalizedString
- Parameters
-
source string
- comment
returns a translated string for the client's local language. Without an available translation, returns
source
.The result will differ between players with different languages. Possible sources are the .fdf files and the war3map.wts file.
Example:
GetLocalizedString("REFORGED")
-> "Reforged"- bug
(Jass) Cannot assign it to a constant variable as it will crash the game.
constant string foo = GetLocalizedString("bar")
- async
- This function is asynchronous. The values it returns are not guaranteed to be the same for each player. If you attempt to use it in an synchronous manner it may cause a desync.
- patch
1.00
- Source
- common.j
- return type
string
- Source code
native GetLocalizedString takes string source returns string