Skip to content

iqbalhasandev/laravel-google-translate-js-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About Laravel Google Translate Js Kit

Google Tranlator kit for Laravel Project.

Doc:


  • First copy google-translate-kit folder then paste it on public folder

  • Then Link those Js and css file to your layouts/app.blade

    • For Css

      <link rel="stylesheet" href="{{ asset('google-translate-kit/google-translate.css') }}">
      
    • For Js

      <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
      
      <script src="{{asset('google-translate-kit/google-translate.css')}}"></script>
      

      Or Use Laravel Blade Components

    • then copy components/google-translate-kit.blade and paste it on resource/views/components folder.

    • For use This Componet use add those Line to your layout file

    <x-google-translate-kit/>
    
  • For use Google Translator add this line to your navbar or hover you want to show translate button

    <span id="google_translate_element"></span>
    

We would like to extend our thanks to the following sponsors for funding iqbalhasan.dev development. If you are interested in becoming a sponsor, please email us info@iqbalhasan.dev

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to IQBAL HASAN via info@iqbalhasan.dev. All security vulnerabilities will be promptly addressed.

License

The iqbalhasan.dev Project is open-sourced software licensed under the MIT license.