Skip to content
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

Translate message "Nothing to show" #319

Merged
merged 9 commits into from
Jul 20, 2021
Merged

Conversation

abaliunov-sc
Copy link
Contributor

@abaliunov-sc abaliunov-sc commented Jul 12, 2021

@abaliunov-sc abaliunov-sc changed the title Translate message "Nothing to show" #305 Translate message "Nothing to show" Jul 12, 2021
@@ -39,6 +43,7 @@ const translations = {
};

export default function getMessage(locale, key, params) {
console.log(locale, key, params);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure that we need to log it for every function call. Maybe remove it?

Copy link

@ddivin-sc ddivin-sc left a comment

Choose a reason for hiding this comment

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

Please, fix my claims

@@ -2,10 +2,14 @@ const translations = {
en: {
'common.Toolbar.moveForward': 'Move forward',
'common.Toolbar.moveBack': 'Move back',
'nothingToShow': 'Nothing to show',

Choose a reason for hiding this comment

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

Please, rename the key to 'common.NoFilesFoundStub.title' according to convention in the issue https://opuscapita.atlassian.net/browse/EPROC-20549

@@ -2,10 +2,14 @@ const translations = {
en: {
'common.Toolbar.moveForward': 'Move forward',
'common.Toolbar.moveBack': 'Move back',
'nothingToShow': 'Nothing to show',
'useContextMenu': 'Use toolbar or context menu to perform available actions'

Choose a reason for hiding this comment

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

Please, rename the key to 'common.NoFilesFoundStub.message' according to convention in the issue https://opuscapita.atlassian.net/browse/EPROC-20549

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@estambakio-sc estambakio-sc left a comment

Choose a reason for hiding this comment

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

LGTM

Consider adding translations for other languages too https://github.com/OpusCapita/filemanager/blob/4c6ea274d199a3e15d163ce1bb86fb5bf3146631/packages/client-react/src/translations.js or rename this PR to Translate message "Nothing to show" into French

@estambakio-sc estambakio-sc merged commit 375170f into master Jul 20, 2021
@estambakio-sc estambakio-sc deleted the issue-304/nothing-to-show branch July 20, 2021 08:14
@estambakio-sc
Copy link
Contributor

Translated into Fr, De, Ru. Messages in other languages will be added by @amotuz-sc later.

@achernyakevich-sc achernyakevich-sc linked an issue Jul 20, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translate message "Nothing to show"
5 participants