Allow users to configure the locale chunk size in settings.php

Created on 28 May 2025, 2 days ago

Problem/Motivation

In πŸ“Œ Use a transaction PoDatabaseWriter to improve performance Active it was suggested that we make the chunk size in \locale_translate_batch_import() configurable in settings.php to allow for further performance optimisations.

Proposed resolution

Change the code to something like:

'chunk_size' => \Drupal\Core\Site\Settings::get('locale.chunk_size', 200),

Drupal\Core\Site\Settings should use a use statment and not FQCN.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

locale.module

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024