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

Feat/spanish localization #6587

Merged
merged 7 commits into from
Feb 9, 2022

Conversation

anyulled
Copy link
Contributor

@anyulled anyulled commented Oct 27, 2021

Spanish translation of the Dashboard UI

Followed instructions on Internationalization

resolves #6582

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 27, 2021
@k8s-ci-robot
Copy link
Contributor

Welcome @anyulled!

It looks like this is your first PR to kubernetes/dashboard 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/dashboard has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 27, 2021
@k8s-ci-robot k8s-ci-robot added the do-not-merge/invalid-owners-file Indicates that a PR should not merge because it has an invalid OWNERS file in it. label Oct 27, 2021
i18n/locale_conf.json Outdated Show resolved Hide resolved
@floreks
Copy link
Member

floreks commented Oct 27, 2021

Please, extend also the supported languages list in the code.

const supportedLanguages: LanguageConfig[] = [
{
label: 'German',
value: 'de',
},
{
label: 'French',
value: 'fr',
},
{
label: 'English',
value: 'en',
},
{
label: 'Japanese',
value: 'ja',
},
{
label: 'Korean',
value: 'ko',
},
{
label: 'Chinese Simplified',
value: 'zh-Hans',
},
{
label: 'Chinese Traditional',
value: 'zh-Hant',
},
{
label: 'Chinese Traditional Hong Kong',
value: 'zh-Hant-HK',
},
];

@anyulled
Copy link
Contributor Author

anyulled commented Oct 27, 2021

Please, extend also the supported languages list in the code.

const supportedLanguages: LanguageConfig[] = [
{
label: 'German',
value: 'de',
},
{
label: 'French',
value: 'fr',
},
{
label: 'English',
value: 'en',
},
{
label: 'Japanese',
value: 'ja',
},
{
label: 'Korean',
value: 'ko',
},
{
label: 'Chinese Simplified',
value: 'zh-Hans',
},
{
label: 'Chinese Traditional',
value: 'zh-Hant',
},
{
label: 'Chinese Traditional Hong Kong',
value: 'zh-Hant-HK',
},
];

Sure, this change needs to be referenced in the internalization page too

@floreks
Copy link
Member

floreks commented Oct 27, 2021

@anyulled if you'd like to add a short sentence about this requirement there it would be great.

@anyulled
Copy link
Contributor Author

As part of the internationalization documentation, it says that I could set myself as an OWNER of this section in order to watch the changes. To be able to do that, I need to be part of the Kubernetes community. Would any of you @raelga @floreks @maciaszczykm please sponsor me to be part of the community?

Otherwise, I could remove myself from the OWNERS file

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/invalid-owners-file Indicates that a PR should not merge because it has an invalid OWNERS file in it. label Oct 27, 2021
@raelga
Copy link
Member

raelga commented Oct 27, 2021

Thanks @anyulled, working on the review as it's a quite extensive document :p

@raelga
Copy link
Member

raelga commented Oct 27, 2021

And about becoming a Kubernetes member, count with my endorsement. 👍🏻

i18n/locale_conf.json Outdated Show resolved Hide resolved
@shu-mutou
Copy link
Contributor

shu-mutou commented Dec 7, 2021

@anyulled, could you rebase and add yourself to OWNERS file?
@raelga, could you review i18n/es/messages.es.xlf?

@codecov
Copy link

codecov bot commented Jan 27, 2022

Codecov Report

Merging #6587 (2738e30) into master (34b8d11) will decrease coverage by 0.73%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6587      +/-   ##
==========================================
- Coverage   42.55%   41.82%   -0.74%     
==========================================
  Files         217       44     -173     
  Lines       10644     1241    -9403     
  Branches      177      179       +2     
==========================================
- Hits         4530      519    -4011     
+ Misses       5851      683    -5168     
+ Partials      263       39     -224     

Co-authored-by: Shu Muto <shu.mutow@nec.com>
@anyulled
Copy link
Contributor Author

hi, @shu-mutou I'm afraid I don't have an approver role in the project, I added myself in the past and the @k8s-ci-robot added the label do-not-merge/invalid-owners-file.

I'll try in the future if my role gets upgraded

@shu-mutou
Copy link
Contributor

You have been already k8s community member, so I think it's ok to add yourself to OWNERS file. Could you try it again?

@anyulled
Copy link
Contributor Author

anyulled commented Feb 1, 2022

You have already been a k8s community member, so I think it's ok to add yourself to the OWNERS file. Could you try it again?

It worked! thanks, now we're missing the LGTM & approved labels and we're good to go.

@gamba47
Copy link

gamba47 commented Feb 1, 2022

@anyulled looks fine to me.

@@ -0,0 +1,5 @@
approvers:
- raelga

Copy link
Contributor

Choose a reason for hiding this comment

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

Multiple approvers are preferred because the approver can't approve yourself.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, dashboard maintainer can not review each languages.

Copy link
Member

@raelga raelga Feb 2, 2022

Choose a reason for hiding this comment

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

Suggested change
- electrocucaracha

@electrocucaracha mind joining as approver?

@shu-mutou
Copy link
Contributor

Some new untranslated words have been added into i18n/messages.xlf during review.
Could you merge them into i18n/es/messages.es.xlf using npm fix and translate them?

@shu-mutou
Copy link
Contributor

Before conflict occur, merge this once.
Please keep to invite reviewers and update your translations in the new PR.

@shu-mutou
Copy link
Contributor

/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anyulled, shu-mutou

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 9, 2022
@k8s-ci-robot k8s-ci-robot merged commit ac85a90 into kubernetes:master Feb 9, 2022
@anyulled
Copy link
Contributor Author

anyulled commented Feb 9, 2022

Many thanks @shu-mutou @gamba47 @raelga @floreks @maciaszczykm !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spanish Translation
7 participants