package
0.0.6
Repository: https://github.com/jacoblai/arduino-cli.git
Documentation: pkg.go.dev

# README

I18N

Usage

In the source code, use the function i18n.Tr("message", ...args) to get a localized string. This tool parses the source using the go/ast package to generate the en locale using these messages.

Updating messages to reflect code changes

The following command updates the locales present in the source code to reflect addition/removal of messages.

task i18n:update

Syncing the catalog with transifex

Environment variables

Set the following environment variables according to the project

VariableDescription
TRANSIFEX_PROJECTName of the transifex project
TRANSIFEX_RESOURCEName of the transifex translation resource
TRANSIFEX_API_KEYAPI Key to access the transifex project

Push

task i18n:push

Pull

task i18n:pull

# Packages

No description provided by the author

# Functions

FromJavaToGoSyntax convert a translation string made for Java to a one suitable for golang (printf-style).
Init initializes the i18n module, setting the locale according to this order of preference: 1.
Tr returns msg translated to the selected locale the msg argument must be a literal string.