# Module `LangText`

Component to handle all GUI texts Good working with localization system

## Functions

init(self, node, locale_id, no_adjust) | Component init function
set_to(self, text) | Setup raw text to lang_text component
translate(self, locale_id, ...) | Translate the text by locale_id
format(self, ...) | Format string with new text params on localized text

## Fields

on_change | On change text callback
text | The text component

## Functions

init(self, node, locale_id, no_adjust)
  Component init function

  ### Parameters:

  - self LangText
  - node node The text node
  - locale_id string Default locale id or text from node as default
  - no_adjust bool If true, will not correct text size
set_to(self, text)
  Setup raw text to lang_text component

  ### Parameters:

  - self LangText
  - text string Text for text node

  ### Returns:

  LangText Current instance
translate(self, locale_id, ...)
  Translate the text by locale_id

  ### Parameters:

  - self LangText
  - locale_id string Locale id
  - ... string Locale arguments to pass in text function

  ### Returns:

  LangText Current instance
format(self, ...)
  Format string with new text params on localized text

  ### Parameters:

  - self LangText
  - ... string Locale arguments to pass in text function

  ### Returns:

  LangText Current instance

## Fields

on_change
  On change text callback
  - on_change druid_event
text
  The text component
  - text Text

generated by LDoc 1.4.6 Last updated 2022-02-12 17:16:44