-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(i18n): replace i18n package translator with custom translator
- Loading branch information
1 parent
1dc6b9b
commit bd4e99d
Showing
11 changed files
with
360 additions
and
323 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 |
---|---|---|
|
@@ -7,3 +7,4 @@ build | |
.markdown-viewer | ||
_test-directory | ||
_steps.md | ||
.localeEx |
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ _tests/ | |
.travis.yml | ||
.nyc_output/ | ||
.markdown-viewer | ||
.localeEx | ||
_test-directory |
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,136 @@ | ||
{ | ||
"answers": { | ||
"alreadyHave": "already have", | ||
"no": "no", | ||
"none": "None", | ||
"other": "Other", | ||
"unlicensed": "Unlicensed", | ||
"yes": "yes" | ||
}, | ||
"info": { | ||
"promptNotSupported": "Prompt cannot be rendered in the current environment", | ||
"somethingWrong": "Something has gone wrong" | ||
}, | ||
"questions": { | ||
"projectDesc": "description", | ||
"createSrcDir": "Create source directory", | ||
"specifySrcDir": "Specify your source directory", | ||
"linter": "Linter", | ||
"dependencies": "Dependencies, separated by spaces or commas: (dep@version dep2 dep3@version)", | ||
"devDependencies": "Dev dependencies, separated by spaces or commas: (dep@version dep2 dep3@version)", | ||
"github": { | ||
"configName": "Your name (git config user.name value)", | ||
"username": "Github username", | ||
"email": "Github email", | ||
"validEmailPrompt": "Please enter a valid email", | ||
"url": "Github project URL" | ||
}, | ||
"license": { | ||
"titler": "License", | ||
"owner": "License Owner/Organization name", | ||
"year": "License Year" | ||
}, | ||
"tests": { | ||
"framework": "Choose a test framework", | ||
"createDir": "Create test directory", | ||
"specifyDir": "Specify your test directory", | ||
"directory": "Test directory", | ||
"filesExt": "Test files extension", | ||
"unlistedFilesExt": "Specify your test files extension" | ||
}, | ||
"choices": { | ||
"project": { | ||
"header": "Project", | ||
"name": "name", | ||
"description": "description", | ||
"directory": "directory", | ||
"owner": "owner" | ||
}, | ||
"github": { | ||
"header": "GitHub", | ||
"username": "username", | ||
"email": "email", | ||
"url": "url" | ||
}, | ||
"license": { | ||
"header": "License", | ||
"owner": "owner", | ||
"name": "name", | ||
"year": "year" | ||
}, | ||
"tests": { | ||
"header": "Test", | ||
"framework": "framework", | ||
"extension": "extension", | ||
"directory": "directory" | ||
}, | ||
"linter": "Linter", | ||
"dependencies": "Dependencies", | ||
"devDependencies": "Dev dependencies", | ||
"srcDir": "Source directory", | ||
"review": "Please review selection", | ||
"proceed": "Proceed?" | ||
} | ||
}, | ||
"setup": { | ||
"creating": "Creating", | ||
"created": "created", | ||
"delayedOp": "This might take a while", | ||
"installing": "Installing", | ||
"installed": "installed", | ||
"git": { | ||
"initializing": "Initializing git...", | ||
"initialized": "Initialized empty git repository", | ||
"isRepo": "The specified directory is a git repository...", | ||
"isSkipping": "Skipping \"git init\"'", | ||
"creatingIgnoreFile": "Creating .gitignore file...", | ||
"ignoreFileCreated": ".gitignore file created" | ||
}, | ||
"npm": { | ||
"initializing": "Creating package.json...", | ||
"initialized": "package.json created", | ||
"hasPackageJson": "The specified directory already contains a package.json file...", | ||
"isSkipping": "skipping \"npm init\"", | ||
"installingDeps": "Installing dependencies", | ||
"installingDevDeps": "Installing dev dependencies", | ||
"depsInstalled": "Dependencies installed", | ||
"devDepsInstalled": "Dev dependencies installed", | ||
"updating": "Updating package.json", | ||
"updated": "package.json updated" | ||
}, | ||
"tests": { | ||
"settingUp": "Setting up tests", | ||
"setupComplete": "Tests setup complete", | ||
"creatingSamples": "Creating sample test files...", | ||
"samplesCreated": "Sample test files created", | ||
"shouldPass": "should pass", | ||
"helloWorld": "Hello world!" | ||
}, | ||
"directories": { | ||
"creatingSrcDir": "Creating source directory", | ||
"srcDirCreated": "Source directory created", | ||
"creatingTestDir": "Creating test directory", | ||
"testDirCreated": "Test directory created" | ||
}, | ||
"files": { | ||
"creatingReadme": "Creating README file", | ||
"readmeCreated": "README file created", | ||
"generatingLicense": "Generating license", | ||
"licenseGenerated": "License generated" | ||
}, | ||
"finalize": { | ||
"almostDone": "You are almost done", | ||
"setupEslint": "Please take a moment to setup ESLint.", | ||
"lintingErrors": "There appears to be some linting errors.", | ||
"checkLintingErrors": "Run \"npm run lint\" to check them", | ||
"allSet": "You are all set", | ||
"runTests": "To run your tests, run", | ||
"runCoverage": "To run tests with coverage reporting, run", | ||
"commit": "To commit your changes, run", | ||
"fixLintingErrors": "To fix linting errors, run", | ||
"firstRelease": "To run your first release, run", | ||
"subsequentRelease": "To run subsequent releases, run", | ||
"releaseDryRun": "To run release dry-run, run" | ||
} | ||
} | ||
} |
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,8 @@ | ||
{ | ||
"short": "en", | ||
"long": "English", | ||
"creator": { | ||
"username": "simplymichael", | ||
"url": "https://github.com/simplymichael" | ||
} | ||
} |
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,17 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const languages = {}; | ||
const files = fs.readdirSync(__dirname); | ||
|
||
for(let i = 0, len = files.length; i < len; i++) { | ||
const filename = path.basename(files[i], '.js'); | ||
|
||
// don't iclude this index.js file | ||
if(filename === 'index') { | ||
continue; | ||
} | ||
|
||
languages[filename] = require(`./${filename}`); | ||
} | ||
|
||
module.exports = languages; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.