Giter Club home page Giter Club logo

Comments (2)

BanjoFox avatar BanjoFox commented on July 24, 2024

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.

BanjoFox avatar BanjoFox commented on July 24, 2024

This issue is superseded by the i18n-templates branch

from aardwolf.

Related Issues (20)

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.