brackets/translatable

Make your Eloquent models and other content translated into multiple languages

Installs: 248 740

Dependents: 4

Suggesters: 0

Security: 0

Stars: 8

Watchers: 1

Forks: 8

Open Issues: 1

Type:project

pkg:composer/brackets/translatable

v2.5.0 2023-10-25 12:09 UTC

README

Translatable makes your content translatable in defined languages (locales). To sum up, the package:

  • publishes a config, that defines locales (languages) used in your project,
  • introduces a HasTranslations trait that makes your Eloquent model translatable (extending spatie/laravel-translatable),
  • introduces a TranslatableFormRequest class that you can use as a base class for your Request classes to extend from, which simplify the definition of the rules for translatable data.

You can find full documentation at https://docs.getcraftable.com/#/translatable