承接 mydnic/laravel-yaml-translation 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mydnic/laravel-yaml-translation

最新稳定版本:v1.1.0

Composer 安装命令:

composer require mydnic/laravel-yaml-translation

包简介

Add YAML file support to Laravel TranslationServiceProvider, fork of devitek/laravel-yaml-translation

README 文档

README

Based and forked from https://github.com/jackjoe/laravel-yaml-translation

Add Yaml file support for Laravel

This package uses Symfony/Yaml parser, and is forked from Devitek/laravel-yaml-translation

Installation

Composer

composer require mydnic/laravel-yaml-translation

Replace Service Provider

You have to replace

Illuminate\Translation\TranslationServiceProvider::class,

with

Mydnic\Core\Translation\TranslationServiceProvider::class,

in config/app.php.

How to use

Instead of using the regular php files to input your translation, use yml or yaml files instead.

PHP:

<?php

return [
	'hello' => 'Hello :name',
    'author' => 'Devitek',
];

Will in YAML be equivalent to:

hello: Hello :name
author: Jack + Joe

A more complex example:

title: My Website
copyright: |
  2015 &copy;

team:
  - name: Foo
    age: 18
  - name: Bar
    age: 20

Important!

When you want to use the yaml files, be sure to delete the php files!

License

This is free software, and may be redistributed under the terms specified in the LICENSE file.

统计信息

  • 总下载量: 65
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 17
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固