Browse Source

Merge branch 'master' into feature/translations-extraction-script

bertyhell/feature/translations-extraction-script
Louis Lam 4 years ago
parent
commit
5d13dbe518
  1. 12
      server/server.js
  2. 1
      src/languages/es-ES.js

12
server/server.js

@ -157,7 +157,17 @@ let needSetup = false;
* Cache Index HTML
* @type {string}
*/
let indexHTML = fs.readFileSync("./dist/index.html").toString();
let indexHTML = "";
try {
indexHTML = fs.readFileSync("./dist/index.html").toString();
} catch (e) {
// "dist/index.html" is not necessary for development
if (process.env.NODE_ENV !== "development") {
console.error("Error: Cannot find 'dist/index.html', did you install correctly?");
process.exit(1);
}
}
exports.entryPage = "dashboard";

1
src/languages/es-ES.js

@ -203,4 +203,5 @@ export default {
records: "registros",
"One record": "Un registro",
"Showing {from} to {to} of {count} records": "Mostrando desde {from} a {to} de {count} registros",
steamApiKeyDescription: "Para monitorear un servidor de juegos de Steam, necesita una clave Steam Web-API. Puede registrar su clave API aquí: ",
};

Loading…
Cancel
Save