1.0.4 • Published 5 years ago

laravel-lang-loader v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago
npm install laravel-lang-loader

In your app.js (or app.ts) file add:

import LaravelTranslations from 'laravel-lang-loader!laravel-lang-loader';

where LaravelTranslation can be any variable name.

Configuration is provided by .json file, and it must be store in ./resource/lang with .lll.config.json name. Minimal requirement is at least one lang dir defined in dir key:

// lll.config.json

{
    "dir": [
        "./resources/lang",
        {
            "path": "./app/Modules/*/resources/lang",
            "namespaceFromPath": "./app/Modules/[:namespace]/resources/lang"
        }
    ],
    "php": true,
    "json": true
}
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago