Giter VIP home page Giter VIP logo

Comments (5)

kkomelin avatar kkomelin commented on May 31, 2024

Hi @philippejadin,

Thank you for your feature request.

I see one problem with that approach... You won't be able to visually detect duplicate strings across the entire file as you may do with 'sort-keys' => true in config.

Alternatively, you may do the following:

Please let me know if none of those solutions satisfies you and I will think about what else I can do.

Thanks,
Konstantin

from laravel-translatable-string-exporter.

philippejadin avatar philippejadin commented on May 31, 2024

Thank you for the quick reply. I guess that #20 will be fine. Alternatively, maybe in the json file there could be a hint that a string is not translated while keeping the sort by key feature. But as far as I know you can't put comments in json so I don't know how to do it. Maybe indentation ?

This is not a priority I guess

from laravel-translatable-string-exporter.

kkomelin avatar kkomelin commented on May 31, 2024

Ah, thanks. Additional indentation is a good idea I think. Let me experiment with it and see if it's possible.
Let's keep the issue open for now.

from laravel-translatable-string-exporter.

kkomelin avatar kkomelin commented on May 31, 2024

Decided not to add an additional indentation to the untranslated strings and instead implemented putting them at the top of a translation file. Currently testing the feature. If all goes well, will release it soon.

from laravel-translatable-string-exporter.

kkomelin avatar kkomelin commented on May 31, 2024

Created a new release with this feature added https://github.com/kkomelin/laravel-translatable-string-exporter/releases/tag/1.14.0

from laravel-translatable-string-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.