在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):themsaid/laravel-langman开源软件地址(OpenSource Url):https://github.com/themsaid/laravel-langman开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Laravel Langman
Langman is a language files manager in your artisan console, it helps you search, update, add, and remove
translation lines with ease. Taking care of a multilingual interface is not a headache anymore.
InstallationBegin by installing the package through Composer. Run the following command in your terminal:
Once done, add the following line in your providers array of Themsaid\Langman\LangmanServiceProvider::class This package has a single configuration option that points to the
UsageShowing lines of a translation file
You get:
Brings only the translation of the
Brings the translation of a nested key.
Brings the translation of a vendor package language file.
Brings the translation of only the "en" and "it" languages.
Brings only the translation lines with keys matching the given key via close match, so searching for In the table returned by this command, if a translation is missing it'll be marked in red. Finding a translation line
You get a table of language lines where any of the values matches the given phrase by close match. Searching view files for missing translations
This command will look into all files in Filling missing translations
It'll collect all the keys that are missing in any of the languages or has values equals to an empty string, prompt asking you to give a translation for each, and finally save the given values to the files. Translating a key
Using this command you may set a language key (plain or nested) for a given group, you may also specify which language you wish to set leaving the other languages as is. This command will add a new key if not existing, and updates the key if it is already there. Removing a key
It'll remove that key from all language files. Renaming a key
This will rename Notes
Web interfaceIf you want a web interface to manage your language files instead, I recommend Laravel 5 Translation Manager by Barry vd. Heuvel. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论