Files
esun3d/app/code/Esun/Translation/etc/adminhtml/system.xml
T
2026-09-15 10:35:56 +08:00

61 lines
4.0 KiB
XML

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="services" translate="label" sortOrder="900">
<label>Services</label>
</tab>
<section id="esun_translation" translate="label" sortOrder="910" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Esun Translation</label>
<tab>services</tab>
<resource>Esun_Translation::config</resource>
<group id="general" translate="label" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>General</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="source_locale" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Source Locale</label>
<comment>Locale name passed to the AI service for default content values.</comment>
</field>
<field id="source_store_id" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Source Store ID</label>
<comment>Use 0 for default/admin product values. CMS content uses the selected source item values.</comment>
</field>
<field id="translatable_attributes" translate="label comment" type="textarea" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Translatable Product Attributes</label>
<comment>Comma-separated product attribute codes. CMS Page and CMS Block use built-in field sets.</comment>
</field>
<field id="language_groups" translate="label comment" type="textarea" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Language Store View Groups</label>
<comment>One group per line: Label|target_locale|store_code_1,store_code_2. Example: German|de|us_DE,de_DE</comment>
</field>
</group>
<group id="ai" translate="label" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
<label>AI Provider</label>
<field id="provider" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Provider</label>
<source_model>Esun\Translation\Model\Config\Source\Provider</source_model>
</field>
<field id="api_base_url" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
<label>API Base URL</label>
</field>
<field id="api_key" translate="label" type="obscure" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
<label>API Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
</field>
<field id="model" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Model</label>
</field>
<field id="temperature" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Temperature</label>
</field>
<field id="timeout" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Timeout Seconds</label>
</field>
</group>
</section>
</system>
</config>