Add pms-nz/object-translation-bundle (#1915)

* add pms-nz/object-translation-bundle

* Remove offending comma from manifest.json

* Ensure 4 space indentation

* Correct the folder name

* Remove dashes in file name
This commit is contained in:
maxnz
2026-01-07 04:00:27 +04:00
committed by GitHub
parent ca23f07b20
commit 31740036c1
3 changed files with 22 additions and 0 deletions
@@ -0,0 +1,4 @@
pms-nz_object_translation:
# Change the following class name to that of your entity which stores your translations
translation_class: App\Entity\Translation
@@ -0,0 +1,8 @@
{
"bundles": {
"PmsNz\\ObjectTranslationBundle\\ObjectTranslationBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}
@@ -0,0 +1,10 @@
* You're almost ready to use pms-nz/object-translation-bundle!
* First, use the console command <comment>make:entity</comment> create a new entity which where your translations will be stored, e.g. Translation.
* Next, extend this class with <comment>PmsNz\ObjectTranslationBundle\Model\AbstractTranslation</comment>.
* Next, use the console commands <comment>make:migration</comment> and <comment>doctrine:migrations:migrate</comment> to create a table in your database where translation will be stored.
* Next,
* <fg=blue>Read</> the documentation at <comment>https://github.com/pms-nz/object-translation-bundle</>