Skip to content

Commit

Permalink
💄 Improve refactor json to js (#4521)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianpumar authored Jan 23, 2024
1 parent 2679125 commit 2d6feb6
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 130 deletions.
2 changes: 1 addition & 1 deletion frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const config: NuxtConfig = {
locales: [
{
code: "en",
file: "en.json",
file: "en.js",
},
],
lazy: true,
Expand Down
128 changes: 128 additions & 0 deletions frontend/translation/en.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
export default {
multi_label_selection: "Multi-label",
ranking: "Ranking",
label_selection: "Label",
text: "Text",
rating: "Rating",
minimize: "Minimize",
select: "Select",
search: "Search",
expand: "Expand",
copied: "Copied",
title: "Title",
annotation: "Annotation",
description: "Description",
useMarkdown: "Use Markdown",
visibleForAnnotators: "Visible for annotators",
allowExtraMetadata: "Allow extra metadata",
extraMetadata: "Extra metadata",
dimension: "Dimension",
visibleOptions: "Visible options",
annotationGuidelines: "Annotation guidelines",
noAnnotationGuidelines: "This dataset has no annotation guidelines",
breadcrumbs: {
home: "Home",
datasetSettings: "settings",
userSettings: "my settings",
},
userSettings: {
title: "My settings",
},
settings: {
title: "Dataset settings",
seeYourDataset: "See your dataset",
editFields: "Edit fields",
editQuestions: "Edit questions",
editMetadata: "Edit metadata properties",
editVectors: "Edit vectors",
deleteDataset: "Delete dataset",
deleteWarning: "Be careful, this action is not reversible",
deleteConfirmation: "Delete confirmation",
deleteConfirmationMessage:
"You are about to delete: <strong>{datasetName}</strong> from workspace <strong>{workspaceName}</strong>. This action cannot be undone",
yesDelete: "Yes, delete",
},
button: {
ignore_and_continue: "Ignore and continue",
},
to_submit_complete_required: "To submit complete \nrequired responses",
some_records_failed_to_annotate: "Some records failed to annotate",
changes_no_submit: "You didn't submit your changes",
bulkAnnotation: {
recordsSelected: "1 record selected | {count} records selected",
recordsViewSettings: "Record size",
fixedHeight: "Collapse records",
defaultHeight: "Expand records",
to_annotate_record_bulk_required: "No record selected",
select_to_annotate: "Select all",
pageSize: "Page size",
},
shortcuts: {
label: "Shortcuts",
pagination: {
go_to_previous_record: "Previous (←)",
go_to_next_record: "Next (→)",
},
},
questions_form: {
discard: "Discard",
submit: "Submit",
draft: "Save as draft",
},
sorting: {
addOtherField: "+ Add another field",
suggestion: {
score: "Suggestion score",
value: "Suggestion value",
},
response: "Response value",
record: "general",
metadata: "metadata",
},
suggestion: {
filter: {
value: "Suggestion values",
score: "Score",
agent: "Agent",
},
plural: "Suggestions",
"suggested-rank": "✨ Suggested rank",
name: "✨ Suggestion",
},
similarity: {
"record-number": "Record number",
findSimilar: "Find similar",
similarTo: "Similar to",
similarityScore: "Similarity Score",
similarUsing: "similar using",
expand: "Expand",
collapse: "Collapse",
},
status: "Status",
filters: "Filters",
filterBy: "Filter by...",
fields: "Fields",
questions: "Questions",
metadata: "Metadata",
vectors: "Vectors",
dangerZone: "Danger zone",
responses: "Responses",
"reset-all": "Reset all",
reset: "Reset",
with: "with",
find: "Find",
cancel: "Cancel",
focus_mode: "Focus view",
bulk_mode: "Bulk view",
update: "Update",
youAreOnlineAgain: "You are online again",
youAreOffline: "You are offline",
argilla: {
api: {
"errors::UnauthorizedError": "Could not validate credentials",
},
},
cloud: {
title: "Cloud",
},
};
124 changes: 0 additions & 124 deletions frontend/translation/en.json

This file was deleted.

5 changes: 0 additions & 5 deletions frontend/translation/index.ts

This file was deleted.

0 comments on commit 2d6feb6

Please sign in to comment.