- WordPress 6.9.4 (es_ES) with Kadence theme - Homepage: Hero, La Asociación, Pilares, Beneficios, Eventos, Miembros, Hazte Miembro, Contacto - Brand identity: #13294b navy, #a12932 burgundy, #c69c48 gold - Fonts: Raleway (headings) + Source Sans 3 (body) + Lato (UI) - Plugins: Kadence Blocks, Polylang, Contact Form 7 - Custom CSS with full brand styling and responsive layout - HTTPS enforced via wp-config.php proxy detection
33 lines
1.4 KiB
PHP
33 lines
1.4 KiB
PHP
<?php declare( strict_types=1 );
|
|
|
|
namespace KadenceWP\KadenceBlocks\Optimizer\Translation;
|
|
|
|
use KadenceWP\KadenceBlocks\StellarWP\ProphecyMonorepo\Container\Contracts\Provider as Provider_Contract;
|
|
|
|
final class Provider extends Provider_Contract {
|
|
|
|
/**
|
|
* If you update the text repository translations, ensure to match to the
|
|
* assets/js/optimizer/constant.js file.
|
|
*/
|
|
public function register(): void {
|
|
$this->container->singleton( Text_Repository::class, Text_Repository::class );
|
|
|
|
$this->container->when( Text_Repository::class )
|
|
->needs( '$labels' )
|
|
->give(
|
|
static fn(): array => [
|
|
Text_Repository::RUN_OPTIMIZER => __( 'Run Optimizer', 'kadence-blocks' ),
|
|
Text_Repository::REMOVE_OPTIMIZATION => __( 'Remove Optimization', 'kadence-blocks' ),
|
|
Text_Repository::OPTIMIZED => __( 'Optimized', 'kadence-blocks' ),
|
|
Text_Repository::OPTIMIZING => __( 'Optimizing', 'kadence-blocks' ),
|
|
Text_Repository::NOT_OPTIMIZED => __( 'Not Optimized', 'kadence-blocks' ),
|
|
Text_Repository::NOT_OPTIMIZABLE => __( 'Not Optimizable', 'kadence-blocks' ),
|
|
Text_Repository::EXCLUDED => __( 'Excluded', 'kadence-blocks' ),
|
|
Text_Repository::OPTIMIZATION_OUTDATED => __( 'Optimization Outdated', 'kadence-blocks' ),
|
|
Text_Repository::OPTIMIZATION_OUTDATED_RUN => __( 'Optimization Outdated. Run again?', 'kadence-blocks' ),
|
|
]
|
|
);
|
|
}
|
|
}
|