Skip to content

Commit

Permalink
docs: update nextjs config file example
Browse files Browse the repository at this point in the history
  • Loading branch information
aymericzip committed Apr 25, 2024
1 parent c7115e2 commit d9c5256
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion examples/nextjs-app/intlayer.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ const { Locales } = require('intlayer');
/** @type {import('intlayer').IntlayerConfig} */

module.exports = {
locales: [Locales.ENGLISH, Locales.FRENCH],
internationalization: {
locales: [Locales.ENGLISH, Locales.FRENCH],
},
};
5 changes: 3 additions & 2 deletions examples/nextjs-app/intlayer.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const { Locales } = require('intlayer');

/** @type {import('intlayer').IntlayerConfig} */

module.exports = {
locales: [Locales.ENGLISH, Locales.FRENCH],
internationalization: {
locales: [Locales.ENGLISH, Locales.FRENCH],
},
};
4 changes: 3 additions & 1 deletion examples/nextjs-app/intlayer.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"locales": ["en", "fr"]
"internationalization": {
"locales": ["en", "fr"]
}
}
4 changes: 3 additions & 1 deletion examples/nextjs-app/intlayer.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Locales } from 'intlayer';
/** @type {import('intlayer').IntlayerConfig} */

const config = {
locales: [Locales.ENGLISH, Locales.FRENCH],
internationalization: {
locales: [Locales.ENGLISH, Locales.FRENCH],
},
};

export default config;

0 comments on commit d9c5256

Please sign in to comment.