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

Add Toml support #8537

Open
naltatis opened this issue Dec 27, 2022 · 4 comments
Open

Add Toml support #8537

naltatis opened this issue Dec 27, 2022 · 4 comments
Labels
backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. enhancement Adding or requesting a new feature. translate-toolkit Issues which need to be fixed in the translate-toolkit

Comments

@naltatis
Copy link

Describe the problem

We use toml as a translation format that we use in JavaScript and Go but toml is not in the list of supported translation file formats.

Describe the solution you'd like

Official support for toml file format.

Describe alternatives you've considered

Currently we have a workaround in our project by using the "INI format" which is similar but not identical to toml. Our main issues with this workarounds are:

  • String termination: In toml strings are quoted ("), in ini it's possible but not mantedory. That's why our translators have to be careful to always start and end with a quote. Otherwise it will produce broken toml files.
  • Escaping: We notices strange issues where Weblate hat problems with special characters and removed/double escaped them. Example: "Lorem ... ;)". see here

Screenshots

Our issues with ini format workaround

ini workarond

Additional context

No response

@nijel
Copy link
Member

nijel commented Jan 6, 2023

Is there any documentation for the toml format you are using?

@nijel nijel added enhancement Adding or requesting a new feature. translate-toolkit Issues which need to be fixed in the translate-toolkit backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. labels Jan 6, 2023
@nijel nijel added this to TODO in File format support via automation Jan 6, 2023
@github-actions
Copy link

github-actions bot commented Jan 6, 2023

The issue you've reported needs to be addressed in the translate-toolkit. Please file the issue there, and include links to any relevant specifications about the formats (if applicable).

@github-actions
Copy link

github-actions bot commented Jan 6, 2023

This issue has been added to the backlog. It is not scheduled on the Weblate roadmap, but it eventually might be implemented.

In case you need this feature soon, please consider helping or push it by funding the development.

@nijel
Copy link
Member

nijel commented Jan 6, 2023

There already is translate/translate#3969

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. enhancement Adding or requesting a new feature. translate-toolkit Issues which need to be fixed in the translate-toolkit
Projects
Development

No branches or pull requests

2 participants