Skip to content

Commit 4c7b5fa

Browse files
committed
add transaltions to doc
1 parent 8cdf611 commit 4c7b5fa

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

adminforth/documentation/docs/tutorial/03-Customization/07-alert.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Create a Vue component in the custom directory of your project, e.g. Alerts.vue:
1313
```html title="./custom/Alerts.vue"
1414
<template>
1515
<div class="ml-3 mt-16">
16-
<button @click="callAlert('Example success alert')" class="focus:outline-none text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800">{{$t('Call alert')}}</button>
16+
<button @click="callAlert($t('Example success alert'))" class="focus:outline-none text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800">{{$t('Call alert')}}</button>
1717
<button @click="callConfirmation" class="focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900">{{$t('Confirmation')}}</button>
18-
<button @click="callAlert('Example danger alert','warning')" class="focus:outline-none text-white bg-orange-500 hover:bg-orange-400 focus:ring-4 focus:ring-orange-100 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:bg-orange-600 dark:hover:bg-orange-700 dark:focus:ring-orange-900">{{$t('Danger alert')}}</button>
18+
<button @click="callAlert($t('Example danger alert'),'warning')" class="focus:outline-none text-white bg-orange-500 hover:bg-orange-400 focus:ring-4 focus:ring-orange-100 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:bg-orange-600 dark:hover:bg-orange-700 dark:focus:ring-orange-900">{{$t('Danger alert')}}</button>
1919
</div>
2020
</template>
2121
<script setup>

adminforth/documentation/docs/tutorial/03-Customization/08-pageInjections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Now create file `CustomLoginFooter.vue` in the `custom` folder of your project:
213213
```html title="./custom/CustomLoginFooter.vue"
214214
<template>
215215
<div class="text-center text-gray-500 text-sm mt-4">
216-
By logging in, you agree to our <a href="#" class="text-blue-500">Terms of Service</a> and <a href="#" class="text-blue-500">Privacy Policy</a>
216+
{{$t('By logging in, you agree to our')}} <a href="#" class="text-blue-500">{{$t('Terms of Service')}}</a> {{$t('and')}} <a href="#" class="text-blue-500">{{$t('Privacy Policy')}}</a>
217217
</div>
218218
</template>
219219
```

adminforth/documentation/docs/tutorial/03-Customization/13-standardPagesTuning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ Sometimes you might need to create a link that will open the create form with so
277277
},
278278
}"
279279
>
280-
Create new apartment
280+
{{$t('Create new apartment')}}
281281
</LinkButton>
282282
...
283283
</template>

adminforth/spa/src/components/GroupsTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
class="w-full"
5858
v-if="column.foreignResource"
5959
:options="columnOptions[column.name] || []"
60-
:placeholder = "columnOptions[column.name]?.length ?'Select...': 'There are no options available'"
60+
:placeholder = "columnOptions[column.name]?.length ?$t('Select...'): $t('There are no options available')"
6161
:modelValue="currentValues[column.name]"
6262
@update:modelValue="setCurrentValue(column.name, $event)"
6363
></Select>

0 commit comments

Comments
 (0)