Skip to content

switchglo helps translators to manage glossary markdown.

License

Notifications You must be signed in to change notification settings

golangkorea/switchglo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utility for translated glossary management

Install

> go get github.com/golangkorea/switchglo

Usage

Once it's installed, execute in the translation project where glossary.md is present.

> switchglo switch

will swap each term with its corresponding translation, vice versa. The processed glossary will be stored in glossary_out.md.

Here's the help message that can be printed with switchglo help

switchglo helps translators to manage glossary markdown. It automates followings:

	1) Translators do not need to maintain the alphabetical order of terms. switchglo does it.
	2) switchglo allows terms to be switched with their translated terms, vice versa.
	3) switchglo will produce a merged glossary from existing glossary and its switched form.

In order to execute these automations reliably, translators should maintain following structures.

	1) Without explanation
	## Term
	translated term

	2) With explanation
	## Term
	translated term. The explanation follows.

Usage:
  switchglo [command]

Available Commands:
  merge       Merge glossary with its translated terms
  new         Add new glossary item
  sort        Sorts glossary term in alphabetical order
  switch      Switch terms with their translations

Flags:
      --config="": config file (default is $HOME/.switchglo.yaml)
      --file="glossary.md": glossary file (default is glossary.md)
  -h, --help[=false]: help for switchglo
      --out="glossary_out.md": output file (default is glossary_out.md)
  -t, --toggle[=false]: Help message for toggle

Use "switchglo [command] --help" for more information about a command.

About

switchglo helps translators to manage glossary markdown.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages