Skip to content

FES: some i18n improvements and add i18n support for parameter validation messages #4629

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 3 commits into from
Jun 14, 2020

Conversation

akshay-99
Copy link
Member

Resolves #4616
Resolves #4626

Also fixed one more bug I came across along the way ( included in the list below )

Changes:

  • Simplify friendlyParamError messages to the format mentioned in FES: Simplifying parameter validation messages #4626 .
    image

  • Add internationalization support for validateParameters messages.

  • Remove i18next, i18next-browser-languagedetector and the translation json files from the minified build, reducing minified library size from 637 KB to 587 KB.

  • Support incomplete translation files ( If a string is empty in a translation file, give the corresponding string from the default language file instead. ). Since the spanish translation file is incomplete, the translator used to return empty strings for some keys
    image

    Now it defaults to the corresponding English version when it encounters an empty string
    image

PR Checklist

Use the default language strings for keys which have empty values
in the translation file. ( i.e. when the translation file is
incomplete )
@akshay-99 akshay-99 force-pushed the akshay-i18n-validateParams branch from 443917c to 625a145 Compare June 12, 2020 01:36
@lmccart
Copy link
Member

lmccart commented Jun 12, 2020

<3 I have been dreaming about these particular updates for so long!

@processing processing deleted a comment from codecov-commenter Jun 12, 2020
@outofambit
Copy link
Contributor

i'm so happy to see this expanding!!

@stalgiag stalgiag self-requested a review June 12, 2020 21:39
Copy link
Contributor

@stalgiag stalgiag 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! I left one small question inline.

Copy link
Contributor

@stalgiag stalgiag left a comment

Choose a reason for hiding this comment

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

Thank you!!

@stalgiag stalgiag merged commit 3f0b2f0 into processing:master Jun 14, 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.

FES: Simplifying parameter validation messages FES: internationalization for validateParameters
4 participants