Client: Full localization, dynamic title

This commit is contained in:
Donkie
2023-07-13 22:20:54 +02:00
parent e5ef306aa2
commit f21834ce2d
22 changed files with 546 additions and 264 deletions

View File

@@ -1,70 +1,4 @@
{
"pages": {
"login": {
"title": "Sign in to your account",
"signin": "Sign in",
"signup": "Sign up",
"divider": "or",
"fields": {
"email": "Email",
"password": "Password"
},
"errors": {
"validEmail": "Invalid email address"
},
"buttons": {
"submit": "Login",
"forgotPassword": "Forgot password?",
"noAccount": "Dont have an account?",
"rememberMe": "Remember me"
}
},
"forgotPassword": {
"title": "Forgot your password?",
"fields": {
"email": "Email"
},
"errors": {
"validEmail": "Invalid email address"
},
"buttons": {
"submit": "Send reset instructions"
}
},
"register": {
"title": "Sign up for your account",
"fields": {
"email": "Email",
"password": "Password"
},
"errors": {
"validEmail": "Invalid email address"
},
"buttons": {
"submit": "Register",
"haveAccount": "Have an account?"
}
},
"updatePassword": {
"title": "Update password",
"fields": {
"password": "New Password",
"confirmPassword": "Confirm new password"
},
"errors": {
"confirmPasswordNotMatch": "Passwords do not match"
},
"buttons": {
"submit": "Update"
}
},
"error": {
"info": "You may have forgotten to add the {{action}} component to {{resource}} resource.",
"404": "Sorry, the page you visited does not exist.",
"resource404": "Are you sure you have created the {{resource}} resource.",
"backHome": "Back Home"
}
},
"actions": {
"list": "List",
"create": "Create",
@@ -87,7 +21,9 @@
"undo": "Undo",
"import": "Import",
"clone": "Clone",
"notAccessTitle": "You don't have permission to access"
"notAccessTitle": "You don't have permission to access",
"hideColumns": "Hide Columns",
"clearFilters": "Clear Filters"
},
"warnWhenUnsavedChanges": "Are you sure you want to leave? You have unsaved changes.",
"notifications": {
@@ -103,25 +39,33 @@
"importProgress": "Importing: {{processed}}/{{total}}"
},
"loading": "Loading",
"version": "Version",
"tags": {
"clone": "Clone"
},
"dashboard": {
"title": "Dashboard"
},
"spools": {
"spools": "Spools",
"spool": {
"spool": "Spools",
"fields": {
"id": "Id",
"filament_name": "Filament Name",
"filament_name": "Filament",
"filament": "Filament",
"used_weight": "Used Weight",
"remaining_weight": "Remaining Weight",
"location": "Location",
"lot_nr": "Lot Nr",
"first_used": "First Used",
"last_used": "Last Used",
"registered": "Registered",
"comment": "Comment"
},
"fields_help": {
"used_weight": "How much filament has been used from the spool. A new spool should have 0g used.",
"location": "Where the spool is located if you have multiple locations where you store your spools.",
"lot_nr": "Manufacturer's lot number. Can be used to ensure a print has consistent color if multiple spools are used."
},
"titles": {
"create": "Create Spool",
"clone": "Clone Spool",
@@ -130,11 +74,12 @@
"show": "Show Spool"
}
},
"filaments": {
"filaments": "Filaments",
"filament": {
"filament": "Filaments",
"fields": {
"id": "Id",
"vendor_name": "Vendor Name",
"vendor_name": "Vendor",
"vendor": "Vendor",
"name": "Name",
"material": "Material",
"price": "Price",
@@ -149,6 +94,14 @@
"settings_bed_temp": "Bed Temp",
"color_hex": "Color"
},
"fields_help": {
"name": "Filament name, to distinguish this filament type among others from the same vendor. Should contain the color for example.",
"material": "E.g. PLA, ABS, PETG, etc.",
"price": "Price of a full spool in the system configured currency.",
"weight": "The filament weight of a full spool (net weight). This should not include the weight of the spool itself, only the filament. It is what is usually written on the packaging.",
"spool_weight": "The weight of an empty spool. Currently not used for anything, but could be used by thirdparty apps to e.g. calculate the filament weight from a weight measurement.",
"article_number": "E.g. EAN, UPC, etc."
},
"titles": {
"create": "Create Filament",
"clone": "Clone Filament",
@@ -157,8 +110,8 @@
"show": "Show Filament"
}
},
"vendors": {
"vendors": "Vendors",
"vendor": {
"vendor": "Vendors",
"fields": {
"id": "Id",
"name": "Name",
@@ -175,5 +128,30 @@
},
"table": {
"actions": "Actions"
},
"documentTitle": {
"default": "Spoolman",
"suffix": " | Spoolman",
"filament": {
"list": "Filaments | Spoolman",
"show": "#{{id}} Show Filament | Spoolman",
"edit": "#{{id}} Edit Filament | Spoolman",
"create": "Create Filament | Spoolman",
"clone": "#{{id}} Clone Filament | Spoolman"
},
"spool": {
"list": "Spools | Spoolman",
"show": "#{{id}} Show Spool | Spoolman",
"edit": "#{{id}} Edit Spool | Spoolman",
"create": "Create Spool | Spoolman",
"clone": "#{{id}} Clone Spool | Spoolman"
},
"vendor": {
"list": "Vendors | Spoolman",
"show": "#{{id}} Show Vendor | Spoolman",
"edit": "#{{id}} Edit Vendor | Spoolman",
"create": "Create Vendor | Spoolman",
"clone": "#{{id}} Clone Vendor | Spoolman"
}
}
}