sam-izdat / pogo Goto Github PK
View Code? Open in Web Editor NEWpo/mo-compliant i18n with gettext-ish functionality for go
License: MIT License
po/mo-compliant i18n with gettext-ish functionality for go
License: MIT License
Still experimenting with it, but il looks pogo will always get the first available translation if it is told a wrong language. As labels in my templates are in english I'm adding "en" to the languages and made sure to call it with a correct and existing language. I believe the correct way to handle this, reading gettext docs, should be to just output the string untranslated.
Hi, this is a very nice and useful project, many thanks.
I think the config file needs some clarification, without assuming too much knowledge of GNU Gettext.
For example the project_filename field needs some info.
It this used both from the pogo executable to fetch and generate the translations and from the lib when asking to correctly identify the translation domain and file... is this correct?
I am speculating on how much does it takes to obtain a new translator for each route handler, it they can be safely created once per language and then shared amongst handlers, and also if it's possible to pass a &T instead of T in the templates execution contexts. Could be nice to have the package assemble a map of translator for each language specified in POGO.toml. Anyway, I'll comment more on performance after some profiling.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.