Skip to content

Commit

Permalink
add defaultLocale to created TS config
Browse files Browse the repository at this point in the history
  • Loading branch information
mmason2-godaddy committed Nov 14, 2024
1 parent 87b4262 commit 6813547
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/gasket-plugin-intl/lib/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = async function create(gasket, createContext) {
};

if (createContext.typescript) {
initialConfig.defaultLocale = 'en-US';
initialConfig.managerFilename = gasket.config.intl.managerFilename;
}

Expand Down
3 changes: 2 additions & 1 deletion packages/gasket-plugin-intl/test/create.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
});
});

Expand Down

0 comments on commit 6813547

Please sign in to comment.