Skip to content

Commit 696c5af

Browse files
committed
Feat: Add Sanskrit language support
1 parent 46e852d commit 696c5af

File tree

2 files changed

+291
-0
lines changed

2 files changed

+291
-0
lines changed

src/i18n/i18n.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ import { as, assamese } from "./locales/as";
4949

5050
import { ms, malay } from "./locales/ms";
5151
import { mn, mongolian } from "./locales/mn";
52+
import { sa, sanskrit } from "./locales/sa";
5253

5354
export const languages = [
5455
english,
@@ -98,6 +99,7 @@ export const languages = [
9899
thai,
99100
malay,
100101
mongolian,
102+
sanskrit,
101103
].sort((a, b) => a.name.localeCompare(b.name));
102104

103105
i18n
@@ -157,6 +159,7 @@ i18n
157159
as,
158160
ms,
159161
mn,
162+
sa,
160163
},
161164
});
162165

src/i18n/locales/sa.js

Lines changed: 288 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,288 @@
1+
const sanskrit = {
2+
name: "Sanskrit",
3+
native_name: "संस्कृतम्",
4+
code: "sa",
5+
};
6+
7+
const sa = {
8+
translation: {
9+
report_bug: "Report a bug",
10+
import: "Import",
11+
inherits: "Inherits",
12+
merging_column_w_inherited_definition:
13+
"Column '{{fieldName}}' in table '{{tableName}}' with inherited definition will be merged",
14+
import_from: "Import from",
15+
file: "File",
16+
new: "New",
17+
new_window: "New window",
18+
no_saved_diagrams: "You have no saved diagrams",
19+
open: "Open",
20+
open_recent: "Open Recent",
21+
save: "Save",
22+
save_as: "Save as",
23+
save_as_template: "Save as template",
24+
template_saved: "Template saved!",
25+
rename: "Rename",
26+
delete_diagram: "Delete diagram",
27+
are_you_sure_delete_diagram:
28+
"Are you sure you want to delete this diagram? This operation is irreversible.",
29+
oops_smth_went_wrong: "Oops! Something went wrong.",
30+
import_diagram: "Import diagram",
31+
import_from_source: "Import from SQL",
32+
export_as: "Export as",
33+
export_source: "Export SQL",
34+
models: "Models",
35+
exit: "Exit",
36+
edit: "Edit",
37+
undo: "Undo",
38+
redo: "Redo",
39+
clear: "Clear",
40+
are_you_sure_clear:
41+
"Are you sure you want to clear the diagram? This is irreversible.",
42+
cut: "Cut",
43+
copy: "Copy",
44+
paste: "Paste",
45+
duplicate: "Duplicate",
46+
delete: "Delete",
47+
copy_as_image: "Copy as image",
48+
view: "View",
49+
header: "Menubar",
50+
sidebar: "Sidebar",
51+
issues: "Issues",
52+
presentation_mode: "Presentation mode",
53+
strict_mode: "Strict mode",
54+
field_details: "Field details",
55+
reset_view: "Reset view",
56+
show_grid: "Show grid",
57+
snap_to_grid: "Snap to grid",
58+
show_datatype: "Show datatype",
59+
show_cardinality: "Show cardinality",
60+
theme: "Theme",
61+
light: "Light",
62+
dark: "Dark",
63+
zoom_in: "Zoom in",
64+
zoom_out: "Zoom out",
65+
fullscreen: "Fullscreen",
66+
settings: "Settings",
67+
show_timeline: "Show timeline",
68+
autosave: "Autosave",
69+
panning: "Panning",
70+
show_debug_coordinates: "Show debug coordinates",
71+
transform: "Transform",
72+
viewbox: "View Box",
73+
cursor_coordinates: "Cursor Coordinates",
74+
coordinate_space: "Space",
75+
coordinate_space_screen: "Screen",
76+
coordinate_space_diagram: "Diagram",
77+
table_width: "Table width",
78+
language: "Language",
79+
flush_storage: "Flush storage",
80+
are_you_sure_flush_storage:
81+
"Are you sure you want to flush the storage? This will irreversibly delete all your diagrams and custom templates.",
82+
storage_flushed: "Storage flushed",
83+
help: "Help",
84+
shortcuts: "Shortcuts",
85+
ask_on_discord: "Ask us on Discord",
86+
feedback: "Feedback",
87+
no_changes: "No changes",
88+
loading: "Loading...",
89+
last_saved: "Last saved",
90+
saving: "Saving...",
91+
failed_to_save: "Failed to save",
92+
fit_window_reset: "Fit window / Reset",
93+
zoom: "Zoom",
94+
add_table: "Add table",
95+
add_area: "Add area",
96+
add_note: "Add note",
97+
add_type: "Add type",
98+
to_do: "To-do",
99+
tables: "Tables",
100+
relationships: "Relationships",
101+
subject_areas: "Subject areas",
102+
notes: "Notes",
103+
types: "Types",
104+
search: "Search...",
105+
no_tables: "No tables",
106+
no_tables_text: "Start building your diagram!",
107+
no_relationships: "No relationships",
108+
no_relationships_text: "Drag to connect fields and form relationships!",
109+
no_subject_areas: "No subject areas",
110+
no_subject_areas_text: "Add subject areas to group tables!",
111+
no_notes: "No notes",
112+
no_notes_text: "Use notes to record extra info",
113+
no_types: "No types",
114+
no_types_text: "Make your own custom data types",
115+
no_issues: "No issues were detected.",
116+
strict_mode_is_on_no_issues:
117+
"Strict mode is off so no issues will be displayed.",
118+
name: "Name",
119+
type: "Type",
120+
null: "Null",
121+
not_null: "Not null",
122+
nullable: "Nullable",
123+
primary: "Primary",
124+
unique: "Unique",
125+
autoincrement: "Autoincrement",
126+
default_value: "Default",
127+
check: "Check expression",
128+
this_will_appear_as_is: "*This will appear in the generated script as is.",
129+
comment: "Comment",
130+
add_field: "Add field",
131+
values: "Values",
132+
size: "Size",
133+
precision: "Precision",
134+
set_precision: "Set precision: 'size, digits'",
135+
use_for_batch_input: "Use , for batch input",
136+
indices: "Indices",
137+
add_index: "Add index",
138+
select_fields: "Select fields",
139+
title: "Title",
140+
not_set: "Not set",
141+
foreign: "Foreign",
142+
cardinality: "Cardinality",
143+
on_update: "On update",
144+
on_delete: "On delete",
145+
swap: "Swap",
146+
one_to_one: "One to one",
147+
one_to_many: "One to many",
148+
many_to_one: "Many to one",
149+
content: "Content",
150+
types_info:
151+
"This feature is meant for object-relational DBMSs like PostgreSQL.\nIf used for MySQL or MariaDB a JSON type will be generated with the corresponding json validation check.\nIf used for SQLite it will be translated to a BLOB.\nIf used for MSSQL a type alias to the first field will be generated.",
152+
table_deleted: "Table deleted",
153+
area_deleted: "Area deleted",
154+
note_deleted: "Note deleted",
155+
relationship_deleted: "Relationship deleted",
156+
type_deleted: "Type deleted",
157+
cannot_connect: "Cannot connect, the columns have different types",
158+
copied_to_clipboard: "Copied to clipboard",
159+
create_new_diagram: "Create new diagram",
160+
cancel: "Cancel",
161+
open_diagram: "Open diagram",
162+
rename_diagram: "Rename diagram",
163+
export: "Export",
164+
export_image: "Export image",
165+
create: "Create",
166+
confirm: "Confirm",
167+
last_modified: "Last modified",
168+
drag_and_drop_files: "Drag and drop the file here or click to upload.",
169+
upload_sql_to_generate_diagrams:
170+
"Upload an sql file to autogenerate your tables and columns.",
171+
overwrite_existing_diagram: "Overwrite existing diagram",
172+
only_mysql_supported:
173+
"*For the time being loading only MySQL scripts is supported.",
174+
blank: "Blank",
175+
filename: "Filename",
176+
table_w_no_name: "Declared a table with no name",
177+
duplicate_table_by_name: "Duplicate table by the name '{{tableName}}'",
178+
empty_field_name: "Empty field `name` in table '{{tableName}}'",
179+
empty_field_type: "Empty field `type` in table '{{tableName}}'",
180+
no_values_for_field:
181+
"'{{fieldName}}' field of table '{{tableName}}' is of type `{{type}}` but no values have been specified",
182+
default_doesnt_match_type:
183+
"Default value for field '{{fieldName}}' in table '{{tableName}}' does not match its type",
184+
not_null_is_null:
185+
"'{{fieldName}}' field of table '{{tableName}}' is NOT NULL but has default NULL",
186+
duplicate_fields:
187+
"Duplicate table fields by name '{{fieldName}}' in table '{{tableName}}'",
188+
duplicate_index:
189+
"Duplicate index by name '{{indexName}}' in table '{{tableName}}'",
190+
empty_index: "Index in table '{{tableName}}' indexes no columns",
191+
no_primary_key: "Table '{{tableName}}' has no primary key",
192+
type_with_no_name: "Declared a type with no name",
193+
duplicate_types: "Duplicate types by the name '{{typeName}}'",
194+
type_w_no_fields: "Declared an empty type '{{typeName}}' with no fields",
195+
empty_type_field_name: "Empty field `name` in type '{{typeName}}'",
196+
empty_type_field_type: "Empty field `type` in type '{{typeName}}'",
197+
no_values_for_type_field:
198+
"'{{fieldName}}' field of type '{{typeName}}' is of type `{{type}}` but no values have been specified",
199+
duplicate_type_fields:
200+
"Duplicate type fields by name '{{fieldName}}' in type '{{typeName}}'",
201+
duplicate_reference: "Duplicate reference by the name '{{refName}}'",
202+
circular_dependency: "Circular dependency involving table '{{refName}}'",
203+
timeline: "Timeline",
204+
priority: "Priority",
205+
none: "None",
206+
low: "Low",
207+
medium: "Medium",
208+
high: "High",
209+
sort_by: "Sort by",
210+
my_order: "My order",
211+
completed: "Completed",
212+
alphabetically: "Alphabetically",
213+
add_task: "Add task",
214+
details: "Details",
215+
no_tasks: "You have no tasks yet.",
216+
no_activity: "You have no activity yet.",
217+
move_element: "Move {{name}} to {{coords}}",
218+
edit_area: "{{extra}} Edit area {{areaName}}",
219+
delete_area: "Delete area {{areaName}}",
220+
edit_note: "{{extra}} Edit note {{noteTitle}}",
221+
delete_note: "Delete note {{noteTitle}}",
222+
edit_table: "{{extra}} Edit table {{tableName}}",
223+
delete_table: "Delete table {{tableName}}",
224+
edit_type: "{{extra}} Edit type {{typeName}}",
225+
delete_type: "Delete type {{typeName}}",
226+
add_relationship: "Add relationship",
227+
edit_relationship: "{{extra}} Edit relationship {{refName}}",
228+
delete_relationship: "Delete relationship {{refName}}",
229+
not_found: "Not found",
230+
pick_db: "Choose a database",
231+
generic: "Generic",
232+
generic_description:
233+
"Generic diagrams can be exported to any SQL flavor but support few data types.",
234+
enums: "Enums",
235+
add_enum: "Add enum",
236+
edit_enum: "{{extra}} Edit enum {{enumName}}",
237+
delete_enum: "Delete enum",
238+
enum_w_no_name: "Found enum with no name",
239+
enum_w_no_values: "Found enum '{{enumName}}' with no values",
240+
duplicate_enums: "Duplicate enums with the name '{{enumName}}'",
241+
enum_deleted: "Enum deleted",
242+
no_enums: "No enums",
243+
no_enums_text: "Define enums here",
244+
declare_array: "Declare array",
245+
empty_index_name: "Declared an index with no name in table '{{tableName}}'",
246+
didnt_find_diagram: "Oops! Didn't find the diagram.",
247+
unsigned: "Unsigned",
248+
share: "Share",
249+
unshare: "Unshare",
250+
copy_link: "Copy link",
251+
readme: "README",
252+
failed_to_load: "Failed to load. Make sure the link is correct.",
253+
share_info:
254+
"* Sharing this link will not create a live real-time collaboration session.",
255+
show_relationship_labels: "Show relationship labels",
256+
docs: "Docs",
257+
supported_types: "Supported file types:",
258+
bulk_update: "Bulk update",
259+
multiselect: "Multiselect",
260+
export_saved_data: "Export saved data",
261+
dbml_view: "DBML view",
262+
tab_view: "Tab view",
263+
label: "Label",
264+
many_side_label: "Many(n) side label",
265+
version: "Version",
266+
versions: "Versions",
267+
no_saved_versions: "No saved versions",
268+
record_version: "Record version",
269+
commited_at: "Commited at",
270+
read_only: "Read only",
271+
continue: "Continue",
272+
restore_version: "Restore version",
273+
restore_warning: "Loading another version will overwrite any changes.",
274+
return_to_current: "Return to diagram",
275+
no_changes_to_record: "No changes to record",
276+
click_to_view: "Click to view",
277+
load_more: "Load more",
278+
clear_cache: "Clear cache",
279+
cache_cleared: "Cache cleared",
280+
failed_to_record_version: "Failed to record version",
281+
failed_to_load_diagram: "Failed to load diagram",
282+
see_all: "See all",
283+
insert_sql: "Insert SQL",
284+
upload_file: "Upload file",
285+
},
286+
};
287+
288+
export { sa, sanskrit };

0 commit comments

Comments
 (0)