mirror of
https://github.com/valitydev/vality.dev.git
synced 2024-11-06 00:55:20 +00:00
25 lines
595 B
JavaScript
25 lines
595 B
JavaScript
module.exports = {
|
|
presets: ["babel-preset-gatsby"],
|
|
plugins: [
|
|
[
|
|
"i18next-extract",
|
|
{
|
|
locales: ["en", "ru"],
|
|
keySeparator: null,
|
|
nsSeparator: null,
|
|
keyAsDefaultValue: ["en"],
|
|
useI18nextDefaultValue: ["en"],
|
|
discardOldKeys: true,
|
|
outputPath: "locales/{{locale}}/{{ns}}.json",
|
|
customTransComponents: [["gatsby-plugin-react-i18next", "Trans"]],
|
|
},
|
|
],
|
|
],
|
|
overrides: [
|
|
{
|
|
test: [`**/*.ts`, `**/*.tsx`],
|
|
plugins: [[`@babel/plugin-transform-typescript`, { isTSX: true }]],
|
|
},
|
|
],
|
|
};
|