Code Monkey home page Code Monkey logo

cargo-fluent's People

Contributors

corebreaker avatar

Watchers

 avatar  avatar

cargo-fluent's Issues

Implement the `convert` command

The command will do these tasks:

  • Read the config files
  • Read the PO files
  • Read the Fluent files
  • Create missing Fluent files from PO files
  • Update existing Fluent files from PO files

Simplify configuration

  • Review of the structures of config files, eg. some fields are required like fluent.assets_dir.
  • Upgrade version of the crate Clap and use the procedural macros with the trait Parser.
  • Add parameters to the CLI and don't drive the commands with the config:
    • Add domain argument.
    • Add output argument.
    • For the command scan, add a flag for updating the source files (*.rs).
    • For the commans convert, allow to pass PO files as a list of path at the end of the command.
  • Don't use sub-crates
  • Process paths and use them in fields intead using strings

Add CI

  • Circle-CI
  • Coverage (config of the report producer)

Redact the README

  • Edit the README and add badges
  • Add documention in sources (rustdoc)
  • Remove the edit subcommand; this command will be implemented in the next release

Implement the `edit` command

The command will do these tasks:

  • Read the config files
  • Read the source files
  • Read the Fluent files
  • Create the GUI
  • The GUI could do these actions:
    • Updating metadata
    • Updating Fluent file: CRUD with save button
    • Creating a new file with a button "Create a new translation"
    • Removing a file

Implement the `scan` command

The command will do these tasks:

  • Read the config files
  • Read the source files
  • Read the Fluent files
  • Create missing Fluent files from the language list
  • Update existing Fluent files from the language list

Add commands

  1. Create functions for:
  • reading config files,
  • reading source files with positions of translation placeholders,
  • reading PO files,
  • reading and writing FLT files.
  1. Then, initialize and configure clap to define commands:
  • scan: scan source files (rust files only) and create or update the FLT files
  • convert: scan po files and create or update the FLT files
  • edit: GUI for editing the FLT files
  • helps on commands

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.