0.0.4 • Published 6 years ago
laragle-translate-js v0.0.4
Laragle Translate Real-time support
Laragle Translate is a Laravel localization management system that will update your localization files in real-time.
Installation
You can install the package via yarn:
yarn add laragle-translate-js
or npm:
npm install laragle-translate-js --save
Lastly, add the following javascript code.
import Translate from 'laragle-translate-js';
new Translate({
key: 'b83ca2ed4a1a4e39b2b3',
channel: 'APP_ID', // Your Laragle Translate app id.
authEndpoint: 'https://api.translate.laragle.com/broadcasting/auth',
appUrl: 'APP_URL' // Your Laravel backend URL.
});
You can get your APP_ID by creating a project here
License
The MIT License (MIT). Please see License File for more information.