Angular service
i18nService source
Description
Service to override template and javascript text
Methods
-
commit (key, value)
-
Save the substituted value on the server
Parameters
Name Type Description key string index of or default value
value string replacement text
-
set (key, value)
-
Set the substituted value in the client
Parameters
Name Type Description key string index of or default value
value string replacement text
-
v (key) -> string
-
Get substituted value
Example
Input: - k "1" Output: "one"Parameters
Name Type Description key string integer index of or default of string replace
Returns
Type Description string replaced value, or the input