Comments (1)
Not with the default providers, the default json file backend expects a structure like
locales/{language-code}/{namespace}.json
but you can easily implement your own backend - inspired by the default josn backend - which handles your custom structure.
also if you want to do custom namespace resolving from the string localizer generic context - you should be able to easily implement a custom one for your scenario which uses the typeof(T) information to automatically retrieve the translation namespace from the .net namespace.
from i18next.net.
Related Issues (19)
- Example of use in desktop application HOT 2
- Ready for production? HOT 3
- Lazy loading from API HOT 1
- CurrentCulture vs CurrentUICulture HOT 1
- Pluralization and fallback languages
- Is the library still maintained? What are the plans for the future? HOT 1
- Feature Request: Implement Namespace fallback HOT 2
- Check whether the value is already an IDictionary<string, object> HOT 2
- Feature Request: Write Log entries (or remove ILogger interface) HOT 1
- When translation uses language detection on each translation, the detected language is ignored
- Provide consistently ConfigureAwait(false) for UI thread in Blazor
- TranslationTree.GetAllValues() doesn't include parent key paths
- Allow customization on localization files findings HOT 1
- Problem with JsonFileBackend usage: Unable to retrieve translated values
- Pluralization and JSON v4 HOT 2
- Add support for fallback language and namespace. HOT 9
- Does this already support saveMissing and updateMissing backend configuration? HOT 5
- NullReferenceException when using ThreadLanguageDetector and Accept-Language header is not present HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i18next.net.