-
Notifications
You must be signed in to change notification settings - Fork 51
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
Conversation
@lukasmartinelli, could you help me, please? |
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']; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Try to solve #13