Skip to content

1.5.0

Compare
Choose a tag to compare
@nicksnyder nicksnyder released this 03 Oct 14:56

A new command has been added to goi18n.

goi18n constants generates a file of constants for each translation id.

e.g.

package R

// MyHeightInMeters is the identifier for the following localizable string template(s):
// one: "I am {{.Count}} meter tall."
// other: "I am {{.Count}} meters tall."
const MyHeightInMeters = "my_height_in_meters"

Thanks @rodrigocorsi2!