Skip to content

Simple tool to help with localization process on laravel template files.

Notifications You must be signed in to change notification settings

maciekmp/laravel-localization-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Localization Tool

Simple tool to help with localization process on laravel template files.

##Screenshot Image

##Example You can check demo here

##Instructions

  1. Open blade template in your favorite code editor.
  2. Add @lang('filename.key') before every string you can get in localization array.
  3. Copy blade template into localization tool and send it.
  4. After that you get code for localization file and parsed blade template without original strings.
  5. Copy those to your project files.
  6. Repeat process with your next blade template.

##Contribute! If you want to handle some extra scenarios in your blade templates please contact with me through issues tab.

##Input Laravel Blade template with @lang definitions before correct strings. Examples below.

<p class="status">
    @lang('projects.project_status')Status
</p>

##Output Laravel localization array and blade template with cut off ogiriginal strings.

<?php
return array(
    'project_status' => 'Status',
);
<p class="status">
    @lang('projects.project_status')
</p>

##Roadmap

  • add warnings about strings without @lang definition

About

Simple tool to help with localization process on laravel template files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages