An open API service indexing awesome lists of open source software.

https://github.com/dillingham/js-trans

compile multiple translation files for javascript __('key') method
https://github.com/dillingham/js-trans

laravel

Last synced: 2 months ago
JSON representation

compile multiple translation files for javascript __('key') method

Awesome Lists containing this project

README

          

# js trans

[![Latest Version on Github](https://img.shields.io/github/release/dillingham/js-trans.svg?style=flat-square)](https://packagist.org/packages/dillingham/js-trans)
[![Total Downloads](https://img.shields.io/packagist/dt/dillingham/js-trans.svg?style=flat-square)](https://packagist.org/packages/dillingham/js-trans) [![Twitter Follow](https://img.shields.io/twitter/follow/dillinghammm?color=%231da1f1&label=Twitter&logo=%231da1f1&logoColor=%231da1f1&style=flat-square)](https://twitter.com/dillinghammm)

```
composer require dillingham/js-trans
```

- add `{!! js_trans() !!}` to app.blade.php
- use `js_trans($array);` to add translation key/values