Skip to content

Instantly share code, notes, and snippets.

@janhesters
Created September 23, 2018 20:01
Show Gist options
  • Save janhesters/b4d16c4622620c5acf4bad0da3899ce1 to your computer and use it in GitHub Desktop.
Save janhesters/b4d16c4622620c5acf4bad0da3899ce1 to your computer and use it in GitHub Desktop.
import LocalizedStrings from "react-native-localization";
let strings = new LocalizedStrings({
en: {
emailAddress: "Email address",
password: "Password",
invalidEmailFormat: "A valid email can only contain latin letters, numbers, '@' and '.'.",
emailRequired: "An email address is required.",
passwordRequired: "A password is required.",
passwordMinLength: "A secure password must be at least 8 characters long."
},
de: {
emailAddress: "Email Addresse",
password: "Passwort",
invalidEmailFormat:
"Eine valide Email enthält nur lateinische Buchstaben, Nummern, '@' und '.'.",
emailRequired: "Eine Email Addresse ist notwendig.",
passwordRequired: "Ein Passwort ist notwendig.",
passwordMinLength: "Ein sicheres Passwort muss mindestens 8 Zeichen lang sein."
}
});
export default strings;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment