weblate icon indicating copy to clipboard operation
weblate copied to clipboard

Does Weblate support the TypeScript file format?

Open eamonzzz opened this issue 2 years ago • 2 comments

Describe the problem

When I use weblate for translation, weblate does not recognize the content in the TypeScript file, which is formatted as follows: https://github.com/ant-design/ant-design-pro/blob/master/src/locales/en-US/pages.ts

Describe the solution you would like

I'm stuck with the mi18n lang format file for parsing now, but that way comes with special symbols. Not getting the desired result.

Describe alternatives you have considered

No response

Screenshots

No response

Additional context

No response

eamonzzz avatar Mar 28 '24 05:03 eamonzzz

No, but Weblate supports several JSON variants, see https://docs.weblate.org/en/latest/formats.html.

I am not convinced that using a programming language for translation files is a good idea because people then tend to use programming language features there, and it ends up breaking something.

nijel avatar Apr 02 '24 17:04 nijel

This issue has been put aside. It is currently unclear if it will ever be implemented as it seems to cover too narrow of a use case or doesn't seem to fit into Weblate.

Please try to clarify the use case or consider proposing something more generic to make it useful to more users.

github-actions[bot] avatar Apr 02 '24 17:04 github-actions[bot]