kevindierkx/view-localization 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

kevindierkx/view-localization

最新稳定版本:2.0.1

Composer 安装命令:

composer require kevindierkx/view-localization

包简介

Localising views in Laravel

README 文档

README

mcamara/laravel-localization now supports using the view base path for your localization making this packages obsolete.

Laravel View Localization

This package makes it possible to serve specific views for various locales.

Installation

This package is build for Laravel framework based applications.

For Laravel 4.2+ please refer to version 1.0.

Laravel 5.x

Require this package with composer:

composer require kevindierkx/view-localization

Service provider

Open config/app.php and register the required service provider.

'providers' => [
    ...
    'Kevindierkx\ViewLocalization\ViewLocalizationServiceProvider'
]

Usage

Localized views are stored in files within the resources/views directory. Within this directory there should be a subdirectory for each language supported by the application.

Views that serve as a default should go in the default resources/views directory.

/resources
    /views
        /nl
            messages.blade.php
    messages.blade.php

In the above example the nl locale would get a custom view, the en locale however would get the default messages.blade.php in the resources/views directory.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-12-09