Git Product home page Git Product logo

laravel-langdb's Introduction

Laravel-LangDB

A package to add a language database in your Laravel application.

It contains a comprehensive list of languages and their ISO codes.

Installation

You can install the package via composer:

composer require lbreda/laravel-langdb

Then you have to migrate:

php artisan migrate

After migrating, you need to refresh the language database using the command

php artisan lbreda:refresh-lang-db

Usage

The application adds a new model to your application: LBreda\LaravelLangDb\Language.

The model is a standard Eloquent model. Its tables is pre-filled with a comprehensive dataset.

Each language has the following properties (some of them may be null):

  • code_639_1: ISO-639-1 language code
  • code_639_2t: ISO-639-2/T language code
  • code_639_2b: ISO-639-2/B language code
  • code_639_3: ISO-639-3 language code
  • native_name: Native language name
  • translatable_name: A string you can pass to __() or trans() to have the language name in your application language

Contribute

You can contribute via GitHub pull requests. Feel free to report bugs via GitHub.

Translations are VERY well accepted.

laravel-langdb's People

Contributors

lbreda avatar

Watchers

 avatar  avatar

Forkers

jcaponte

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.