FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Proposal to add language parameter to get result on preferred language. (iOS only for now, but already added the function in android as well ) by abadikaka · Pull Request #46 · devfd/react-native-geocoder · GitHub

This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Proposal to add language parameter to get result on preferred language. (iOS only for now, but already added the function in android as well ) - #46

Open
abadikaka wants to merge 4 commits into
devfd:masterfrom
abadikaka:feature/withlanguage
Open

Proposal to add language parameter to get result on preferred language. (iOS only for now, but already added the function in android as well )#46
abadikaka wants to merge 4 commits into
devfd:masterfrom
abadikaka:feature/withlanguage

Conversation

Copy link
Copy Markdown

User can put language like "en", "id", "en_US", or any formatted language code for set into user devices, then the geocoder will return result base on selected language.
Don't worry if will affect current device language. After set the language with selected language, i also put the language back to original language after get the result.
I create this after saw people had an issue on language, and i also need this feature, so i create this one.
hope will help the community :)

For now only iOS supported, but i have added the function in android as well but not yet fill the logic to change language base on the language parameter, anyone can fill in it pls fill it, while i also ask my friend who has android studio :p

Thanks ! any question pls comment or msg me abadi_kaka@yahoo.com thx

abadikaka commented May 6, 2017
edited
Loading

Copy link
Copy Markdown
Author

@devfd pls review thankss :)

Comment thread ios/RNGeocoder/RNGeocoder.h Outdated
@@ -1,5 +1,5 @@
#import <React/RCTBridgeModule.h>
#import <React/RCTConvert.h>
#import "RCTBridgeModule.h"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This will not compile >= RN 0.40

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Ok. will update

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@itinance btw i have put the back in latest commit, can u review on the latest commit not this one :)

Comment thread js/geocoder.js
if (!this.apiKey) { throw err; }
return GoogleApi.geocodePosition(this.apiKey, position);
});
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

There is a missing , on this line which causes an unexpected token error

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL