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 nested json object support #17

Merged
merged 8 commits into from
Jan 15, 2023
Merged

Conversation

curtisy1
Copy link
Owner

This allows for nested json objects to be translated easily. The way it works is by reading the file as string, doing some (very ugly) JSON magic and storing all keys and values accordingly.

I'm fairly sure this has some bugs and could be improved upon but it's the sanest solution I can think of without a complete rewrite where everything is a class.

For testing purposes, this also adds a dummy Tolgee integration (since Tolgee returns a zip file with JSON translations in their API). This needs some more work to be consolidated into a plugin however.

Closes #11

@curtisy1 curtisy1 linked an issue Jan 15, 2023 that may be closed by this pull request
3 tasks
@curtisy1 curtisy1 merged commit 3299864 into develop Jan 15, 2023
@curtisy1 curtisy1 deleted the remote-translations branch January 15, 2023 15:22
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.

Introduce a concept of JSON namespaces
1 participant