Giter Club home page Giter Club logo

activate-rewrite's People

Contributors

kelimuttu avatar lkappeler avatar michaelkohler avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kelimuttu

activate-rewrite's Issues

Allow language links

We should allow language links such as /en-US/subsite or /es/subsite which then directly switch the language to the requested language. If the language is not available, it should fall back to EN.

Setup Pontoon

This task can't be done now, we will need to move to the official repo first.

  • Decide on initial locales
  • Get project listed on Pontoon
  • Give permissions to Pontoon on repo
  • Remove pseudo ES localizations
  • Get admin access on Pontoon to enable new locales
  • Define process on when locales are ready to be enabled on the site

Header and footer bug in webkit

Found a couple of bug in webkit view today:

  • The header logo is stretched

screen shot 2018-07-11 at 23 13 03

- Language switcher in the footer is not aligned in mobile view

screen shot 2018-07-11 at 23 12 37

Language selector is not updated for locale URLs

The language selector at the bottom is not persistent, if you set it to es and go to a en-US link it will stay in Spanish but with the option in en-US.

Also if you refresh the website, it will be in English.

screenshot 38

Open Questions for Pontoon

  • Do we need to provide an EN-copy/empty locale.ftl for new languages? Do we need to request them or can Pontoon be enabled for all locales and we get what we get?
  • If there are new EN strings, do they need to be added the same way to the other locale files or does Pontoon pick them up and offers them for translation? How can we handle language fallback of a single string if we don't add to the other locales ftl files without having fallbacks in the HTML as in https://github.com/projectfluent/fluent.js/blob/master/fluent-react/examples/fallback-sync/src/App.js#L20? If not, is there a way to automatically do the placeholder fallbacks (so we don't need to change the placeholder and the EN string if we change something?)
  • If there is a string change, does Pontoon pick it up or do we need to modify the key for it to be picked up?
  • What do we need to enable for Pontoon to work?
  • Is there anything special to notice when using Pontoon with Fluent?
  • Is there a GitHub bot that posts issues once a language has >X% translations?

Use build step to automatically inject text placeholders

Currently we have the following issue: we have to have placeholders in the JSX files to make sure we show the EN text if loading the localization file (or something along the way) fails. This means that any EN update needs to be in two places: 1) placeholder in JSX, 2) en-US.ftl file.

It would be great if we could delete all placeholder texts in the source and have a build step that automatically injects the translations as fallback. This could be rather tough though as this build step would need to understand FTL.

Happy to review PRs and/or answer questions around this if somebody wants to give this a shot :)

Integrate Logo

I've asked @elioqoshi for an updated logo which fits the new style (same as new Reps logo) and matching the blue we use.

Fix Footer CSS

Currently the footer has some inconsistencies:

  • The two borders to separate the logo and the language switcher are not the same
  • The Logo and Language switcher are not aligned centered compared to the description
  • Footer should always be at the bottom (currently it's not if there is not enough content to fill the height of the screen)
  • Better mobile view

Prevent Font Loading from flashing

When reloading the page we first display the fallback font and then once loaded, Zilla Slab Highlight is shown. This is quite a remarkable flash on the screen and we should try to avoid this.

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.