How to build a go library that supports i18n and make these translations available to client apps (CLI ONLY)

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • go-i18n

    Translate your Go program into multiple languages.

  • I am using Nick Snyder's go-i18n for translations. I am also building a go library intented to be imported by either by other libraries or cli executables. All of the documentation I have seen about supporting i18n assume this is being used in an app, but don't cover the scenario where this is being implemented in a library.

  • arcadia

    🦄 Go template for Cobra based cli applications (by snivilised)

  • I saw your cobra i18n project on GitHub at https://github.com/snivilised/arcadia

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • fisk

    A fluent-style, type-safe command-line parser for Go. (by choria-io)

  • https://github.com/choria-io/fisk is a golang cli builder and would be more flexible with regards to data binding because it itself is more of a data driven cli style approach.

  • natscli

    The NATS Command Line Interface

  • This cli is used by NATS cli which itself needs to use json schema to drive it and so shows the concept of using data to drive itself at https://github.com/nats-io/natscli

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts