Skip to content

Commit

Permalink
feat: Add german translations
Browse files Browse the repository at this point in the history
* Update translations for volto-datablocks

* Update German translations for volto-datablocks

* Add internationalization support for block schemas

* Add "htmlTagTitle" translations to locale files

Introduced the "htmlTagTitle" message ID across multiple locale files, including English, German, Italian, and Romanian. Adjustments ensure translations are properly included or updated where missing.

* Add unique key to React.Fragment in SourcesBlock Edit

This fixes a React warning about missing `key` props for list-rendered components. The `key` is now dynamically generated based on the index to ensure uniqueness for each fragment.

* Refactor ESLint config to use new AddonRegistry module

* Fix inconsistent indentation in conditional expressions

* Update translations and add missing localization strings

* Update message IDs and add new entries in messages.js

* Inject intl into SimpleDataTable View component   translations and improves internationalization support.
```

* Update German translation for "newWindowChoice"

* add plone/registry to devDependencies
lint fixes

* style: Automated code fix

---------

Co-authored-by: Miu Razvan <miu.razvan28@gmail.com>
Co-authored-by: Maurice Reim <reim@interaktiv.de>
Co-authored-by: eea-jenkins <eea-github@googlegroups.com>
  • Loading branch information
4 people authored Jan 20, 2025
1 parent 6a7d9b0 commit a7c7cfc
Show file tree
Hide file tree
Showing 26 changed files with 2,868 additions and 296 deletions.
10 changes: 5 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const fs = require('fs');
const path = require('path');
const projectRootPath = fs.realpathSync(__dirname + '/../../../');
const { AddonRegistry } = require('@plone/registry/addon-registry');

let voltoPath = path.join(projectRootPath, 'node_modules/@plone/volto');
let configFile;
Expand All @@ -16,16 +17,15 @@ if (configFile) {
voltoPath = `./${jsConfig.baseUrl}/${pathsConfig['@plone/volto'][0]}`;
}

const AddonConfigurationRegistry = require(`${voltoPath}/addon-registry.js`);
const reg = new AddonConfigurationRegistry(projectRootPath);
const { registry } = AddonRegistry.init(__dirname);

// Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
const addonAliases = Object.keys(reg.packages).map((o) => [
const addonAliases = Object.keys(registry.packages).map((o) => [
o,
reg.packages[o].modulePath,
registry.packages[o].modulePath,
]);

const addonExtenders = reg.getEslintExtenders().map((m) => require(m));
const addonExtenders = registry.getEslintExtenders().map((m) => require(m));

const defaultConfig = {
extends: `${voltoPath}/.eslintrc`,
Expand Down
Loading

0 comments on commit a7c7cfc

Please sign in to comment.