-
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 #7 from creadigme/feat-i18n-default-ns
CLI: support of `--default-ns`
- Loading branch information
Showing
7 changed files
with
66 additions
and
0 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
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,4 @@ | ||
A: B | ||
C: D | ||
E: F | ||
G: etc |
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,4 @@ | ||
STOP: Stop | ||
START: Start | ||
PAUSE: Pause | ||
NOT_USED: Another One |
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,18 @@ | ||
<template> | ||
|
||
<div class="something else" title.one-time="'PAUSE' & t">?</div> | ||
<div class="something else" title.bind="'START' & t">?</div> | ||
<div class="something else" title.one-time="'START' & t">?</div> | ||
<div class="something else" title.bind="'STOP' & t">?</div> | ||
|
||
<div class="something else">${"KEY" & t} : </div> | ||
<div class="something else">${'KEY2' | t} : </div> | ||
<!-- ignore this --> | ||
<div class="something else">${'KEY3'} : </div> | ||
|
||
|
||
<div class="something else" t="KEY"></div> | ||
<div class="something else" t="KEY2"></div> | ||
<!-- ignore this --> | ||
<div class="something else" tt="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,28 @@ | ||
export class Sample3 { | ||
public i18n: any; | ||
|
||
/** | ||
*/ | ||
public something() { | ||
return this.i18n.t('START'); | ||
} | ||
|
||
/** | ||
*/ | ||
public summoner() { | ||
return this.i18n.tr('STOP'); | ||
} | ||
|
||
/** | ||
*/ | ||
public invocation() { | ||
return this.i18n.tr('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