Skip to content

Translations

Biblioteca is currently available in French and English.

You can easily add new locales by following these steps:

Creating a new theme

  1. Add your language in the UserType and the ProfileType files:

    • Directorysrc
      • DirectoryForm
        • UserType.php
        • ProfileType.php
    ->add('language', ChoiceType::class, [
    'choices' => [
    'English' => 'en',
    'French' => 'fr',
    'name' => 'iso_code',
    ],
    ])
  2. Create new files for each category in the translations folder:

    • Directorytranslations
      • AutocompleteBundle.en.yaml
      • AutocompleteBundle.iso_code.yaml
      • KnpPaginatorBundle.en.yaml
      • KnpPaginatorBundle.iso_code.yaml
      • messages+intl-icu.en.yaml
      • messages+intl-icu.iso_code.yaml
  3. Open the files and translate them