Giter VIP home page Giter VIP logo

Comments (7)

kkomelin avatar kkomelin commented on May 30, 2024

@gemal Good suggestion/request. Thanks.
Theoretically, the package supports it if you add the function to the function array in the config.

To do that, you may want to import package default config to your app config folder:

php artisan vendor:publish --provider="KKomelin\TranslatableStringExporter\Providers\ExporterServiceProvider"

Then add @lang function to the 'functions' array of config/laravel-translatable-string-exporter.php:
https://github.com/kkomelin/laravel-translatable-string-exporter/blob/master/config/laravel-translatable-string-exporter.php#L17

I didn't test it myself. Will test. If it works, I will add @lang to the default function list.

from laravel-translatable-string-exporter.

kkomelin avatar kkomelin commented on May 30, 2024

@gemal Thanks again. I've added @lang to the default package config. Apply the same changes 7420153 to your config/laravel-translatable-string-exporter.php and you'll be Okay.

from laravel-translatable-string-exporter.

kkomelin avatar kkomelin commented on May 30, 2024

Here is the release https://github.com/kkomelin/laravel-translatable-string-exporter/releases/tag/0.3.2

from laravel-translatable-string-exporter.

gemal avatar gemal commented on May 30, 2024

shouldn't this also be added to __construct in Parser.php ?

from laravel-translatable-string-exporter.

kkomelin avatar kkomelin commented on May 30, 2024

@gemal Good catch. I've missed it. Will add.

from laravel-translatable-string-exporter.

kkomelin avatar kkomelin commented on May 30, 2024

@gemal Done. Please test https://github.com/kkomelin/laravel-translatable-string-exporter/releases/tag/0.3.3

from laravel-translatable-string-exporter.

kkomelin avatar kkomelin commented on May 30, 2024

@gemal I'm closing the issue for now. Please let me know if you catch any bugs.

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.