Skip to end of metadata
Go to start of metadata

translate

Description

Look up a language key and test it against the currently specificed language.


Basic Example: 


Parameters

 

NameRequiredTypeDefaultDescription
key
Yes
string
 

Key to lookup that was exported in strings file.

vars
No
array
[]

Array of variables for substitution. For each %s found in the language string, these variables are substituted in order starting with index 0.

count
No
integer
1

Number of items. Intended for language keys whose value is a pluralized array.

 

Examples

Language.translate for translation

 
  • No labels