Skip to content
Snippets Groups Projects
  1. Sep 14, 2018
  2. Sep 13, 2018
  3. Sep 04, 2018
  4. Jun 21, 2018
  5. Jun 20, 2018
    • chrisgarrity's avatar
      Locales cleanup · 60a3dc3a
      chrisgarrity authored
      * updated locales reducer to include current messages and messagesByLocale (the previous all messages)
      * moved locales out of gui
      * include locales in the things exported by gui (index.js)
      60a3dc3a
  6. Jun 19, 2018
    • chrisgarrity's avatar
      Initial version of loading or switching language. · a0455422
      chrisgarrity authored
      Add `?locale=<localecode>` to load in a new langage.
      Add `?enable=language` to enable the language selector
      Or combine the two: `?enable=language&locale=<localecode>`
      Still accepts a hash, but requires that the hash be a sequence of digits.
      
      Added new locales reducer to gui:
      - initializes default  react-intl/localeData
      - initializes default locale messages for all locales
      - default locale is ‘en’ (can be overridden by URL)
      
      Removed dependency on react-intl-redux, added ConnectedIntlProvider (uses correct locale messages from redux based on current locale)
      a0455422
  7. Jun 14, 2018
    • chrisgarrity's avatar
      PR cleanup · 788af2d7
      chrisgarrity authored
      * refactor LanguageSelector to reuse MenuBarMenu
      * localize aria-labels on MenuBar
      788af2d7
  8. Jun 13, 2018
    • chrisgarrity's avatar
      Enable language selection menu · bc3df2c3
      chrisgarrity authored
      Allows the language selection menu to be active if `?enable=language` is in the URL, otherwise shows a ‘coming soon’ tooltip. This can also land on a branch if we don’t want that available on preview.
      
      - language menu opens if the globe is clicked
      - language menu closes if mouse is clicked anywhere outside the language selector
      - language list is imported from scratch-l10n
      - current locale is updated if another language is selected (i.e. the current language selected changes)
      
      Not in this PR:
      - styling of language selector
      - actually changing the messages!
      bc3df2c3
  9. Apr 19, 2018
  10. Jul 21, 2017
  11. 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
Loading