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

Add local language support #17

Merged
merged 4 commits into from
Jul 6, 2018
Merged

Add local language support #17

merged 4 commits into from
Jul 6, 2018

Conversation

sergei-zelinsky
Copy link
Contributor

Try to solve #13

@sergei-zelinsky
Copy link
Contributor Author

@lukasmartinelli, could you help me, please?

@sergei-zelinsky
Copy link
Contributor Author

Are there any updates on this?

Can I help or try to fix something?

index.js Outdated
@@ -34,7 +34,7 @@ function MapboxLanguage(options) {
}
};
this._excludedLayerIds = options.excludedLayerIds || [];
this.supportedLanguages = options.supportedLanguages || ['en', 'es', 'fr', 'de', 'ru', 'zh', 'ar', 'pt'];
this.supportedLanguages = options.supportedLanguages || ['local', 'en', 'es', 'fr', 'de', 'ru', 'zh', 'ar', 'pt'];
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better to use mul (the ISO 639 code for “multilingual”) to represent this option, as the iOS and macOS map SDKs do (documentation). That way, all the supportedLanguages values are valid IETF language tags, which will avoid edge cases when implementing #5.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fully agree with you.
Fixed it.

Thanks!

@1ec5 1ec5 mentioned this pull request Jul 3, 2018
Copy link
Contributor

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

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

Thanks!

@1ec5 1ec5 merged commit f205b93 into mapbox:master Jul 6, 2018
This pull request was closed.
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.

3 participants