{"name":"isLocalized","title":"isLocalized","type":"command","url":"https://community.bistudio.com/wiki/isLocalized","revid":349114,"updated":"2023-11-08T14:49:37Z","groups":["Strings","Localization"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","description":"Checks whether given *stringName* is localized.","syntaxes":[{"syntax":"isLocalized stringName","params":[{"name":"stringName","type":"String","description":"string which leads to localisation. Casing does not matter. Since Arma 3 v2.04 a string starting with `\"$\"` is supported as well","type_expr":"String"}],"returns":{"type":"Boolean","type_expr":"Boolean"},"form":"unary","right":{"text":"stringName"}}],"examples":[{"text":"```sqf\nif (isLocalized \"STR_USRACT_ADJUST\") then\n{\n    hint localize \"STR_USRACT_ADJUST\";\n}\nelse\n{\n    hint \"STR_USRACT_ADJUST\";\n    diag_log \"ToDo: STR_USRACT_ADJUST is not localized\";\n};\n```","code":["if (isLocalized \"STR_USRACT_ADJUST\") then \n{\n\thint localize \"STR_USRACT_ADJUST\";\n} \nelse \n{\n\thint \"STR_USRACT_ADJUST\";\n\tdiag_log \"ToDo: STR_USRACT_ADJUST is not localized\";\n};"]},{"code":["isLocalized \"$STR_USRACT_ADJUST\"; // Since Arma v2.04"]}],"see_also":["localize","diag_localized","getTextRaw","WFSideText","Stringtable.csv","Stringtable.xml","BIS_fnc_localize"]}