-
-
Save nghuuphuoc/aad83c7353095b4cd5e7e68bc1c7d386 to your computer and use it in GitHub Desktop.
React PDF viewer: Using different locales
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"askingPassword": { | |
"requirePasswordToOpen": "This document requires a password to open", | |
"submit": "Submit" | |
}, | |
"attachment": { | |
"clickToDownload": "Click to download", | |
"noAttachment": "There is no attachment" | |
}, | |
"bookmark": { | |
"noBookmark": "There is no bookmark" | |
}, | |
"main": { | |
"dragDropFile": "Drag and drop a PDF document here" | |
}, | |
"moreActions": { | |
"documentProperties": "Document Properties", | |
"goToFirstPage": "Go to First Page", | |
"goToLastPage": "Go to Last Page", | |
"handTool": "Hand Tool", | |
"horizontalScrolling": "Horizontal Scrolling", | |
"rotateBackward": "Rotate Counterclockwise", | |
"rotateForward": "Rotate Clockwise", | |
"textSelectionTool": "Text Selection Tool", | |
"verticalScrolling": "Vertical Scrolling", | |
"wrappedScrolling": "Wrapped Scrolling" | |
}, | |
"property": { | |
"author": "Author", | |
"close": "Close", | |
"creationDate": "Creation date", | |
"creator": "Creator", | |
"fileName": "File name", | |
"fileSize": "File size", | |
"keywords": "Keywords", | |
"modificationDate": "Modification date", | |
"pageCount": "Page count", | |
"pdfProducer": "PDF producer", | |
"pdfVersion": "PDF Version", | |
"subject": "Subject", | |
"title": "Title" | |
}, | |
"search": { | |
"close": "Close", | |
"enterToSearch": "Enter to search", | |
"matchCase": "Match case", | |
"nextMatch": "Next match", | |
"previousMatch": "Previous match", | |
"wholeWords": "Whole words" | |
}, | |
"sidebar": { | |
"attachment": "Attachment", | |
"bookmark": "Bookmark", | |
"thumbnail": "Thumbnail" | |
}, | |
"toolbar": { | |
"download": "Download", | |
"fullScreen": "Full screen", | |
"moreActions": "More actions", | |
"nextPage": "Next page", | |
"openFile": "Open file", | |
"previousPage": "Previous page", | |
"search": "Search", | |
"toggleSidebar": "Toggle sidebar", | |
"zoomIn": "Zoom in", | |
"zoomOut": "Zoom out" | |
}, | |
"wrongPassword": { | |
"submit": "Submit", | |
"tryAgain": "The password is wrong. Please try again" | |
}, | |
"zoom": { | |
"actualSize": "Actual size", | |
"pageFit": "Page fit", | |
"pageWidth": "Page width" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Viewer, { LocalizationMap } from 'pdfviewer'; | |
import vi_VN from './vi_VN.json'; | |
const LocalizationTest: React.FC<{}> = () => { | |
return ( | |
<Viewer | |
fileUrl="/path/to/document.pdf" | |
localization={(vi_VN as any) as LocalizationMap} | |
/> | |
); | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"askingPassword": { | |
"requirePasswordToOpen": "Tập tin yêu cầu mật khẩu để mở", | |
"submit": "Gửi đi" | |
}, | |
"attachment": { | |
"clickToDownload": "Nhấn vào để tải về", | |
"noAttachment": "Không có tập tin đính kèm nào" | |
}, | |
"bookmark": { | |
"noBookmark": "Không có đánh dấu nào" | |
}, | |
"main": { | |
"dragDropFile": "Kéo và thả tập tin PDF ở đây" | |
}, | |
"moreActions": { | |
"documentProperties": "Thông Tin Tập Tin", | |
"goToFirstPage": "Đi Đến Trang Đầu", | |
"goToLastPage": "Đi Đến Trang Cuối", | |
"handTool": "Cầm Tay", | |
"horizontalScrolling": "Cuộn Ngang", | |
"rotateBackward": "Xoay Ngược Chiều Kim Đồng Hồ", | |
"rotateForward": "Xoay Chiều Kim Đồng Hồ", | |
"textSelectionTool": "Chọn Văn Bản", | |
"verticalScrolling": "Cuộn Dọc", | |
"wrappedScrolling": "Cuộn Lưới" | |
}, | |
"property": { | |
"author": "Tác giả", | |
"close": "Đóng", | |
"creationDate": "Ngày tạo", | |
"creator": "Người tạo", | |
"fileName": "Tên tệp tin", | |
"fileSize": "Kích thước tệp tin", | |
"keywords": "Từ khoá", | |
"modificationDate": "Ngày chỉnh sửa", | |
"pageCount": "Số trang", | |
"pdfProducer": "Phần mềm tạo PDF", | |
"pdfVersion": "Phiên bản PDF", | |
"subject": "Chủ đề", | |
"title": "Tiêu đề" | |
}, | |
"search": { | |
"close": "Đóng", | |
"enterToSearch": "Nhấn Enter để tìm", | |
"matchCase": "Giống chữ hoa thường", | |
"nextMatch": "Kết quả tiếp theo", | |
"previousMatch": "Kết quả trước", | |
"wholeWords": "Toàn bộ từ" | |
}, | |
"sidebar": { | |
"attachment": "Đính kèm", | |
"bookmark": "Đánh dấu", | |
"thumbnail": "Hình nhỏ" | |
}, | |
"toolbar": { | |
"download": "Tải về", | |
"fullScreen": "Toàn màn hình", | |
"moreActions": "Nhiều tác vụ khác", | |
"nextPage": "Trang kế", | |
"openFile": "Mở tập tin", | |
"previousPage": "Trang trước", | |
"search": "Tìm kiếm", | |
"toggleSidebar": "Đóng/mở thanh bên", | |
"zoomIn": "Phóng to", | |
"zoomOut": "Thu nhỏ" | |
}, | |
"wrongPassword": { | |
"submit": "Gửi đi", | |
"tryAgain": "Mật khẩu không đúng. Xin thử lại" | |
}, | |
"zoom": { | |
"actualSize": "Kích thước thực sự", | |
"pageFit": "Vừa trang", | |
"pageWidth": "Vừa chiều rộng" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment