Code Monkey home page Code Monkey logo

webpack-closure-i18n's Introduction

webpack-closure-i18n

(NOTE: this project is new and experimental -- it may still be rather buggy)

This is a set of two Webpack plugins for translating Closure Templates in a "post-build" fashion. After Webpack has already built asset bundles, but before it has emitted them, the i18n plugin translates all MSG_EXTERNAL_(\d+) definitions found in the bundles into locale-specific output.

Fast Closure Translater is used to perform the actual work of translation.

This is intended as a fast alternative to the multi-compiler approach to translation shown in https://github.com/webpack/webpack/tree/master/examples/i18n. While that approach works nicely for projects of many sizes, it becomes slow in projects with very large dependency trees or a large number of translations, as it forces Webpack to handle a dependency tree with size matching NUMBER_OF_DEPENDENCIES * NUMBER_OF_TRANSLATIONS.

PostCompileI18nPlugin

This plugin handles the actual translation. See i18n-plugin.js for documentation on usage.

PostCompileI18nAssetsPlugin

This plugin handles generating a JSON file mapping bundle names to locale-specific bundle paths. See assets-plugin.js for documentation.

webpack-closure-i18n's People

Contributors

bregenspan avatar judikdavid avatar

Stargazers

Michael Scott Hertzberg avatar

Watchers

Dustin Anderson avatar Robin Ting avatar  avatar Oliver Kovacs avatar Gáspár Körtesi avatar  avatar Chris Sprehe avatar Tamas Neltz avatar Ashton G. avatar  avatar Ramesh Kumar avatar James Cloos avatar Sam Scherer avatar Zoltan Balazs avatar Brandon Comerford avatar Balazs Keki avatar Jamie Levinson avatar Nehéz-Posony Ferenc avatar eteleilles avatar Oleg Dyachenko avatar Gawker Operations Team Bot avatar Lyle Arnot avatar Laszlo Heves avatar Kyle Lucovsky avatar Margaret Taormina avatar Andras Szatmari avatar Dima avatar Ihab Rimawi avatar Justin avatar Kún Ákos avatar Samuel Centurion avatar Kelly Monson avatar Ferenc Tóth avatar Jennifer Bruno avatar Mylo28 avatar  avatar Cameron Lowe avatar Kelly Bishop avatar Iván Campaña avatar  avatar  avatar  avatar  avatar Giannella Paredes avatar Nick Eckhart avatar Ben Kim avatar Melissa Patterson avatar Gyorgy Bokros avatar  avatar Anton avatar  avatar Grace Robertson avatar Michelle avatar Tyler Alicea avatar  avatar Brian Ferch avatar  avatar

Forkers

bregenspan

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.