forked from i18next/i18next-parser
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-organize broccoli tests for better isolation
- Loading branch information
1 parent
02cafa8
commit 8f71fa1
Showing
9 changed files
with
18 additions
and
19 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,2 +1,2 @@ | ||
test/broccoli/javascript.js | ||
test/broccoli/src/javascript.js | ||
test/templating/javascript.js |
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
const Funnel = require('broccoli-funnel') | ||
const i18nextParser = require('../dist/index').broccoli | ||
const i18nextParser = require('../../dist/index').broccoli | ||
|
||
const appRoot = 'broccoli' | ||
const appRoot = 'src' | ||
|
||
let i18n = new Funnel(appRoot, { | ||
files: ['handlebars.hbs', 'javascript.js'], | ||
annotation: 'i18next-parser', | ||
}) | ||
|
||
i18n = new i18nextParser([i18n], { | ||
output: 'broccoli/locales/$LOCALE/$NAMESPACE.json', | ||
output: 'src/locales/$LOCALE/$NAMESPACE.json', | ||
sort: true, | ||
}) | ||
|
||
module.exports = i18n |
File renamed without changes.
File renamed without changes.
13 changes: 6 additions & 7 deletions
13
test/broccoli/locales/en/translation.json → .../broccoli/src/locales/en/translation.json
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,13 +1,12 @@ | ||
{ | ||
"fifth_male": "", | ||
"first": "", | ||
"fourth": "", | ||
"fourth_male": "defaultValue", | ||
"second": "defaultValue", | ||
"second_male": "defaultValue", | ||
"third": "defaultValue", | ||
"third_female": "defaultValue", | ||
"fourth": "defaultValue", | ||
"fourth_male": "defaultValue", | ||
"fifth": "", | ||
"fifth_male": "", | ||
"seventh": "defaultValue", | ||
"sixth": "", | ||
"seventh": "defaultValue" | ||
"third": "{{var}} defaultValue", | ||
"third_female": "defaultValue" | ||
} |
File renamed without changes.
13 changes: 6 additions & 7 deletions
13
test/broccoli/locales/fr/translation.json → .../broccoli/src/locales/fr/translation.json
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,13 +1,12 @@ | ||
{ | ||
"fifth_male": "", | ||
"first": "", | ||
"fourth": "", | ||
"fourth_male": "defaultValue", | ||
"second": "defaultValue", | ||
"second_male": "defaultValue", | ||
"third": "defaultValue", | ||
"third_female": "defaultValue", | ||
"fourth": "defaultValue", | ||
"fourth_male": "defaultValue", | ||
"fifth": "", | ||
"fifth_male": "", | ||
"seventh": "defaultValue", | ||
"sixth": "", | ||
"seventh": "defaultValue" | ||
"third": "{{var}} defaultValue", | ||
"third_female": "defaultValue" | ||
} |
File renamed without changes.