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

[produce,deliver,spaceship] Support for new AppStore Connect languages: Catalan, Croatian, Czech, Hindi, Hungarian, Polish, Romanian, Slovak, and Ukrainian #14110

Merged
merged 6 commits into from
Feb 12, 2019

Conversation

cleanbit
Copy link
Contributor

@cleanbit cleanbit commented Jan 21, 2019

  • New languages:
    Catalan, Croatian, Czech, Hindi, Hungarian, Polish, Romanian, Slovak, and Ukrainian

Checklist

  • I've run bundle exec rspec from the root directory to see all new and existing tests pass
  • I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.

Motivation and Context

New App Store Connect languages were added some time ago and fastlane doesn't support them yet.

Description

Added new language constants and language mappings


close #13938

* New languages:
	Catalan, Croatian, Czech, Hindi, Hungarian, Polish, Romanian, Slovak, and Ukrainian
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

@cleanbit
Copy link
Contributor Author

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

@janpio janpio changed the title Support for new AppStore Connect languages (#13938) [produce,deliver,spaceship] Support for new AppStore Connect languages: Catalan, Croatian, Czech, Hindi, Hungarian, Polish, Romanian, Slovak, and Ukrainian Jan 21, 2019
@janpio
Copy link
Member

janpio commented Jan 21, 2019

Awesome @Zymantas! Where did you get/extract the language codes to add to your files? Anything else worth writing down for future updates of these files?

@cleanbit
Copy link
Contributor Author

I've taken language codes from the Xcode project localisations (where you add/remove translated languages of your app) and put them here. As I hoped, it worked on both platforms - iOS and macOS! :)

I didn't find anything that's missing with these new languages, but I'll be retesting again when real-world translations will be ready (sometime next week as our translators promised). I'll let you know if this won't be merged till then.

@janpio
Copy link
Member

janpio commented Jan 21, 2019

Not on macOS right now, could you maybe post a screenshot of the screen where you got the language codes from? Would appreciate it. Thanks.

@cleanbit
Copy link
Contributor Author

Also, current fastlane language codes are identical to those in Xcode. So, I suppose all should be fine with the new ones as well.

screenshot 2019-01-21 at 16 33 57

Copy link
Member

@joshdholtz joshdholtz left a comment

Choose a reason for hiding this comment

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

One small change request! I think 😇

spaceship/lib/assets/languageMapping.json Outdated Show resolved Hide resolved
@joshdholtz
Copy link
Member

@janpio This can also be achieve by running Spaceship::Tunes.client.available_languages.sort (for getting the language codes at least) 💪 🚀

@janpio
Copy link
Member

janpio commented Jan 23, 2019

Nice @joshdholtz - we should add that as a comment in the code where it can be used to "refresh" the list.

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

@janpio
Copy link
Member

janpio commented Jan 24, 2019

Do we maybe also want to add comments that "interlink" these 3 files/locations @joshdholtz? Because if you update one of them, you should always update the others, correct? Can we also add some information in a comment where the other data comes from?

@joshdholtz
Copy link
Member

Aye aye! Can do can do 💪

@joshdholtz
Copy link
Member

@janpio Updated with more info and link to this PR as an example 😊

@janpio
Copy link
Member

janpio commented Jan 25, 2019

Ok, I fixed the comment a bit and added a similar one to the second file.

What about the JSON - we can't just add a comment there :/ What do we do there?

But ohoh, I found another one: https://github.com/fastlane/fastlane/blob/master/spaceship/lib/assets/languageMappingReadable.json

@joshdholtz
Copy link
Member

@janpio I did some searching through there and it doens't look like https://github.com/fastlane/fastlane/blob/master/spaceship/lib/assets/languageMappingReadable.json actually gets used anywhere. There are two methods that reference it (from_itc_readable_to_itc and from_itc_to_itc_readable) but these actually don't get referenced anywhere either. I think its okay to not edit this language file and probably also okay to remove that file and those methods in a future PR? 🤔

Also going to ping @KrauseFx since he add this file back in 2015 😉 - fastlane-old/spaceship@dd51003#diff-355ef28abf38992915b1a2e1724703eb

@janpio
Copy link
Member

janpio commented Jan 31, 2019

Deleteable code is best code ❌ 💀

@joshdholtz
Copy link
Member

Let's ship this 💪

@joshdholtz joshdholtz merged commit 19779db into fastlane:master Feb 12, 2019
@fastlane-bot
Copy link

Hey @Zymantas 👋

Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉
The code change now lives in the master branch, however it wasn't released to RubyGems yet.
We usually ship about once a week, and your PR will be included in the next one.

Please let us know if this change requires an immediate release by adding a comment here 👍
We'll notify you once we shipped a new release with your changes 🚀

@@ -201,6 +243,12 @@
"es"
]
},
{
"locale": "sk-SK",
"name": "Romanian",
Copy link
Contributor

Choose a reason for hiding this comment

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

@joshdholtz This should be Slovak

@janpio
Copy link
Member

janpio commented Feb 14, 2019

Ohoh. Can you please create another PR? Thanks.

@cleanbit
Copy link
Contributor Author

Ohhh :(. Since this is my PR, I'll create new one with a fix.

@fastlane-bot
Copy link

Congratulations! 🎉 This was released as part of fastlane 2.116.1 🚀

@fastlane fastlane locked and limited conversation to collaborators Apr 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New App Store Connect languages
6 participants