Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

Different Language #57

Open
leribol opened this issue Nov 1, 2017 · 3 comments
Open

Different Language #57

leribol opened this issue Nov 1, 2017 · 3 comments

Comments

@leribol
Copy link

leribol commented Nov 1, 2017

Hi,
I want to change the language of the buttons as "cancel" and "done".
Is it possible or how.

Thanks.
lang

@Alb93
Copy link

Alb93 commented Dec 9, 2017

Same question for me.

1 similar comment
@fcampinho
Copy link

Same question for me.

@gerciljunio
Copy link

@Alb93 @fcampinho @leribol after looking at the packages that this plugin uses for both ios and android, I verified that the translations are all in the default structure of each system.

What did I do:

I installed the package https://github.com/kelvinhokk/cordova-plugin-localization-strings
and I created my own translation strings, based on the name of the strings that the packages use, in the end, the cordova-plugin-localization-strings package configuration file looks like this:

{
	"locale": {
		"ios": ["pt-BR"],
		"android": ["pt-rBR"]
	},
	"config_ios" : {
		"Photo Album": "Galeria de Fotos",
		"Camera": "Camêra",
		"Cancel": "Cancelar"
	},
	"config_android" : {
		"crop__saving": "Salvando imagem...",
		"crop__wait": "Por favor, aguarde...",
		"crop__pick_error": "Sem fontes de imagem disponíveis",
		"crop__done": "CONCLUIR",
		"crop__cancel": "CANCELAR"
	}
}

remembering that my default language is Brazilian Portuguese, but as described in the documentation of the cordova-plugin-localization-strings package you can create in as many languages as you want, for me it worked perfectly!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants