Skip to content
Snippets Groups Projects
  1. Jul 21, 2017
    • chrisgarrity's avatar
      localeData cleanup · 0fe9a7ba
      chrisgarrity authored
      move all locale data (react-intl/locale-data and gui messages) into locale.js. This also makes switching to an external node package easier because the package just needs to export the same thing as locale.js.
      0fe9a7ba
  2. Jul 19, 2017
    • chrisgarrity's avatar
      Add language selection widget to menubar · af697375
      chrisgarrity authored
      Added language-selector component and container. Replaced lib/intl.jsx with reducers/intl.js and added updateIntl to handle language changes.
      
      Moved languages.json into src
      af697375
  3. Jul 18, 2017
    • chrisgarrity's avatar
      Documentation · caa3f7e3
      chrisgarrity authored
      caa3f7e3
    • chrisgarrity's avatar
      Generate messages json from available translations · 0d4fcf11
      chrisgarrity authored
      Generate `locale/messages.json` from available languages in `translations`.  If there are no translations for a given language (from `languages.json`) it just skips it, react-intl will use the default english strings.
      
      Just using English, French and Spanish for testing right now.
      0d4fcf11
  4. Jul 17, 2017
    • chrisgarrity's avatar
      Parameterize script · ba53b1c7
      chrisgarrity authored
      Making the script easier to reuse later.
      ba53b1c7
    • chrisgarrity's avatar
      Generate en.json from translation messages · 88171110
      chrisgarrity authored
      Using babel-plugin-react intl to extract messages from sources that use react-intl. It creates one file per component, that’s not ideal for translators.
      
      Transifex supports several different json formats. We picked the chrome i18n json format because it includes the ‘description’ and displays that to translators as instructions in the transifex UI.
      88171110
Loading