diff --git a/packages/gasket-plugin-intl/lib/create.js b/packages/gasket-plugin-intl/lib/create.js index d9929f436..b72dab8e7 100644 --- a/packages/gasket-plugin-intl/lib/create.js +++ b/packages/gasket-plugin-intl/lib/create.js @@ -26,6 +26,7 @@ module.exports = async function create(gasket, createContext) { }; if (createContext.typescript) { + initialConfig.defaultLocale = 'en-US'; initialConfig.managerFilename = gasket.config.intl.managerFilename; } diff --git a/packages/gasket-plugin-intl/test/create.test.js b/packages/gasket-plugin-intl/test/create.test.js index 74f55f55d..30b465db3 100644 --- a/packages/gasket-plugin-intl/test/create.test.js +++ b/packages/gasket-plugin-intl/test/create.test.js @@ -93,7 +93,8 @@ describe('create', function () { await plugin.hooks.create(mockGasket, mockContext); expect(addStub).toHaveBeenCalledWith('intl', { locales: ['en-US', 'fr-FR'], - managerFilename: 'intl.ts' + managerFilename: 'intl.ts', + defaultLocale: 'en-US' }); });