Skip to content
Snippets Groups Projects
  1. Nov 02, 2018
  2. Nov 01, 2018
  3. Oct 31, 2018
  4. Sep 14, 2018
  5. Sep 13, 2018
  6. Sep 04, 2018
  7. Jun 21, 2018
  8. 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
  9. 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
  10. Jun 14, 2018
    • chrisgarrity's avatar
      PR cleanup · 788af2d7
      chrisgarrity authored
      * refactor LanguageSelector to reuse MenuBarMenu
      * localize aria-labels on MenuBar
      788af2d7
  11. 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
  12. Apr 19, 2018
  13. Jul 21, 2017
  14. 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