Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 972 Bytes

i18n.md

File metadata and controls

18 lines (10 loc) · 972 Bytes

jQuery.a11yfy.getI18nString

Lookup a language string with value replacement from within a string bundle

Synopsis

jQuery.a11yfy.getI18nString(key, [values], stringBundle)

Parameters

  1. key - a String that is the name of the language string
  2. [values] - A dictionary of key value pairs that represent parameter values that must get replaced in the target languages string to produce the required UI output. This parameter is optional, if not provided, this parameter must be null or undefined.
  3. stringBundle - an dictionary of key value pairs representing the string bundle for the user's UI language. The strings can contain replacement placeholders of the form ${name}. These placeholders can then be replaced with data values when the string is fetched by passing in the appropriate dictionary items in the values dictionary.

Example

jQuery.a11yfy.getI18nString("hello", {name: "Unobfuscator"}, {hello: "Gruss Gott Herr ${name}"});