-
Notifications
You must be signed in to change notification settings - Fork 171
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
I18n manage current locale in luigi #635
I18n manage current locale in luigi #635
Conversation
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.
Well done!
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.
Please see my comments below.
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.
Requested changes implemented, please review again, thanks!
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.
Very good job!!!
# Conflicts: # core/package.json # core/src/core-api/index.js # docs/luigi-core-api.md
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.
Some comments added
client/luigi-client.d.ts
Outdated
getCurrentLocale: () => string; | ||
|
||
/** | ||
* Sets current locale to the given one. |
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.
* Sets current locale to the given one. | |
* Sets current locale to the specified one. |
client/src/uxManager.js
Outdated
} | ||
|
||
/** | ||
* Sets current locale to the given one. |
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.
* Sets current locale to the given one. | |
* Sets current locale to the specified one. |
core/src/core-api/i18n.js
Outdated
import { GenericHelpers } from '../utilities/helpers'; | ||
|
||
/** | ||
* Localization related functions. |
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.
* Localization related functions. | |
* Localization-related functions. |
core/src/core-api/i18n.js
Outdated
} | ||
|
||
/** | ||
* Sets current locale to the given one. |
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.
* Sets current locale to the given one. | |
* Sets current locale to the specified one. |
core/src/core-api/i18n.js
Outdated
} | ||
|
||
/** | ||
* Register a listener for locale changes |
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.
* Register a listener for locale changes | |
* Registers a listener for locale changes. |
core/src/core-api/i18n.js
Outdated
} | ||
|
||
/** | ||
* De-register a listener for locale changes |
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.
* De-register a listener for locale changes | |
* Unregisters a listener for locale changes. |
core/src/core-api/i18n.js
Outdated
import { GenericHelpers } from '../utilities/helpers'; | ||
|
||
/** | ||
* Localization related functions. |
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.
* Localization related functions. | |
* Localization-related functions. |
core/src/core-api/i18n.js
Outdated
} | ||
|
||
/** | ||
* Sets current locale to the given one. |
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.
* Sets current locale to the given one. | |
* Sets current locale to the specified one. |
core/src/core-api/i18n.js
Outdated
} | ||
|
||
/** | ||
* Register a listener for locale changes |
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.
* Register a listener for locale changes | |
* Registers a listener for locale changes. |
core/src/core-api/i18n.js
Outdated
} | ||
|
||
/** | ||
* De-register a listener for locale changes |
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.
* De-register a listener for locale changes | |
* Unregisters a listener for locale changes. |
# Conflicts: # client/src/lifecycleManager.js
No description provided.