Skip to content

Commit

Permalink
feat: add i18n to subscriptions import page
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Jan 9, 2025
1 parent 9352e96 commit fe42087
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/ExportHistoryModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</label>
</div>
</form>
<button class="btn mt-4" @click="handleExport" v-text="$t('actions.export_history')" />
<button class="btn mt-4" @click="handleExport" v-text="$t('actions.export')" />
</div>
</ModalComponent>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ImportHistoryModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>
<br />
<div>
<a class="btn w-auto" @click="handleImport" v-text="$t('actions.import_history')" />
<a class="btn w-auto" @click="handleImport" v-text="$t('actions.import')" />
</div>
</form>
</div>
Expand Down
8 changes: 5 additions & 3 deletions src/components/ImportPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
<input ref="fileSelector" type="file" @change="fileChange" />
</div>
<div>
<strong v-text="`Selected Subscriptions: ${selectedSubscriptions}`" />
<strong v-text="`${$t('info.selected_subscriptions')}: ${selectedSubscriptions}`" />
</div>
<div>
<strong>Override: <input v-model="override" class="checkbox" type="checkbox" /></strong>
<strong
><span v-t="'actions.override'" />: <input v-model="override" class="checkbox" type="checkbox"
/></strong>
</div>
<div>
<a class="btn w-auto" @click="handleImport">Import</a>
<a v-t="'actions.import'" class="btn w-auto" @click="handleImport" />
</div>
</form>
<br />
Expand Down
7 changes: 5 additions & 2 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@
"export_history": "Export history",
"import_history": "Import history",
"file_format": "File format",
"override": "Override"
"override": "Override",
"import": "Import",
"export": "Export"
},
"comment": {
"pinned_by": "Pinned by {author}",
Expand Down Expand Up @@ -240,6 +242,7 @@
"found_n_items": "Found {0} items",
"success": "Success",
"error": "Error",
"skipped": "Skipped"
"skipped": "Skipped",
"selected_subscriptions": "Selected subscriptions"
}
}

0 comments on commit fe42087

Please sign in to comment.