Skip to content

Commit 9bb7c09

Browse files
author
BenjaminDelacombaz
committed
Add reset translation
1 parent 4960428 commit 9bb7c09

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

js/Components/TableReset.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@
1919
clip-rule="evenodd"
2020
/>
2121
</svg>
22-
<span>Reset</span>
22+
<span>{{ translations.reset ?? 'Reset' }}</span>
2323
</button>
2424
</template>
2525

2626
<script setup>
2727
import {inject} from "vue";
28+
import { getTranslations } from "../translations.js";
29+
30+
const translations = getTranslations();
2831
2932
defineProps({
3033
onClick: {

js/translations.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const translationsObject = {
66
per_page: "per page",
77
previous: "Previous",
88
results: "results",
9-
to: "to"
9+
to: "to",
10+
reset: "Reset",
1011
}
1112
};
1213

0 commit comments

Comments
 (0)