GithubHelp home page GithubHelp logo

Comments (6)

danijelk avatar danijelk commented on September 7, 2024

It's in my pull request, which will probably be merged within the next 24h if the author doesn't have any more comments, this will enable you to add your functions that your project uses instead of the static '__'

from laravel-langman-gui.

themsaid avatar themsaid commented on September 7, 2024

trans() and trans_choice() can be used for array translations as well, that's why we don't scan for them by default, however you can add a localization_methods config key which is available since 0.1.2.

'localization_methods' => ['__', 'trans', 'trans_choice'],

from laravel-langman-gui.

tfortier avatar tfortier commented on September 7, 2024

After running composer update and fetching the new version, the translation tool seems utterly confused so I must be missing something.

I emptied my en.json and fr.json files and made a scan. Instead of the 100+ items it found previously I now have only three results : __, trans and trans_choice.

My config file looks like this :

<?php

return [
    'base_language' => 'fr',
    'localization_methods' => ['__', 'trans', 'trans_choice'],
    'route_group_config' => [
        'middleware' => ['web'],
        'namespace' => 'Themsaid\LangmanGUI'
    ]
];

from laravel-langman-gui.

themsaid avatar themsaid commented on September 7, 2024

@tfortier I just released a new fix on v0.1.3, give it a try.

from laravel-langman-gui.

tfortier avatar tfortier commented on September 7, 2024

Works like a charm. Thank you very much πŸ‘

from laravel-langman-gui.

themsaid avatar themsaid commented on September 7, 2024

Welcome :)

from laravel-langman-gui.

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.