How to set up custom i18n folders without using the Extension

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
iwpress
Posts: 16
Joined: 04 Feb 2024, 17:22

How to set up custom i18n folders without using the Extension

Post by iwpress » 10 Feb 2024, 18:21

Hello,

Can you please tell me if I need to change only some 'i18n' files and don't want to use the extension, is it possible to make a setting in config/shop.php to use my own 'i18n' folder, something like this:

Code: Select all

'i18n' => [
		'client/html' => [
			'en' => [
				'catalog' => '/lang/en/catalog',
				'admin' => '/lang/en/admin',
				// other modules and their languages
			],
			// other languages
		],
		'admin/jqadm' => [
			'en' => [
				'admin' => '/lang/en/admin',
				'catalog' => '/lang/en/catalog',
				// other modules and their languages
			],
			// other languages
		],
		// other sections and their languages
	],
I'm sorry, I haven't found anywhere to read about it yet.

Best Regards

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: How to set up custom i18n folders without using the Extension

Post by aimeos » 12 Feb 2024, 14:17

The translations must be part of the ./config/shop.php file and referencing other files isn't possible:

Code: Select all

	'i18n' => [
		'client/html' => [
			'en' => [
				'Product' => ['Article', 'Articles'],
			],
			// other languages
		],
		'admin/jqadm' => [
			'en' => [
				'customers' => ['Users'],
			],
			// other languages
		],
		// other sections and their languages
	],
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply