start internationalization process
This commit is contained in:
parent
d48bdc796b
commit
df47f4d57b
1 changed files with 4 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
const eleventySass = require("eleventy-sass");
|
||||
const toml = require("@iarna/toml");
|
||||
const {EleventyI18nPlugin} = require('@11ty/eleventy');
|
||||
|
||||
module.exports = function(eleventyConfig) {
|
||||
eleventyConfig.setLayoutsDirectory("_layouts");
|
||||
|
|
@ -8,6 +9,9 @@ module.exports = function(eleventyConfig) {
|
|||
eleventyConfig.addPassthroughCopy("js");
|
||||
eleventyConfig.addPassthroughCopy("LICENSE.txt");
|
||||
|
||||
eleventyConfig.addPlugin(EleventyI18nPlugin, {
|
||||
defaultLanguage: "en"
|
||||
});
|
||||
eleventyConfig.addPlugin(eleventySass);
|
||||
eleventyConfig.addDataExtension("toml", (contents) => toml.parse(contents));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue