tolgee-platform icon indicating copy to clipboard operation
tolgee-platform copied to clipboard

Support for .ini files

Open dgrammatiko opened this issue 3 years ago • 3 comments

I would like to request the support for .ini files as the source of the languages. There are plenty packages to convert the .ini files to a key-value array so this should be quite straight forward.

Thanks

dgrammatiko avatar Mar 23 '22 10:03 dgrammatiko

Hi there! Can you please share an example of this file?

JanCizmar avatar Mar 23 '22 12:03 JanCizmar

And also! What is your use case? What language/library do you use?

JanCizmar avatar Mar 23 '22 12:03 JanCizmar

@JanCizmar sure, here you go: https://github.com/joomla/joomla-cms/blob/4.1-dev/language/en-GB/com_config.ini

The use case is the Joomla CMS

dgrammatiko avatar Mar 23 '22 12:03 dgrammatiko

@dgrammatiko Hey, we still don't support that, So why closed? 😆

JanCizmar avatar Sep 09 '22 08:09 JanCizmar

Oh, I thought you weren't interested to support such files...

dgrammatiko avatar Sep 09 '22 08:09 dgrammatiko

I was thinking to plan to add some universal support via our CLI. So user would be enabled to write custom JS function, which would accept all the translation data and store it as they wish. This way we can also provide some presets for major programming languages/frameworks. https://github.com/tolgee/tolgee-cli/issues/1

JanCizmar avatar Sep 09 '22 08:09 JanCizmar

Sounds good, thanks

dgrammatiko avatar Sep 09 '22 08:09 dgrammatiko