Skip to content

Minimal Viable Navigation Menu #1510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jul 31, 2020
Merged

Conversation

oruburos
Copy link
Collaborator

@oruburos oruburos commented Jul 22, 2020

  • I18Next configuration leaning on default separator and namespace
  • use of withTranslation HOC is simplified by avoiding the use of parameters

These two aforementioned changes solve a double fetching that it is happening in the web editor.

But affects the keys that are present at the moment, so another change is present in this PR ( Related to #1492 `)

  • Translations keys use a nested naming structure.
    Components like Nav, Preferences, About, KeyboardShortcut and Toast (among others) are encapsulated in a prefix.

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • is from a uniquely-named feature branch and has been rebased on top of the latest master. (If I was asked to make more changes, I have made sure to rebase onto master then too)
  • is descriptively named `

Translation with new namespace
I18Next configuration leaning on default separator and namespace

Broom: i18n + debug:false
@catarak
Copy link
Member

catarak commented Jul 22, 2020

Yay!!!! @andrewn I'll let you review this one?

Copy link
Member

@andrewn andrewn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking really good. I've left some questions for you in the code.

@andrewn
Copy link
Member

andrewn commented Jul 22, 2020

Also, can you remove the commented out code in the About box. I checked with @catarak and she said it's ok.

I think it's good not to have untranslated stuff as you convert everything!

Thanks!

oruburos added 8 commits July 22, 2020 17:32
Test entry for Toolbar.test.jsx
About : broom About lines 17-26
Nav component : changes in keys
KeyboardShortcutModal.jsx: Key now in Common
Labels included in translations.json
Labels included in translations.json
Labels included in translations.json
Labels included in translations.json
Snapshot updated npm run test -- -u
Updated names to call the labels
Common namespace without currently used entries
@oruburos
Copy link
Collaborator Author

Hi @andrewn , I'm updating the PR.

oruburos added 2 commits July 30, 2020 13:51
Missing Common.p5logoARIA key
Deleting commented line 78
@andrewn
Copy link
Member

andrewn commented Jul 30, 2020

StopSketch doesn't look translated in English...?

Screenshot 2020-07-30 at 15 13 21

@@ -10,31 +10,21 @@ function About(props) {
return (
<div className="about__content">
<Helmet>
<title>p5.js Web Editor | About </title>
<title>p5.js Web Editor | {t('About.TitleHelmet')} </title>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the browser's title bar this shows:

p5.js Web Editor | p5.js Web Editor | About

@andrewn
Copy link
Member

andrewn commented Jul 30, 2020

I think this key needs to be updated...

Screenshot 2020-07-30 at 15 19 05

@andrewn
Copy link
Member

andrewn commented Jul 30, 2020

@oruburos A couple of small things to fix then I think we're good to go!

Copy link
Member

@andrewn andrewn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@andrewn andrewn merged commit 05e43c7 into processing:develop Jul 31, 2020
@catarak
Copy link
Member

catarak commented Aug 3, 2020

🎉 🎉 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants