<!-- Individual values -->
<?php foreach ($locales as $code => $name): ?>
    <?php
        $value = $this->getLocaleValue($code);
        $value = $this->isLocaleFieldJsonable() ? json_encode($value) : $value;
        if (is_array($value)) $value = array_first($value);
    ?>
    <input
        type="hidden"
        name="<?= $field->getName('RLTranslate['.$code.']') ?>"
        value="<?= e($value) ?>"
        data-locale-value="<?= $code ?>"
        <?= $field->getAttributes() ?>
    />
<?php endforeach ?>
