Skip to content
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
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

abadikaka
Copy link

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 [email protected] thx

@abadikaka
Copy link
Author

abadikaka commented May 6, 2017

@devfd pls review thankss :)

@@ -1,5 +1,5 @@
#import <React/RCTBridgeModule.h>
#import <React/RCTConvert.h>
#import "RCTBridgeModule.h"
Copy link

Choose a reason for hiding this comment

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

This will not compile >= RN 0.40

Copy link
Author

Choose a reason for hiding this comment

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

Ok. will update

Copy link
Author

Choose a reason for hiding this comment

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

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

if (!this.apiKey) { throw err; }
return GoogleApi.geocodePosition(this.apiKey, position);
});
}

Choose a reason for hiding this comment

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

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

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