If one wants to write software intended to be translated and run literally everywhere in whatever languages the user wants what are the current best practices?
评论:
drvd:
shaleh:The stuff in golang.org/x/text and especially golang.org/x/text/message
Be prepare for real hard work if you want to achieve your goal of "run literally everywhere in whatever languages". I'm sure you know there are languages with a very reduced concept of time or cardinality.
Jelterminator:Agreed. I am just trying to wrap my head around what is available. Go is surprising less "Batteries Included" than expected given its popularity. I find plenty of 2 and 3 year old blog posts and semi abandoned code on GitHub. So it is never clear where the consensus lies.
lobocv:The things in the golang.org/x/name are usually where some consensus is.
Not specifically written for Go but I have a work flow tool for internationalizing python applications. Im not very experienced with Go but in the odd chance it can be helpful to you please have a look. Hopefully it can be easily adapted to extract tags from Go source code. I wouldn't mind helping you adapt it if you can point out the areas that need work.
