Skip to content

fix(locale): keep ku numbers map local to preserve default export - #3377

Open
Ganesh1729-ui wants to merge 1 commit into
iamkun:devfrom
Ganesh1729-ui:fix/locale-ku-export
Open

Ganesh1729-ui wants to merge 1 commit into
iamkun:devfrom
Ganesh1729-ui:fix/locale-ku-export

Conversation

@Ganesh1729-ui

Copy link
Copy Markdown

When importing or requiring the built ku locale, consumers get a wrapper object instead of the locale itself. This happens because src/locale/ku.js had a named export alongside the default export, which causes rollup to build an exports object with .default instead of assigning module.exports directly. I changed the number map in src/locale/ku.js to a local constant so only the locale object is exported. I ran the tests and verified the new unit test passes. First PR here, happy to adjust if needed.

Fixes #3271

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Built locale/ku.js exports a wrapper object, not the locale

2 participants