Git Product home page Git Product logo

Comments (3)

Alb93 avatar Alb93 commented on July 18, 2024

Same question for me.

from cordova-plugin-crop.

fcampinho avatar fcampinho commented on July 18, 2024

Same question for me.

from cordova-plugin-crop.

gerciljunio avatar gerciljunio commented on July 18, 2024

@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!

from cordova-plugin-crop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.