Comments (2)
Here are my notes, combined with the wisdom of @asonix
Goal:
-- Add a configuration parameter to the Aardwolf.config so that the admin can set a -default- language
-- The User-preferences template will ALSO need to be able to access set languages from a fixed list (UI dropdown)
Question:
Are there any other scenarios where the language files will need to be accessed?
Functional specifications:
- If user exists, use their language
- If user doesn't exist, use default language
- By default the crate will expect a
/lang
folder to be in the application root - Add a parameter to the
aardwolf.config
to allow the language folder path to be modifiable - The crate should define an enum which represents every valid language
- This allows lookups can say "You have a valid language, here's your language data" or "You're language is not supported"
Optional:
- Build a function to read through the languages folder in order to determine which languages have been implemented. It will then build a 'state' that can be queried for language data so even if the crate thinks a language is valid, it still relies on what exists to accept or deny requests
from aardwolf.
This issue is superseded by the i18n-templates branch
from aardwolf.
Related Issues (20)
- Feature Requirement: Events HOT 11
- I don't like having forkawesome dominating our repository HOT 4
- There are no uniqueness constraints in the database
- No fediverse account in ReadMe HOT 8
- Creating new user gives 404
- Runtime Problem: Illegal Instruction HOT 1
- Backend Bug - the trait `rocket::fairing::Fairing` is not implemented for `rocket_i18n::I18n` HOT 3
- [Security Issue] - Update WebPack HOT 1
- [Backend] - Explore migration to Actix-Web HOT 12
- configuration property "Log.file" not found' HOT 5
- [Documentation] - Review main README.md
- TODO: Refactor form state into trait
- 'compile_i18n!' fails with NotFound HOT 4
- Support for Decentralized Identifier
- Fix code scanning alert - this expression creates a reference which is immediately dereferenced by the compiler
- Fix code scanning alert - the following explicit lifetimes could be elided: 'b
- Backend Module API
- Frontend Module API
- Database Module API
- error[E0425]: cannot find value `assets` in this scope HOT 16
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 aardwolf.