spreak
spreak copied to clipboard
Flexible translation and humanization library for Go, based on the concepts behind gettext.
Hey @vorlif Try this : https://translate.google.com/?sl=en&tl=de&text=%7B%0A%20%20%22%25%5B1%5Dd%20byte%22%3A%20%7B%0A%20%20%20%20%22one%22%3A%20%22%25%5B1%5Dd%20byte%22%2C%0A%20%20%20%20%22other%22%3A%20%22%25%5B1%5Dd%20bytes%22%0A%20%20%7D%2C%0A%20%20%22%25s%20GB%22%3A%20%22%25s%20GB%22%2C%0A%20%20%22%25s%20KB%22%3A%20%22%25s%20KB%22%2C%0A%20%20%22%25s%20MB%22%3A%20%22%25s%20MB%22%2C%0A%20%20%22%25s%20PB%22%3A%20%22%25s%20PB%22%2C%0A%20%20%22%25s%20TB%22%3A%20%22%25s%20TB%22%2C%0A%20%20%22%25vth_ordinal%2011%2C%2012%2C%2013%22%3A%20%7B%0A%20%20%20%20%22context%22%3A%20%22ordinal%2011%2C%2012%2C%2013%22%2C%0A%20%20%20%20%22other%22%3A%20%22%25vth%22%0A%20%20%7D%2C%0A%20%20%22%2C%20%22%3A%20%22%2C%20%22%2C%0A%20%20%22AM%22%3A%20%22AM%22%2C%0A%20%20%22PM%22%3A%20%22PM%22%2C%0A%20%20%22a.m.%22%3A%20%22a.m.%22%2C%0A%20%20%22midnight%22%3A%20%22midnight%22%2C%0A%20%20%22noon%22%3A%20%22noon%22%2C%0A%20%20%22p.m.%22%3A%20%22p.m.%22%2C%0A%20%20%22today%22%3A%20%22today%22%2C%0A%20%20%22tomorrow%22%3A%20%22tomorrow%22%2C%0A%20%20%22yesterday%22%3A%20%22yesterday%22%0A%7D%0A&op=translate It fails because it also does the key works, so need an extractor and mergers just for this building machine translators. ``` "midnight": "midnight",...
**Describe the solution you'd like** https://github.com/golang-module/carbon could be used to give all aspects the ability to convert datas and times. SO then we can incorporate this. It's needed in GUI...
**Describe the solution you'd like** The Humanize package should use the translations from the CLDR package.
[humanize/locale/ta/locale.go](https://github.com/vorlif/spreak/blob/0d513f89378c1d9912f6499cac7a56d1f8f6112e/humanize/locale/ta/locale.go#L1) has package name "da" and returns a locale with language "da", instead of the expected "ta". Similarly for "io", "lb and "lv".