xgotext

command
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2025 License: BSD-3-Clause, MIT Imports: 6 Imported by: 0

README

xgotext

CLI tool to extract translation strings from Go packages into .POT files.

Installation

go install github.com/leonelquinteros/gotext/cli/xgotext

Usage

Usage of xgotext:
  -default string
        Name of default domain (default "default")
  -exclude string
        Comma separated list of directories to exclude (default ".git")
  -in string
        input dir: /path/to/go/pkg
  -out string
        output dir: /path/to/i18n/files

Details

It will scan the Go package provided for method calls that matches the method names from the gotext package and write the corresponding translation files to the output directory.

The CLI tool traverse sub-directories down from the given input directory.

Contribute

Please

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
dir

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL