Git Product home page Git Product logo

libc.translation's People

Contributors

sfmohassel avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

oyturas artapp

libc.translation's Issues

Performance concerns

Hi, I stumbled across your project while looking for a json based translation solution.
It does work well, so kudos for that.

However, I think it is not a good idea to keep the whole JSON structure in memory and look for the translation keys with iterations.

I'd propose to load all keys in a flat structure into dictionaries and just access those dictionary keys.
Based on the PropertyCaseSensitivity the keys could be converted to lower-case, as well as the key that is being searched.

Moreover, I'd also propose to allow a directory-based solution where each file represents a single language instead of having everything in one humongous file.

I did a proof-of-concept implementation already locally and wanted to hear your opinion.

Thanks in advance

French accent not encoded

Hi,

I use your library with English and french string. All English strings are properly retrieved but some french word containing accent are skipped. For example Activité projet will be display in PDF like Activit projet.

Do you have an idea about that?
Thanks

arguments JsonLocalizationSource

currently the 'JsonLocalizationSource' class needs to be case sensitive. sample:

ILocalizationSource source = new JsonLocalizationSource(stream, PropertyCaseSensitivity.CaseInsensitive);

in case you want to modify it in your usage examples.

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.