-
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.
Merge pull request #4 from creadigme/fix-multiple-sub-keys
Fix(i18n-seeker): support for multiple sub-keys
- Loading branch information
Showing
7 changed files
with
155 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
STOP: Stop | ||
START: Start | ||
PAUSE: Pause | ||
NOT_USED: Another One | ||
CAT: | ||
SUBCAT_1: | ||
KEY: Bonjour | ||
SUBCAT_2: | ||
ANOTHER: Key | ||
ONE_LEVEL: | ||
OK: Ok |
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,23 @@ | ||
<template> | ||
|
||
<div class="something else" title.one-time="'EASY:PAUSE' & t">?</div> | ||
<div class="something else" title.bind="'EASY:START' & t">?</div> | ||
<div class="something else" title.one-time="'EASY:START' & t">?</div> | ||
<div class="something else" title.bind="'EASY:STOP' & t">?</div> | ||
|
||
<div class="something else">${"EASY:KEY" & t} : </div> | ||
<div class="something else">${'EASY:KEY2' | t} : </div> | ||
|
||
<div>${"EASY:CAT.SUBCAT_1.KEY" & t} : </div> | ||
<div>${'EASY:CAT.SUBCAT_2.ANOTHER' | t} : </div> | ||
<div title.bind="'EASY:ONE_LEVEL.OK' & t">?</div> | ||
|
||
<!-- ignore this --> | ||
<div class="something else">${'EASY:KEY3'} : </div> | ||
|
||
|
||
<div class="something else" t="EASY:KEY"></div> | ||
<div class="something else" t="EASY:KEY2"></div> | ||
<!-- ignore this --> | ||
<div class="something else" tt="EASY:KEY3"></div> | ||
</template> |
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,29 @@ | ||
export class Sample3 { | ||
public i18n : any; | ||
|
||
/** | ||
*/ | ||
public something() { | ||
return this.i18n.tr('EASY:START'); | ||
} | ||
|
||
/** | ||
*/ | ||
public summoner() { | ||
return this.i18n.tr("EASY:STOP"); | ||
} | ||
|
||
/** | ||
*/ | ||
public invocation() { | ||
return this.i18n.tr("EASY:MIDDLE"); | ||
} | ||
|
||
/** | ||
*/ | ||
public moon() { | ||
// return true; this.i18n.tr("EASY:MOON"); | ||
return true; // this.i18n.tr("EASY:MOON"); | ||
} | ||
|
||
} |
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
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