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

fix: fix bug of not publishing language files in npm #458

Closed
wants to merge 6 commits into from

Conversation

mikasackermn
Copy link
Collaborator

@mikasackermn mikasackermn commented Dec 2, 2023

Summary

Language files inside /translations/* should be published with embedded as well, if not, it will not work properly.
I tested with our own code, there was no problem, I just transferred I18NManager to the widget (because it is used in the widget).

How did you test this change?

Serve Playground and change the language

Checklist:

  • I have performed a self-review of my code

@samobasquiat
Copy link
Member

samobasquiat commented Dec 3, 2023

I encountered an error within the widget/embedded/src/components/I18nManager/I18nManager.tsx file:
File 'rango-client/translations/en.ts' is not under 'rootDir' . 'rootDir' is expected to contain all source files.ts. I think this is because of the values of rootDir in tsconfig. for example, in rango-dev/ui we considered it in tsconfig.

Resolved!

@RanGojo RanGojo requested a review from samobasquiat December 5, 2023 06:28
@mikasackermn mikasackermn force-pushed the fix/rf-1048-publishing-language branch from 3a30c25 to 1577fb0 Compare December 5, 2023 08:23
@RanGojo
Copy link
Member

RanGojo commented Apr 2, 2024

Not needed anymore.

@RanGojo RanGojo closed this Apr 2, 2024
@RanGojo RanGojo deleted the fix/rf-1048-publishing-language branch August 20, 2024 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants