-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test fixture for fixing translations
- Loading branch information
Showing
10 changed files
with
155 additions
and
6 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
7 changes: 7 additions & 0 deletions
7
fixtures/remove-unused-translations-nested/app/controllers/application.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Controller from '@ember/controller'; | ||
|
||
export default Controller.extend({ | ||
foo: computed('intl.locale', function() { | ||
return this.intl.t('js-translation'); | ||
}), | ||
}); |
2 changes: 2 additions & 0 deletions
2
fixtures/remove-unused-translations-nested/app/templates/application.hbs
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,2 @@ | ||
{{t "hbs-translation"}} | ||
{{t "parent.secondChild"}} |
12 changes: 12 additions & 0 deletions
12
fixtures/remove-unused-translations-nested/translations/de.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"hbs-translation": "Lenkstage", | ||
"js-translation": "Affentheater", | ||
"foo": "BARR!", | ||
"extra": "drei", | ||
"parent": { | ||
"child": { | ||
"unusedKey": "unused Key", | ||
}, | ||
"secondChild": "usedKey" | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
fixtures/remove-unused-translations-nested/translations/en.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"hbs-translation": "HBS!", | ||
"js-translation": "JS!", | ||
"foo": "bar", | ||
"parent": { | ||
"child": { | ||
"unusedKey": "unused Key", | ||
}, | ||
"secondChild": "usedKey" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
fixtures/remove-unused-translations/app/controllers/application.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Controller from '@ember/controller'; | ||
|
||
export default Controller.extend({ | ||
foo: computed('intl.locale', function() { | ||
return this.intl.t('js-translation'); | ||
}), | ||
}); |
1 change: 1 addition & 0 deletions
1
fixtures/remove-unused-translations/app/templates/application.hbs
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 @@ | ||
{{t "hbs-translation"}} |
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,7 @@ | ||
{ | ||
"hbs-translation": "Lenkstage", | ||
"js-translation": "Affentheater", | ||
"foo": "BARR!", | ||
"extra": "drei", | ||
"foo.bar.unnested": "unnested key" | ||
} |
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,6 @@ | ||
{ | ||
"hbs-translation": "HBS!", | ||
"js-translation": "JS!", | ||
"foo": "bar", | ||
"foo.bar.unnested": "unnested key" | ||
} |
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