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: use the symbol from the node when present #66

Merged

Conversation

danielpid
Copy link
Contributor

@danielpid danielpid commented Jul 24, 2023

Related with #8 aralroca/next-translate#1116

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[X] Bug fix
[ ] New feature
[ ] Other, please explain:

What changes did you make? (Give an overview)
The function that gets the symbol for node. If we already have a symbol, we use it, otherwise we try to get the symbol as before.

Which issue (if any) does this pull request address?
When there's a custom app (_app), the getInitialProps wasn't called.

Is there anything you'd like reviewers to focus on?
I'm not familiar with the Typescript Compiler API, but the change seems reasonable. I tried the basic example from next-ranslate and seems to be working fine.

Copy link
Owner

@aralroca aralroca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; thanks for the fix!

@aralroca aralroca merged commit 8bf1937 into aralroca:main Jul 24, 2023
6 checks passed
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.

None yet

3 participants