Skip to content

Commit

Permalink
Merge branch 'fix/i18n' into released
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed May 23, 2019
2 parents c4bbf39 + bd9fa55 commit daa366d
Show file tree
Hide file tree
Showing 30 changed files with 685 additions and 212 deletions.
24 changes: 24 additions & 0 deletions .vscode/i18n.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"Add an i18n message": {
"scope": "json,jsonc",
"prefix": "i18",
"body": ["\"$1\": {", "\"message\": \"$2\"", "},"],
"description": "Add a new message"
}
// Place your maskbook workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
}
2 changes: 1 addition & 1 deletion config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = function override(/** @type{import("webpack").Configuration} */

config.plugins.push(
new (require('write-file-webpack-plugin'))({
test: /(webp|jpg|png|shim|polyfill|js\/.*|index\.html|manifest\.json)/,
test: /(webp|jpg|png|shim|polyfill|js\/.*|index\.html|manifest\.json|_locales)/,
}),
)
// Write files to /public
Expand Down
254 changes: 254 additions & 0 deletions public/_locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
{
"manifest_description": {
"message": "Encrypt your posts & chats on You-Know-Where. Allow only your friends to decrypt."
},
"additional_post_box__placeholder_w_name": {
"message": "Hey $1, what's your mind? Encrypt with Maskbook"
},
"additional_post_box__placeholder_wo_name": {
"message": "What's your mind? Encrypt with Maskbook"
},
"additional_post_box__post_button": {
"message": "📫 Post it!"
},
"additional_post_box__encrypted_post_pre": {
"message": "Decrypt this post with $1"
},
"additional_post_box__encrypted_failed": {
"message": "Encrypted text has been copied into the clipboard!\nHowever, you need to paste it to the post box by yourself."
},
"add_to_key_store_success": {
"message": "Maskbook public key added to keystore ✔"
},
"add_to_key_store_verifying": {
"message": "Maskbook public key found, verifying..."
},
"add_to_key_store_failed_title": {
"message": "Maskbook public key NOT verified ❌"
},
"add_to_key_store_failed_text": {
"message": "$1\nThis public key won't be saved."
},
"decrypted_postbox_title": {
"message": "Maskbook decrypted content:"
},
"decrypted_postbox_add_decryptor": {
"message": "Add decryptor"
},
"decrypted_postbox_verified": {
"message": "Signature verified ✔"
},
"decrypted_postbox_not_verified": {
"message": "Signature NOT verified ❌"
},
"decrypted_postbox_decrypting": {
"message": "Maskbook decrypting..."
},
"decrypted_postbox_failed": {
"message": "Maskbook decryption failed"
},
"search_box_placeholder": {
"message": "Type here to search"
},
"select_all": {
"message": "Select All"
},
"select_none": {
"message": "Select None"
},
"not_found": {
"message": "Not found"
},
"cancel": {
"message": "Cancel"
},
"sharing": {
"message": "Sharing"
},
"share": {
"message": "Share"
},
"restore": {
"message": "Restore"
},
"back": {
"message": "Back"
},
"finish": {
"message": "Finish"
},
"welcome_0_close_button": {
"message": "I'll do it later"
},
"welcome_0_title": {
"message": "Welcome to Maskbook"
},
"welcome_0_description": {
"message": "You can post on Facebook without allowing Facebook to stalk, analyze, and peep into you."
},
"welcome_0_new_user": {
"message": "New user?"
},
"welcome_0_connect_facebook": {
"message": "Connect Facebook"
},
"welcome_0_old_user": {
"message": "Returning user?"
},
"welcome_0_restore_key": {
"message": "Restore Keypair"
},
"welcome_0_caption": {
"message": "Lost your keypair backup? No worry. Simply start as a new user."
},
"welcome_1a2_title": {
"message": "Encrypt message use this postbox"
},
"welcome_1a2_imgalt": {
"message": "Screenshot of how to encrypt message with Maskbook"
},
"welcome_1a2_description": {
"message": "Then only people you selected with Maskbook can see the post content"
},
"welcome_1a2_done_button": {
"message": "Nice!"
},
"welcome_1a3_title": {
"message": "Keep your backups carefully"
},
"welcome_1a3_description1": {
"message": "The first backup has been put in your Downloads folder."
},
"welcome_1a3_description2": {
"message": "And export backups frequently!"
},
"welcome_1a3_done_button": {
"message": "Got it!"
},
"welcome_1a4_auto_radio_aria": {
"message": "Choose how to verify your account"
},
"welcome_1a4_auto_profile_title": {
"message": "Add public key to profile"
},
"welcome_1a4_auto_profile_description1": {
"message": "Easy and lightweight."
},
"welcome_1a4_auto_profile_description2": {
"message": "Never disturb anyone."
},
"welcome_1a4_auto_post_title": {
"message": "Create a verification post"
},
"welcome_1a4_auto_post_description1": {
"message": "We appreciate your valor!"
},
"welcome_1a4_auto_post_description2": {
"message": "Editable after posting."
},
"welcome_1a4_title": {
"message": "Verify Account Ownership"
},
"welcome_1a4_bio_disabled": {
"message": "Sorry, automatically verify your account through bio is not available now."
},
"welcome_1a4_type_auto_subtitle1": {
"message": "Avoid any confusion before your first encrypted post."
},
"welcome_1a4_type_auto_subtitle2": {
"message": "This allows your friends to verify the connection between your Facebook account and your keypair."
},
"welcome_1a4_type_auto_switch": {
"message": "Prefer doing it manually?"
},
"welcome_1a4_type_manual_subtitle1": {
"message": "Add this to bio, or post on timeline, before your first encrypted post."
},
"welcome_1a4_type_manual_subtitle2": {
"message": "This allows your friends to verify the connection between your Facebook account and your keypair."
},
"welcome_1a4_type_manual_goto": {
"message": "Copy & Go to Profile"
},
"welcome_1a4_type_manual_switch": {
"message": "Prefer automating the steps?"
},
"welcome_1b_title": {
"message": "Restore your keypair"
},
"welcome_1b_dragging": {
"message": "Drag your key backup into this dialog"
},
"welcome_1b_no_file_selected": {
"message": "Select your exported key backup"
},
"welcome_1b_file_selected": {
"message": "Selected exported key backup: $1"
},
"welcome_2_title": {
"message": "You're done!"
},
"welcome_2_greeting": {
"message": "You can use Maskbook now!"
},
"banner_title": {
"message": "Welcome to Maskbook"
},
"banner_get_started": {
"message": "Get started"
},
"banner_dismiss_aria": {
"message": "Dismiss the banner"
},
"service_others_key_not_found": {
"message": "$1's public key not found!"
},
"service_publish_post_aes_key_failed": {
"message": "Publish AES key failed!"
},
"service_not_share_target": {
"message": "Maskbook does not find the key used to decrypt this post. Maybe this post is not intended to share with you?"
},
"service_decryption_failed": {
"message": "Decryption failed."
},
"service_unknown_payload": {
"message": "Unknown post version, maybe you should update Maskbook?"
},
"service_key_parse_failed": {
"message": "Key parse failed"
},
"service_have_no_own_key_yet": {
"message": "You have no private key yet"
},
"service_username_invalid": {
"message": "Username not valid"
},
"automation_request_click_post_box": {
"message": "Click the post box please!"
},
"automation_request_click_edit_bio_button": {
"message": "Please click the \"Edit bio\" button or the pencil on the bio box."
},
"automation_request_paste_into_bio_box": {
"message": "Your prove content is write to your clipboard. Please paste into the bio input!"
},
"automation_request_paste_into_post_box": {
"message": "Prove content has been copied into the clipboard!\nHowever, you need to paste it to the post box by yourself."
},
"payload_not_found": {
"message": "Doesn't find payload"
},
"payload_incomplete": {
"message": "This post is not complete, you need to view the full post."
},
"payload_bad": {
"message": "This post seemed to be corrupted. Maskbook cannot decrypt it."
},
"payload_throw_in_alpha41": {
"message": "Support for Alpha41 is dropped. Tell your friends to upgrade Maskbook!"
},
"options_index_welcome": {
"message": "First to Maskbook?"
}
}
Loading

0 comments on commit daa366d

Please sign in to comment.