Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
160554e
commit 6faf91f
Showing
8 changed files
with
223 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,83 @@ | ||
{ | ||
"name": "Login", | ||
"version": "1.0.0", | ||
"description": "Login app template with Framework7 + Vue + Webpack2 + Cordova", | ||
"license": "MIT", | ||
"scripts": { | ||
"hot-dev": "cordova run browser -- --lr", | ||
"hot-dev-ios": "cordova run ios -- --lr && npm run hot-dev", | ||
"hot-dev-android": "cordova run android -- --lr && npm run hot-dev", | ||
"generate-icon-splash": "splashicon-generator --imagespath='src/static'" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/daniegarcia254/Framework7-Vue-Webpack-Cordova.git" | ||
}, | ||
"keywords": [ | ||
"ios", | ||
"webpack", | ||
"framework7", | ||
"vue", | ||
"vuejs", | ||
"material", | ||
"mobile", | ||
"app", | ||
"f7" | ||
], | ||
"dependencies": { | ||
"cordova-plugin-splashscreen": "^4.0.3", | ||
"cordova-plugin-whitelist": "^1.3.2", | ||
"framework7": "1.6.0", | ||
"framework7-icons": "^0.8.9", | ||
"framework7-vue": "^0.9.1", | ||
"nunito-fontface": "^0.7.1", | ||
"vue": "^2.3.3" | ||
}, | ||
"devDependencies": { | ||
"cheerio": "^0.22.0", | ||
"chokidar": "^1.6.1", | ||
"clean-webpack-plugin": "^0.1.15", | ||
"css-loader": "^0.27.3", | ||
"device.js": "git+https://github.com/matthewhudson/device.js.git", | ||
"epipebomb": "^1.0.0", | ||
"extract-text-webpack-plugin": "^2.1.0", | ||
"file-loader": "^0.10.1", | ||
"html-loader": "^0.4.5", | ||
"html-webpack-plugin": "^2.28.0", | ||
"node-sass": "^4.5.0", | ||
"path": "^0.12.7", | ||
"sass-loader": "^6.0.3", | ||
"style-loader": "^0.13.2", | ||
"svg-url-loader": "^2.0.2", | ||
"uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony-v2.8.22", | ||
"uglifyjs-webpack-plugin": "^0.3.0", | ||
"url-loader": "^0.5.8", | ||
"vue-hot-reload-api": "^2.0.11", | ||
"vue-html-loader": "^1.2.4", | ||
"vue-loader": "^11.1.4", | ||
"vue-style-loader": "^3.0.1", | ||
"vue-template-compiler": "^2.2.4", | ||
"webpack": "^2.2.1", | ||
"webpack-dev-server": "^2.4.1" | ||
}, | ||
"engines": { | ||
"node": ">= 4.0.0", | ||
"npm": ">= 3.0.0" | ||
}, | ||
"browserlist": [ | ||
"> 1%", | ||
"last 2 versions", | ||
"not ie <= 8" | ||
], | ||
"cordova": { | ||
"plugins": { | ||
"cordova-plugin-whitelist": {}, | ||
"cordova-plugin-splashscreen": {} | ||
"name": "Login", | ||
"version": "1.0.0", | ||
"description": "Login app template with Framework7 + Vue + Webpack2 + Cordova", | ||
"license": "MIT", | ||
"scripts": { | ||
"hot-dev": "cordova run browser -- --lr", | ||
"hot-dev-ios": "cordova run ios -- --lr && npm run hot-dev", | ||
"hot-dev-android": "cordova run android -- --lr && npm run hot-dev", | ||
"generate-icon-splash": "splashicon-generator --imagespath='src/static'" | ||
}, | ||
"platforms": [] | ||
} | ||
} | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/daniegarcia254/Framework7-Vue-Webpack-Cordova.git" | ||
}, | ||
"keywords": [ | ||
"ios", | ||
"webpack", | ||
"framework7", | ||
"vue", | ||
"vuejs", | ||
"material", | ||
"mobile", | ||
"app", | ||
"f7" | ||
], | ||
"dependencies": { | ||
"cordova-browser": "^4.1.0", | ||
"cordova-plugin-splashscreen": "^4.0.3", | ||
"cordova-plugin-whitelist": "^1.3.2", | ||
"framework7": "1.6.0", | ||
"framework7-icons": "^0.8.9", | ||
"framework7-vue": "^0.9.1", | ||
"nunito-fontface": "^0.7.1", | ||
"vue": "^2.3.3", | ||
"vue-i18n": "^7.0.1" | ||
}, | ||
"devDependencies": { | ||
"cheerio": "^0.22.0", | ||
"chokidar": "^1.6.1", | ||
"clean-webpack-plugin": "^0.1.15", | ||
"css-loader": "^0.27.3", | ||
"device.js": "git+https://github.com/matthewhudson/device.js.git", | ||
"epipebomb": "^1.0.0", | ||
"extract-text-webpack-plugin": "^2.1.0", | ||
"file-loader": "^0.10.1", | ||
"html-loader": "^0.4.5", | ||
"html-webpack-plugin": "^2.28.0", | ||
"node-sass": "^4.5.0", | ||
"path": "^0.12.7", | ||
"sass-loader": "^6.0.3", | ||
"style-loader": "^0.13.2", | ||
"svg-url-loader": "^2.0.2", | ||
"uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony-v2.8.22", | ||
"uglifyjs-webpack-plugin": "^0.3.0", | ||
"url-loader": "^0.5.8", | ||
"vue-hot-reload-api": "^2.0.11", | ||
"vue-html-loader": "^1.2.4", | ||
"vue-loader": "^11.1.4", | ||
"vue-style-loader": "^3.0.1", | ||
"vue-template-compiler": "^2.2.4", | ||
"webpack": "^2.2.1", | ||
"webpack-dev-server": "^2.4.1" | ||
}, | ||
"engines": { | ||
"node": ">= 4.0.0", | ||
"npm": ">= 3.0.0" | ||
}, | ||
"browserlist": [ | ||
"> 1%", | ||
"last 2 versions", | ||
"not ie <= 8" | ||
], | ||
"cordova": { | ||
"plugins": { | ||
"cordova-plugin-whitelist": {}, | ||
"cordova-plugin-splashscreen": {} | ||
}, | ||
"platforms": [ | ||
"browser" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"main": { | ||
"login":{ | ||
"fb": "Log in with Facebook", | ||
"email": "Log in with your email" | ||
}, | ||
"or":"or", | ||
"register":{ | ||
"title":"Register now!", | ||
"message":"It's free and you will have<br>access to all the features", | ||
"btn":"Don't have an account? Register!" | ||
} | ||
}, | ||
"login":{ | ||
"placeholders":{ | ||
"email":"Email", | ||
"password":"Password" | ||
}, | ||
"terms_and_privacy":{ | ||
"message": "When Sign Up or Log in, you accept our", | ||
"terms":"Terms and Condition", | ||
"conj": " and our ", | ||
"privacy":"Privacy Policy" | ||
}, | ||
"btn": "Log in" | ||
}, | ||
"register":{ | ||
"placeholders":{ | ||
"name":"Name and Surname", | ||
"email":"Email", | ||
"password":"Password" | ||
}, | ||
"password":{ | ||
"conditions":"(Password should be at least 8 characters length)" | ||
}, | ||
"terms_and_privacy":{ | ||
"message": "When Sign Up, you accept our", | ||
"terms":"Terms and Condition", | ||
"conj": " and our ", | ||
"privacy":"Privacy Policy" | ||
}, | ||
"btn": "Sign Up" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"main": { | ||
"login":{ | ||
"fb": "Entrar con Facebook", | ||
"email": "Entrar con email" | ||
}, | ||
"or": "o", | ||
"register":{ | ||
"title":"¡Regístrate ahora!", | ||
"message":"Es gratis y tendrás acceso<br>a todas las características", | ||
"btn":"¿No tienes cuenta? ¡Regístrate!" | ||
} | ||
}, | ||
"login":{ | ||
"placeholders":{ | ||
"email":"Email", | ||
"password":"Contraseña" | ||
}, | ||
"terms_and_privacy":{ | ||
"message": "Al acceder con tu cuenta, aceptas nuestros", | ||
"terms":"Términos y Condiciones", | ||
"conj": " y nuestra ", | ||
"privacy":"Política de Privacidad" | ||
}, | ||
"btn": "Entrar" | ||
}, | ||
"register":{ | ||
"placeholders":{ | ||
"name":"Nombre y apellidos", | ||
"email":"Email", | ||
"password":"Contraseña" | ||
}, | ||
"password":{ | ||
"conditions":"(La contraseña debe tener al menos 8 caracteres)" | ||
}, | ||
"terms_and_privacy":{ | ||
"message": "Al registrarte, aceptas nuestros", | ||
"terms":"Términos y Condiciones", | ||
"conj": " y nuestra ", | ||
"privacy":"Política de Privacidad" | ||
}, | ||
"btn": "Registrar" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import Vue from 'vue'; | ||
import VueI18n from 'vue-i18n'; | ||
|
||
Vue.use(VueI18n); | ||
|
||
console.log("LANGUAGE", window.navigator.userLanguage || window.navigator.language); | ||
|
||
const i18n = new VueI18n({ | ||
locale: window.navigator.userLanguage || window.navigator.language, | ||
fallbackLocale: 'en', | ||
messages: { | ||
'en': require('./en.json'), | ||
'es': require('./es.json') | ||
} | ||
}); | ||
|
||
if (module.hot) { | ||
module.hot.accept(['./en.json', './es.json'], () => { | ||
i18n.setLocaleMessage('en', require('./en.json')); | ||
i18n.setLocaleMessage('es', require('./es.json')); | ||
console.log('hot reload', this, arguments); | ||
}); | ||
} | ||
|
||
export default i18n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.