Code Monkey home page Code Monkey logo

0dda1b5ba525d66b971f0b174aa53c8224afec8c1638ac0d5fb6f6c4659e235a's Introduction

mozilla-l10n-query

Web service to provide data like supported locales for a product, Bugzilla component names, and more.

Installation

Install Composer and its dependencies.

Run /app/scripts/bugzilla_query.py at least once to populate the list of Bugzilla locales. A daily cronjob should be added for this task on a production server. Make sure that the output folder app/sources is writable by the user running this script (output file is bugzilla_components.json).

Available URLs

/

Display all available repositories (ID, name and array of supported locales).

/?type=XXX

Display all repositories with type XXX (ID, name and array of supported locales).

/?repo=XXX

Display only the requested repository (ID, name and array of supported locales).

/?bugzilla=XXX

Display list of Bugzilla's l10n component names, used to create queries and links in products like Webdashboard or Langchecker.

Default is to display component names for the Mozilla Localizations product. If XXX is set to www display values of the Locale select (cf_locale field) used for example in www.mozilla.org::L10N

/?tool=XXX

Display list of locales working in a specific tool. Available values: pontoon, pontoon-mozorg, all.

all will return a json with the list of supported tools and, for each of them, the supported locales.

License

This software is released under the terms of the Mozilla Public License v2.0.

0dda1b5ba525d66b971f0b174aa53c8224afec8c1638ac0d5fb6f6c4659e235a's People

Contributors

flodolo avatar mozilla-github-standards avatar pascalchevrel avatar seferov avatar theochevalier avatar

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.