Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add NL translations #147

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

feat: add NL translations #147

wants to merge 6 commits into from

Conversation

wpf500
Copy link
Member

@wpf500 wpf500 commented Feb 17, 2025

Add Dutch translations and move all the translations to their own package (@beabee/locale) so they can be shared by the frontend and backend.


This is part 1 of 2 in a stack:

@wpf500 wpf500 requested a review from JumpLink February 17, 2025 14:26
@wpf500
Copy link
Member Author

wpf500 commented Feb 17, 2025

@JumpLink I tried to do a good thing and clean up some tech debt while I added the Dutch translations, but I got lost in what I suspect is a CommonJS/ESM hole 😭.

Currently it's building but doesn't actually work. The browser says this

Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/.../monorepo/packages/locale/dist/index.cjs?import' doesn't provide an export named: 'config'

I tried lots of things, renaming .ts files to .cts, changing build options, etc. etc. but I am very confused by all this stuff, maybe you can easily see what is wrong!

JumpLink and others added 2 commits February 18, 2025 10:54
Refactor locale imports to use a camelCase conversion function. 
Update the `currentLocale` function to utilize this new function for 
better locale name handling. Remove unnecessary exports in locale 
files and ensure type definitions are generated correctly. 
Adjust `OptionsService` to enforce type safety in string 
manipulation. Update package.json to specify main, module, and 
exports for better module resolution.
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.

2 participants