dpa99c / phonegap-launch-navigator

Phonegap/Cordova plugin which launches native route navigation apps for Android, iOS and Windows
369 stars 131 forks source link

Good way to translate #174

Closed nitrique closed 6 years ago

nitrique commented 6 years ago

Hi, In first, thank you so much for your work !

Can we have a good method to translate this:

var DEFAULT_appSelectionDialogHeaderText = "Select app for navigation",
    DEFAULT_appSelectionCancelButtonText = "Cancel",
    DEFAULT_rememberChoicePromptDialogHeaderText = "Remember your choice?",
    DEFAULT_rememberChoicePromptDialogBodyText = "Use the same app for navigating next time?",
    DEFAULT_rememberChoicePromptDialogYesButtonText = "Yes",
    DEFAULT_rememberChoicePromptDialogNoButtonText = "No";

Nicolas

dpa99c commented 6 years ago

This is documented in the options for navigate(), for example:

launchnavigator.navigate(destination, {
    appSelection: {
        dialogHeaderText: "Select app for navigation",
        cancelButtonText: "Cancel",
        rememberChoice: {
            prompt: {
                headerText: "Remember your choice?",
                bodyText: "Use the same app for navigating next time?",
                yesButtonText: "Yes",
                noButtonText: "No"
            }
        }
    }
});