meteko/databasetranslationprovider

Last activity 16 Sep 2020 5
composer require meteko/databasetranslationprovider

dev-master

Version
dev-master
Type
neos-package
Release Date
Sep 16, 2020 07:40
Source
git
Distribution
zip
Requires
22eb6a1cf28613c87d733490690de3c16cf1764f

Database Translation Provider

Working prototype of a Database provider of labels.

Goal is, to make it easy for none-developers to translate label or similar content

Setup

Database migrations

There is a migration creating the translation table. Run ./flow doctrine:migrate to have that added

Seed database with dummy labels

Run the command to seed the tables with a number of english, danish and german label

./flow translation:seed

List labels

Run the command to list the labels of a chosen locale (en,da,de)

./flow translation:list --locale en

List of translation specified by a locale

Print a single label

Run the command to print a single label

./flow translation:print --locale en --label hello

There is a label added with arguments named tell_age_with_argument - run the command again including the --arguments option:

./flow translation:print --locale en --label tell_age_with_argument --arguments 4

Print translation by locale and identifier including arguments

The content of the readme is provided by Github
The same vendor provides 6 package(s).