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

Fix to only localize the primary localization and not the fall-throug… #856

Merged
merged 5 commits into from
Nov 23, 2021

Conversation

sosthoff
Copy link
Contributor

@sosthoff sosthoff commented Nov 23, 2021

…h localizations

PRs must be submitted under the terms of our Contributor License Agreement CLA.

Fixes: #855

Pull request checklist:

  • Briefly describe the changes in this PR.
    - [ ] Include before/after visuals or gifs if this PR includes visual changes.
  • Write tests for all new functionality. If tests were not written, please explain why.
  • Add example if relevant.
    - [ ] Document any changes to public APIs.
  • Apply changelog label ('breaking change', 'bug 🪲', 'build', 'docs', 'feature 🍏', 'performance ⚡', 'testing 💯') or use the label 'skip changelog'
  • Add an entry inside this element for inclusion in the mapbox-maps-ios changelog: <changelog></changelog>.
  • Update the migration guide, API Docs, Markdown files - Readme, Developing, etc

Summary of changes

Reduces the programatically set localization to the primary localization, instead of overriding all fallbacks with the primary.
Eg. layer defines: name_en, name_de, name - localizeLabales("ko") no longer results in: name_ko, name_ko, name - but in name_ko, name_de, name.

This should help until we can have: #653
to hopefully also programatically set all fallback languages.

No tests added, since existing cover the previously expected behavior.

User impact (optional)

a customer with be able ship their v10 migration

@CLAassistant
Copy link

CLAassistant commented Nov 23, 2021

CLA assistant check
All committers have signed the CLA.

@sosthoff
Copy link
Contributor Author

My first PR here 😀
I assume migration guide, API Docs, Markdown files can be skipped , trying to identify where to add the label and changelog entry 😅

@sosthoff sosthoff added the bug 🪲 Something is broken! label Nov 23, 2021
@sosthoff sosthoff merged commit 8f2f277 into main Nov 23, 2021
@sosthoff sosthoff deleted the sosthoff/layer-localization branch November 23, 2021 19:48
macdrevx pushed a commit that referenced this pull request Dec 2, 2021
#856)

* Fix to only localize the primary localization and not the fall-through localizations
macdrevx added a commit that referenced this pull request Dec 2, 2021
* Fix StyleColor tests for iOS 12 and lower (#847)

* Make persistent layer APIs non-experimental (#849)

* Generate private module interface (#854)

* Fix changelog (#857)

* Fix to only localize the primary localization and not the fall-throug… (#856)

* Exclude swiftlint config from packaged artifact (#859)

* View Annotations follow-up (#846)

* Reduce geometry wrapping using GeometryConvertible (#861)

* Update baselines to new format (#863)

* Delay adding puck images until adding layer (#862)

* Add missing StyleColor support for exponentials (#873)

* Fix attribution dialog initialization (#865)

* Add v10.0.2 to CHANGELOG.md (#883)

* Improve panning behavior on pitched maps (#888)

* Add pinch gesture tradeoff configuration option (#890)

* Update MapboxCoreMaps and MapboxCommon (#891)

* Update changelog and bump version for v10.2.0-rc.1 (#892)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something is broken!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Localisation replaces all instances of fallback languages of a layer
3 participants