ttag

ttag

  • Docs
  • Blog
  • Github

›Features

Getting Started

  • Installation
  • Quick start
  • Webpack integration
  • Typescript
  • Create React App
  • Gatsby
  • Next

Tags and Functions

  • t (gettext tag)
  • jt (jsx gettext)
  • c (context)
  • ngettext (plurals)
  • gettext

Features

  • Translations validation
  • Aliasing
  • Multiline strings
  • Comments for translators
  • Ignoring code blocks

API

  • ttag API
  • babel-plugin-ttag API

CHANGELOG

  • Changelog

Ignoring code blocks

If you want to avoid translations extraction/resolving inside some blocks, you can use special comments:

/* disable ttag */

// or
function test() {
    /* disable ttag */
}

You should always use a block comment. Single line comments will not work

← Comments for translatorsttag API →
ttag
Docs
Quick Startttag APIbabel-plugin-ttag API
Community
User ShowcaseStack OverflowTwitter
More
BlogGitHubStar
Copyright © 2024 ttag