Git Product home page Git Product logo

pogo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pogo's Issues

Performance

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.

More info on configuration

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?

Default output if no correct language specified

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.