manpagez: man pages & more
info gettext
Home | html | info | man

File: gettext.info,  Node: TypeScript,  Next: Scheme,  Prev: JavaScript,  Up: List of Programming Languages

16.5.6 TypeScript and TSX
-------------------------

RPMs
     js

Ubuntu packages
     gjs

File extension
     ‘ts’ for TypeScript, ‘tsx’ for TSX (TypeScript with JSX)

String syntax

        • ‘"abc"’

        • ‘'abc'’

        • ‘`abc`’

gettext shorthand
     ‘_("abc")’

gettext/ngettext functions
     ‘gettext’, ‘dgettext’, ‘dcgettext’, ‘ngettext’, ‘dngettext’

textdomain
     ‘textdomain’ function

bindtextdomain
     ‘bindtextdomain’ function

setlocale
     automatic

Prerequisite
     unknown

Use or emulate GNU gettext
     use, or emulate

Extractor
     ‘xgettext’

Formatting with positions
     A ‘format’ method on strings can be used.  But since it is not
     standard in TypeScript, you have to enable it yourself.

Portability
     On platforms without gettext, the functions are not available.

po-mode marking
     --

© manpagez.com 2000-2026
Individual documents may contain additional copyright information.