GLib.KeyFile.prototype.set_locale_string

function set_locale_string(group_name: String, key: String, locale: String, string: String): void {
    // Gjs wrapper for g_key_file_set_locale_string()
}
  

Associates a string value for key and locale under group_name. If the translation for key cannot be found then it is created.

Since 2.6

group_name

a group name

key

a key

locale

a locale identifier

string

a string