SlashCo Wiki

SlashCo.Language

 string SlashCo.Language( string key, any ... )

Description

Returns the localized string associated with the given key.
Additional arguments are passed to string.format when provided.
String arguments are recursively passed through SlashCo.Language before formatting.

Arguments

1string key

The language key to look up.

2any ...

Arguments used to format the localized string.
String arguments are resolved through SlashCo.Language before being passed to string.format.

Returns

1string result

The localized and formatted string.