API Playground - set_translation
set_translation
Use this function to add text translations for your site or metasite. This is equivant to going to Settings / Customized translations. There you'll also find the existing text identifiers you can set with this function (S_xxx). Please note that you should always set the target language for the translation using the
language parameter.
Note: if you want to translate custom resource properties (such as resource description) or the resource name, use the function
set_custom_property in order to set given custom resource property value for given language.
(click for full documentation)