Skip to main content

addTextLang

addTextLang​

Adds language setting to the command buffer.

Parameters​

lang​

  • number

Specifies the target language.

ValueDescription
PrinterConstants.LANG_EN (default)English (ANK specification)
PrinterConstants.LANG_JAJapanese
PrinterConstants.LANG_ZH_CNSimplified Chinese
PrinterConstants.LANG_ZH_TWTraditional Chinese
PrinterConstants.LANG_KOKorean
PrinterConstants.LANG_THThai (South Asian specification)
PrinterConstants.LANG_VIVietnamese (South Asian specification)
PrinterConstants.LANG_MULTIMultiple languages (UTF-8)
PrinterConstants.PARAM_DEFAULTSpecifies the default value (English).

Returns​

Promise<void>

Errors​

Error statusDescription
ERR_PARAMAn invalid parameter was passed.
ERR_TIMEOUTFailed to communicate with the devices within the specified time.
ERR_MEMORYNecessary memory could not be allocated.

Supplementary explanation​

  • This API is called before the addText API.
  • Use this API at the top of each print job.
  • Available languages differ depending on character specifications of the printer. For details, see Technical Reference Guide of the printer.