Skip to content

Commit

Permalink
Translations
Browse files Browse the repository at this point in the history
  • Loading branch information
BobWez98 committed Dec 13, 2024
1 parent 342cb37 commit e7b0f3a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/dist/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resources/js/translation-manager.js": {
"file": "assets/translation-manager-62298d23.js",
"file": "assets/translation-manager-abb289fa.js",
"isEntry": true,
"src": "resources/js/translation-manager.js"
}
Expand Down
21 changes: 8 additions & 13 deletions resources/js/components/fieldtypes/LocaleSelectArrayFieldtype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,28 @@
<table class="data-table">
<thead>
<tr>
<th>Locale</th>
<th>Value</th>
<th>Actions</th>
<th>{{ __('Locale') }}</th>
<th>{{ __('Value') }}</th>
<th>{{ __('Actions') }}</th>
</tr>
</thead>
<tbody>
<tr v-for="(row, index) in rows" :key="index">
<td>
<v-select
v-model="row.key"
:options="configOptions"
label="label"
value-field="value"
placeholder="Select a key"
/>
<v-select v-model="row.key" :options="configOptions" label="label" value-field="value"
:placeholder="__('Select a key')" />
</td>
<td>
<text-input v-model="row.value" placeholder="Enter value" :name="'value-' + index" />
<text-input v-model="row.value" :placeholder="__('Enter value')" :name="'value-' + index" />
</td>
<td>
<button type="button" @click="removeRow(index)">Remove</button>
<button type="button" @click="removeRow(index)">{{ __('Remove')}}</button>
</td>
</tr>
</tbody>
</table>

<button type="button" class="btn-primary" @click="addRow">Add Row</button>
<button type="button" class="btn-primary" @click="addRow">{{ __('Add Row') }}</button>
</div>
</template>

Expand Down

0 comments on commit e7b0f3a

Please sign in to comment.