Pagekit not working global function for languages

  • Hi guys,


    Pagekit not working global function for languages. So __('welcome') => not working but {{ 'welcome' | trans }} success code


    Code
    1. <div id="app" class="uk-margin uk-form">
    2. {{ 'welcome' | trans}}
    3. <?= __('welcome') ?>



    Hello guys, my name is Yunus and I'm a backend developer. If you have a problem just drop me a message, but unfortinately I can't understand everything as I'm using google translator and many things gets lost in translation. So there is a language barrier and I'm sorry about this. Be patient and we will find a solution for sure. Thank you in advance.

  • <?= __('welcome') ?> // Output = welcome

    But

    {{ 'welcome' | trans }} // Output = Hoş Geldiniz


    ---


    <?= __('written by %author%', ['%author%' => $amplified['author']]) ?> No, not working :(

    Hello guys, my name is Yunus and I'm a backend developer. If you have a problem just drop me a message, but unfortinately I can't understand everything as I'm using google translator and many things gets lost in translation. So there is a language barrier and I'm sorry about this. Be patient and we will find a solution for sure. Thank you in advance.

    Edited once, last by SPQRInc: C'mon - please use code formatting :D ().

  • PHP
    1. tr_TR/message.php
    2. <?php return array (
    3. 'hi' => 'Merhaba',
    4. 'welcome' => 'Hoş geldin'
    5. );
    6. ?>
    7. Site is language turkish



    Yes out put Hello Test

    Hello guys, my name is Yunus and I'm a backend developer. If you have a problem just drop me a message, but unfortinately I can't understand everything as I'm using google translator and many things gets lost in translation. So there is a language barrier and I'm sorry about this. Be patient and we will find a solution for sure. Thank you in advance.

  • OMG 8|:D^^:D^^


    Thank you. Out of sight :D

    Hello guys, my name is Yunus and I'm a backend developer. If you have a problem just drop me a message, but unfortinately I can't understand everything as I'm using google translator and many things gets lost in translation. So there is a language barrier and I'm sorry about this. Be patient and we will find a solution for sure. Thank you in advance.

  • ;) Did it solve the problem?

    Yes it did. Very very thank you :)

    Hello guys, my name is Yunus and I'm a backend developer. If you have a problem just drop me a message, but unfortinately I can't understand everything as I'm using google translator and many things gets lost in translation. So there is a language barrier and I'm sorry about this. Be patient and we will find a solution for sure. Thank you in advance.