This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename nb to no (until nynorsk is contributed, anyway) * Convert to Translate class, cleanup * Clean up tests * Clarify weekly summaries in en, fr #158
- Loading branch information
Jay LaPorte
authored
Feb 7, 2018
1 parent
e795c9f
commit d006c1f
Showing
45 changed files
with
429 additions
and
644 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,11 +1,12 @@ | ||
"use strict"; | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const Translation = require("./lib/translation"); | ||
|
||
for(const pathname of fs.readdirSync(path.join(__dirname, "lib/lang"))) { | ||
const match = /^([^\.].*)\.js$/.exec(pathname); | ||
|
||
if(match) { | ||
exports[match[1]] = require("./lib/lang/" + pathname); | ||
exports[match[1]] = new Translation(Object.freeze(require("./lib/lang/" + pathname))); | ||
} | ||
} |
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
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
Oops, something went wrong.