Code Monkey home page Code Monkey logo

Comments (1)

ianchi avatar ianchi commented on August 26, 2024

Hi @chris5560, sorry for the late reply.
Right now luci-ng is undergoing a revision on the way pages are wired, and it should be better to wait a bit till the API is more settled before migrating new applications.
The idea is to have two ways to define apps:

  • "manual" writting of the http/js components, which gives total control of the app
  • a simpler and more "automatic" way, with just a .json file describing the configuration. The html will be automatically generated, no code needs to be written.

A very very basic idea of the approach can be found in PR #24

Regarding localization, some more work still needs to be done to finish implementing a functional feature, it is still very much work in progress.
I added some helper task that should eventually be used:
first run: gulp translate:pot
this will generate the template to use as source for translations.
You generate your translated .po file and save it in a po/ subdirectory
then running: gulp translate:json will generate the file needed to be added to luci.
But the problem is that still the interface for loading the translations is not developed yet.

from luci-ng.

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.