Database diagrams editor that allows you to visualize and design your DB with a single query.
TypeScript databasedbdb-migrationeditorerdmariadbmssqlmysqlpostgresqlreactreact-flowschema-migrationssqlsqlitetypescriptvisualizationxyflow
fix(i18n): add Vietnamese translations (#435)
Huy Bui6c65c2e9cce6
diff --git a/src/i18n/i18n.ts b/src/i18n/i18n.tsindex c308ef86..b3bf53c2 100644--- a/src/i18n/i18n.ts+++ b/src/i18n/i18n.ts@@ -20,6 +20,7 @@ import { tr, trMetadata } from './locales/tr';import { id_ID, id_IDMetadata } from './locales/id_ID';import { te, teMetadata } from './locales/te';import { gu, guMetadata } from './locales/gu';+import { vi, viMetadata } from './locales/vi';export const languages: LanguageMetadata[] = [enMetadata,@@ -40,6 +41,7 @@ export const languages: LanguageMetadata[] = [id_IDMetadata,teMetadata,guMetadata,+ viMetadata,];const resources = {@@ -61,6 +63,7 @@ const resources = {id_ID,te,gu,+ vi,};i18n.use(LanguageDetector)diff --git a/src/i18n/locales/vi.ts b/src/i18n/locales/vi.tsnew file mode 100644index 00000000..e8025bef--- /dev/null+++ b/src/i18n/locales/vi.ts@@ -0,0 +1,394 @@+import type { LanguageMetadata } from '../types';++export const vi = {+ translation: {+ menu: {+ file: {+ file: 'Tệp',+ new: 'Tạo mới',+ open: 'Mở',+ save: 'Lưu',+ import_database: 'Nhập cơ sở dữ liệu',+ export_sql: 'Xuất SQL',+ export_as: 'Xuất thành',+ delete_diagram: 'Xóa sơ đồ',+ exit: 'Thoát',+ },+ edit: {+ edit: 'Sửa',+ undo: 'Hoàn tác',+ redo: 'Làm lại',+ clear: 'Xóa',+ },+ view: {+ view: 'Xem',+ show_sidebar: 'Hiển thị thanh bên',+ hide_sidebar: 'Ẩn thanh bên',+ hide_cardinality: 'Ẩn số lượng',+ show_cardinality: 'Hiển thị số lượng',+ zoom_on_scroll: 'Thu phóng khi cuộn',+ theme: 'Chủ đề',+ show_dependencies: 'Hiển thị các phụ thuộc',+ hide_dependencies: 'Ẩn các phụ thuộc',+ },+ share: {+ share: 'Chia sẻ',+ export_diagram: 'Xuất sơ đồ',+ import_diagram: 'Nhập sơ đồ',+ },+ help: {+ help: 'Trợ giúp',+ visit_website: 'Truy cập ChartDB',+ join_discord: 'Tham gia Discord',+ schedule_a_call: 'Trò chuyện cùng chúng tôi!',+ },+ },++ delete_diagram_alert: {+ title: 'Xóa sơ đồ',+ description:+ 'Không thể hoàn tác hành động này. Thao tác này sẽ xóa vĩnh viễn sơ đồ.',+ cancel: 'Hủy',+ delete: 'Xóa',+ },++ clear_diagram_alert: {+ title: 'Xóa dữ liệu trong sơ đồ',+ description:+ 'Không thể hoàn tác hành động này. Thao tác này sẽ xóa vĩnh viễn mọi dữ liệu trong sơ đồ.',+ cancel: 'Hủy',+ clear: 'Xóa',+ },++ reorder_diagram_alert: {+ title: 'Sắp xếp lại sơ đồ',+ description:+ 'Hành động này sẽ sắp xếp lại tất cả các bảng trong sơ đồ. Bạn có muốn tiếp tục không?',+ reorder: 'Sắp xếp',+ cancel: 'Hủy',+ },++ multiple_schemas_alert: {+ title: 'Có nhiều lược đồ',+ description:+ 'Có {{schemasCount}} lược đồ trong sơ đồ này. Hiện đang hiển thị: {{formattedSchemas}}.',+ dont_show_again: 'Không hiển thị lại',+ change_schema: 'Thay đổi',+ none: 'không có',+ },++ theme: {+ system: 'Hệ thống',+ light: 'Sáng',+ dark: 'Tối',+ },++ zoom: {+ on: 'Bật',+ off: 'Tất',+ },++ last_saved: 'Đã lưu lần cuối',+ saved: 'Đã lưu',+ diagrams: 'Sơ đồ',+ loading_diagram: 'Đang tải sơ đồ...',+ deselect_all: 'Bỏ chọn tất cả',+ select_all: 'Chọn tất cả',+ clear: 'Xóa',+ show_more: 'Hiển thị thêm',+ show_less: 'Hiển thị ít hơn',+ copy_to_clipboard: 'Sao chép vào Clipboard',+ copied: 'Đã sao chép!',++ side_panel: {+ schema: 'Lược đồ:',+ filter_by_schema: 'Lọc bởi lược đồ',+ search_schema: 'Tìm kiếm lược đồ...',+ no_schemas_found: 'Không tìm thấy lược đồ.',+ view_all_options: 'Xem tất cả tùy chọn...',+ tables_section: {+ tables: 'Bảng',+ add_table: 'Thêm bảng',+ filter: 'Lọc',+ collapse: 'Thu gọn tất cả',++ table: {+ fields: 'Trường',+ nullable: 'Có thể NULL?',+ primary_key: 'Khóa chính',+ indexes: 'Chỉ mục',+ comments: 'Bình luận',+ no_comments: 'Không có bình luận',+ add_field: 'Thêm trường',+ add_index: 'Thêm chỉ mục',+ index_select_fields: 'Chọn trường',+ no_types_found: 'Không tìm thấy',+ field_name: 'Tên trường',+ field_type: 'Loại trường',+ field_actions: {+ title: 'Thuộc tính trường',+ unique: 'Giá trị duy nhất',+ comments: 'Bình luận',+ no_comments: 'Không có bình luận',+ delete_field: 'Xóa trường',+ },+ index_actions: {+ title: 'Thuộc tính chỉ mục',+ name: 'Tên',+ unique: 'Giá trị duy nhất',+ delete_index: 'Xóa chỉ mục',+ },+ table_actions: {+ title: 'Hành động',+ change_schema: 'Thay đổi lược đồ',+ add_field: 'Thêm trường',+ add_index: 'Thêm chỉ mục',+ duplicate_table: 'Nhân đôi bảng',+ delete_table: 'Xóa bảng',+ },+ },+ empty_state: {+ title: 'Không có bảng',+ description: 'Tạo một bảng để bắt đầu',+ },+ },+ relationships_section: {+ relationships: 'Quan hệ',+ filter: 'Lọc',+ add_relationship: 'Thêm quan hệ',+ collapse: 'Thu gọn tất cả',+ relationship: {+ primary: 'Bảng khóa chính',+ foreign: 'Bảng khóa ngoại',+ cardinality: 'Quan hệ',+ delete_relationship: 'Xóa',+ relationship_actions: {+ title: 'Hành động',+ delete_relationship: 'Xóa',+ },+ },+ empty_state: {+ title: 'Không có quan hệ',+ description: 'Tạo quan hệ để kết nối các bảng',+ },+ },+ dependencies_section: {+ dependencies: 'Phụ thuộc',+ filter: 'Lọc',+ collapse: 'Thu gọn tất cả',+ dependency: {+ table: 'Bảng',+ dependent_table: 'Bảng xem phụ thuộc',+ delete_dependency: 'Xóa',+ dependency_actions: {+ title: 'Hành động',+ delete_dependency: 'Xóa',+ },+ },+ empty_state: {+ title: 'Không có phụ thuộc',+ description: 'Tạo bảng xem phụ thuộc để bắt đầu',+ },+ },+ },++ toolbar: {+ zoom_in: 'Phóng to',+ zoom_out: 'Thu nhỏ',+ save: 'Lưu',+ show_all: 'Hiển thị tất cả',+ undo: 'Hoàn tác',+ redo: 'Làm lại',+ reorder_diagram: 'Sắp xếp lại sơ đồ',+ highlight_overlapping_tables: 'Làm nổi bật các bảng chồng chéo',+ },++ new_diagram_dialog: {+ database_selection: {+ title: 'Cơ sở dữ liệu của bạn là gì?',+ description:+ 'Mỗi cơ sở dữ liệu có những tính năng và khả năng riêng biệt.',+ check_examples_long: 'Xem ví dụ',+ check_examples_short: 'Ví dụ',+ },++ import_database: {+ title: 'Nhập cơ sở dữ liệu của bạn',+ database_edition: 'Loại:',+ step_1: 'Chạy lệnh này trong cơ sở dữ liệu của bạn:',+ step_2: 'Dán kết quả vào đây:',+ script_results_placeholder: 'Kết quả...',+ ssms_instructions: {+ button_text: 'Hướng dẫn SSMS',+ title: 'Hướng dẫn',+ step_1: 'Đi đến Tools > Options > Query Results > SQL Server.',+ step_2: 'Nếu bạn đang sử dụng "Results to Grid," thay đổi Maximum Characters Retrieved cho Non-XML (đặt thành 9999999).',+ },+ instructions_link: 'Cần trợ giúp? Xem ngay',+ check_script_result: 'Xem kết quả',+ },++ cancel: 'Hủy',+ import_from_file: 'Nhập từ tệp',+ back: 'Trở lại',+ empty_diagram: 'Sơ đồ trống',+ continue: 'Tiếp tục',+ import: 'Nhập',+ },++ open_diagram_dialog: {+ title: 'Mở sơ đồ',+ description: 'Chọn sơ đồ để mở từ danh sách bên dưới.',+ table_columns: {+ name: 'Tên',+ created_at: 'Tạo vào lúc',+ last_modified: 'Lần cuối chỉnh sửa',+ tables_count: 'Số bảng',+ },+ cancel: 'Hủy',+ open: 'Mở',+ },++ export_sql_dialog: {+ title: 'Xuất SQL',+ description: 'Xuất sơ đồ của bạn sang {{databaseType}}',+ close: 'Đóng',+ loading: {+ text: 'AI đang tạo SQL cho {{databaseType}}...',+ description: 'Việc này có thể mất khoảng 30 giây.',+ },+ error: {+ message:+ 'Lỗi khi tạo SQL. Vui lòng thử lại sau hoặc <0>liên hệ với chúng tôi</0>.',+ description:+ 'Bạn có thể sử dụng OPENAI_TOKEN, xem hướng dẫn <0>tại đây</0>.',+ },+ },++ create_relationship_dialog: {+ title: 'Tạo quan hệ',+ primary_table: 'Bảng chính',+ primary_field: 'Khóa chính',+ referenced_table: 'Bảng tham chiếu',+ referenced_field: 'Khóa tham chiếu',+ primary_table_placeholder: 'Chọn bảng',+ primary_field_placeholder: 'Chọn trường',+ referenced_table_placeholder: 'Chọn bảng',+ referenced_field_placeholder: 'Chọn trường',+ no_tables_found: 'Không tìm thấy bảng',+ no_fields_found: 'Không tìm thấy trường',+ create: 'Tạo',+ cancel: 'Hủy',+ },++ import_database_dialog: {+ title: 'Nhập vào sơ đồ hiện tại',+ override_alert: {+ title: 'Nhập cơ sở dữ liệu',+ content: {+ alert: 'Việc nhập sơ đồ này sẽ ảnh hưởng đến các bảng và mối quan hệ hiện có.',+ new_tables:+ '<bold>{{newTablesNumber}}</bold> bảng mới sẽ được thêm vào.',+ new_relationships:+ '<bold>{{newRelationshipsNumber}}</bold> quan hệ mới sẽ được tạo.',+ tables_override:+ '<bold>{{tablesOverrideNumber}}</bold> bảng sẽ bị ghi đè.',+ proceed: 'Bạn có muốn tiếp tục không?',+ },+ import: 'Nhập',+ cancel: 'Hủy',+ },+ },++ export_image_dialog: {+ title: 'Xuất ảnh',+ description: 'Chọn tỉ lệ để xuất:',+ scale_1x: '1x Thông thường',+ scale_2x: '2x (Khuyến khích)',+ scale_3x: '3x',+ scale_4x: '4x',+ cancel: 'Hủy',+ export: 'Xuất',+ },++ new_table_schema_dialog: {+ title: 'Chọn lược đồ',+ description:+ 'Nhiều lược đồ hiện đang được hiển thị. Chọn một lược đồ cho bảng mới.',+ cancel: 'Hủy',+ confirm: 'Xác nhận',+ },++ update_table_schema_dialog: {+ title: 'Thay đổi lược đồ',+ description: 'Cập nhật lược đồ bảng "{{tableName}}"',+ cancel: 'Hủy',+ confirm: 'Xác nhận',+ },++ star_us_dialog: {+ title: 'Hãy giúp chúng tôi cải thiện!',+ description:+ 'Bạn có muốn ủng hộ chúng tôi bằng cách gắn sao trên GitHub không? Chỉ cần một cú nhấp chuột là được!',+ close: 'Chưa phải bây giờ',+ confirm: 'Dĩ nhiên rồi!',+ },+ export_diagram_dialog: {+ title: 'Xuất sơ đồ',+ description: 'Chọn định dạng để xuất:',+ format_json: 'JSON',+ cancel: 'Hủy',+ export: 'Xuất',+ error: {+ title: 'Lỗi khi xuất sơ đồ',+ description:+ 'Có gì đó không ổn. Cần trợ giúp? [email protected]',+ },+ },++ import_diagram_dialog: {+ title: 'Nhập sơ đồ',+ description: 'Dán sơ đồ ở dạng JSON bên dưới:',+ cancel: 'Hủy',+ import: 'Nhập',+ error: {+ title: 'Lỗi khi nhập sơ đồ',+ description:+ 'Sơ đồ ở dạng JSON không hợp lệ. Vui lòng kiểm tra JSON và thử lại. Bạn cần trợ giúp? [email protected]',+ },+ },+ relationship_type: {+ one_to_one: 'Quan hệ một-một',+ one_to_many: 'Quan hệ một-nhiều',+ many_to_one: 'Quan hệ nhiều-một',+ many_to_many: 'Quan hệ nhiều-nhiều',+ },++ canvas_context_menu: {+ new_table: 'Tạo bảng mới',+ new_relationship: 'Tạo quan hệ mới',+ },++ table_node_context_menu: {+ edit_table: 'Sửa bảng',+ duplicate_table: 'Nhân đôi bảng',+ delete_table: 'Xóa bảng',+ },++ snap_to_grid_tooltip: 'Căn lưới (Giữ phím {{key}})',++ tool_tips: {+ double_click_to_edit: 'Nhấp đúp để chỉnh sửa',+ },++ language_select: {+ change_language: 'Ngôn ngữ',+ },+ },+};++export const viMetadata: LanguageMetadata = {+ name: 'Vietnamese',+ nativeName: 'Tiếng Việt',+ code: 'vi',+};