Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic tests #84

Open
rodrigograca31 opened this issue May 11, 2023 · 1 comment
Open

Automatic tests #84

rodrigograca31 opened this issue May 11, 2023 · 1 comment

Comments

@rodrigograca31
Copy link
Collaborator

@fordkilleen

when I was updating this plugin I created a dummy cordova project.
something along the lines of:

cordova create test
cd test
cordova plugin add ../cordova-plugin-localization-strings
cordova platform add android
mkdir translations
cd translations
mkdir app
en.json

wrote

{
	"config_ios": {
		"NSCameraUsageDescription": "Take pictures",
		"CFBundleDisplayName": "Some App Name",
		"CFBundleName": "Some App Name"
	},
	"config_android": {
		"app_name": "Some App Name"
	},
	"app": {
		"HAVE_MAIL_TITLE": "You have mail.",
		"HAVE_MAIL_MSG": "%1$@ has you a message titled \\\"%2$@\\\"",
		"test": "test",
		"abc": "def",
		"mochi": "mochi",
	}
}
cordova prepare

and then verified that was properly written with

cat platforms/android/app/src/main/res/values/strings.xml
@rodrigograca31
Copy link
Collaborator Author

more on #83

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

No branches or pull requests

1 participant