Download the PHP package awkwardideas/langjs without Composer
On this page you can find all versions of the php package awkwardideas/langjs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download awkwardideas/langjs
More information about awkwardideas/langjs
Files in awkwardideas/langjs
Download awkwardideas/langjs
More information about awkwardideas/langjs
Files in awkwardideas/langjs
Vendor awkwardideas
Package langjs
Short Description Compile lang files to be used within js
License MIT
Package langjs
Short Description Compile lang files to be used within js
License MIT
Please rate this library. Is it a good library?
Informations about the package langjs
LangJS: Compile lang files to a js file for use on client side
Install Via Composer
composer require awkwardideas/langjs
Add to config/app.php
Under Package Service Providers Add
AwkwardIdeas\LangJS\LangJSServiceProvider::class,
Build LangJS script file
- run
- Adjust the --d path to whatever you would like under your public directory
- Include this script file into your layout
- You must run the build command any time you want to recompile the language file changes. A watchdog may be built in the future but is not currently available
- This only compiles the lang files within your resources/lang folder. Vendor lang files are not included currently.
Javascript commands
-
- Same setup as , will retrieve your language for password which you put in your php lang file auth.php.
- Replace and locale are optional parameters
- Locale will default to en, if not provided.
- If key has a plural form, the singular version will be returned, instead of the full term value
-
- Same setup as
- Replace and locale are optional parameters
- Locale will default to en, if not provided.
All versions of langjs with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.4
The package awkwardideas/langjs contains the following files
Loading the files please wait ....