Skip to content

nut.lang

Brian edited this page Jun 19, 2015 · 4 revisions

This library provides function to handle overall language of the schema/framework. This allows server players to change their UI language and be more friendly with NutScript.

Methods

  • L(key, client[, ...])
  • The server-side version of the translate function to get a localized version of a message for the player.
  • L(key[, ...])
  • The client-side version of the translate function to get a localized message. The key corresponds to those found in language files. This function accepts a variable number of arguments. Each extra argument is used to substitute the "%s" found in the translations.