sfmohassel / libc.translation Goto Github PK
View Code? Open in Web Editor NEWA library to help you implement translation using json files to replace .resx files in .net standard projects
License: MIT License
A library to help you implement translation using json files to replace .resx files in .net standard projects
License: MIT License
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
Does this library really need to be tied to .NET 5+? Or could it support .NET Standard?
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
Great repo!
Have you considered using System.Text.Json instead of Newtonsoft JSON?
Would be great if you did.
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.
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.