-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ferdinand Thiessen <[email protected]>
- Loading branch information
Showing
7 changed files
with
16,590 additions
and
6,460 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,18 +1,18 @@ | ||
const { GettextExtractor, JsExtractors } = require('gettext-extractor'); | ||
const { GettextExtractor, JsExtractors } = require('gettext-extractor') | ||
|
||
let extractor = new GettextExtractor(); | ||
const extractor = new GettextExtractor() | ||
|
||
extractor | ||
.createJsParser([ | ||
JsExtractors.callExpression('gt.gettext', { | ||
arguments: { | ||
text: 0, | ||
context: 1 | ||
} | ||
}), | ||
]) | ||
.parseFilesGlob('./lib/**/*.@(ts|js)'); | ||
.createJsParser([ | ||
JsExtractors.callExpression('gt.gettext', { | ||
arguments: { | ||
text: 0, | ||
context: 1, | ||
}, | ||
}), | ||
]) | ||
.parseFilesGlob('./lib/**/*.@(ts|js)') | ||
|
||
extractor.savePotFile('./l10n/messages.pot'); | ||
extractor.savePotFile('./l10n/messages.pot') | ||
|
||
extractor.printStats(); | ||
extractor.printStats() |
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,6 +1,6 @@ | ||
interface Translations { | ||
locale: string | ||
json: object | ||
locale: string | ||
json: object | ||
} | ||
|
||
declare const LOCALES: Translations[]; | ||
declare const LOCALES: Translations[] |
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
Oops, something went wrong.