-
Notifications
You must be signed in to change notification settings - Fork 414
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
crude i18n support #2539
crude i18n support #2539
Conversation
src/ui/component/app/view.jsx
Outdated
<Header /> | ||
<SideBar /> | ||
<Header language={language} /> | ||
<SideBar language={language} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seanyesmunt I did this to trigger re-renders when the language changes. Is this the proper way to do this [given the __
function is not a React component]?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this moment menu not work :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kodxana it should now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed on the standup, but I would move these to {header, sideBar}/index.js
src/ui/component/app/view.jsx
Outdated
theme: string, | ||
updateBlockHeight: () => void, | ||
toggleEnhancedLayout: () => void, | ||
enhancedLayout: boolean, | ||
}; | ||
|
||
class App extends React.PureComponent<Props> { | ||
componentWillMount() { | ||
// eslint-disable-next-line | ||
UNSAFE_componentWillMount() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be changed to componentDidMount
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments
src/ui/component/app/view.jsx
Outdated
<Header /> | ||
<SideBar /> | ||
<Header language={language} /> | ||
<SideBar language={language} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed on the standup, but I would move these to {header, sideBar}/index.js
This adds a basic language selector, stores the language setting, refreshes the UI on change, and adds the first polish language file.
Much of this should be improved for multiple language support and so there is a better ongoing workflow, but this should help @Madiator2011 continue his work (@jsigwart).