Registered AR locale in i18n framework service

This commit is contained in:
Melhem Fawaz
2018-03-11 16:27:28 +04:00
parent 75c9269d8d
commit 969b3dbcd5
2 changed files with 485 additions and 0 deletions
+5
View File
@@ -4,6 +4,7 @@ import get from 'lodash/get';
import merge from 'lodash/merge';
import moment from 'moment';
import 'moment/locale/ar';
import 'moment/locale/da';
import 'moment/locale/de';
import 'moment/locale/es';
@@ -12,6 +13,7 @@ import 'moment/locale/pt-br';
import { createStorage } from 'coral-framework/services/storage';
import arTA from 'timeago.js/locales/ar';
import daTA from 'timeago.js/locales/da';
import deTA from 'timeago.js/locales/de';
import esTA from 'timeago.js/locales/es';
@@ -21,6 +23,7 @@ import zh_CNTA from 'timeago.js/locales/zh_CN';
import zh_TWTA from 'timeago.js/locales/zh_TW';
import nl from 'timeago.js/locales/nl';
import ar from '../../../locales/ar.yml';
import en from '../../../locales/en.yml';
import da from '../../../locales/da.yml';
import de from '../../../locales/de.yml';
@@ -33,6 +36,7 @@ import nl_NL from '../../../locales/nl_NL.yml';
const defaultLanguage = process.env.TALK_DEFAULT_LANG;
const translations = {
...ar,
...en,
...da,
...de,
@@ -88,6 +92,7 @@ export function setupTranslations() {
lang = defaultLanguage;
}
ta.register('ar', arTA);
ta.register('es', esTA);
ta.register('da', daTA);
ta.register('de', deTA);
+480
View File
@@ -0,0 +1,480 @@
en:
your_account_has_been_suspended: Your account has been temporarily suspended.
your_account_has_been_banned: Your account has been banned.
your_username_has_been_rejected: Your account has been suspended because your username has been deemed inappropriate. To restore your account please enter a new username.
embed_comments_tab: Comments
bandialog:
are_you_sure: "Are you sure you would like to ban {0}?"
ban_user: "Ban User?"
banned_user: "Banned User"
cancel: "Cancel"
note: "Note: {0}"
note_reject_comment: "Banning this user will also place this comment in the Rejected queue."
note_ban_user: "Banning this user will not let them comment, react to, or report comments."
yes_ban_user: "Yes, Ban User"
write_a_message: "Write a message"
send: "Send"
notify_ban_headline: "Notify the user of ban"
notify_ban_description: "This will notify the user by email that they have been banned from the community"
email_message_ban: "Dear {0},\n\nSomeone with access to your account has violated our community guidelines. As a result, your account has been banned. You will no longer be able to comment, like or report comments. if you think this has been done in error, please contact our community team."
bio_offensive: "This bio is offensive"
cancel: "Cancel"
confirm_email:
click_to_confirm: "Click below to confirm your email address"
confirm: "Confirm"
password_reset:
mail_sent: 'If you have a registered account, a password reset link was sent to that email'
set_new_password: "Change Your Password"
new_password: "New Password"
new_password_help: "Password must be at least 8 characters"
confirm_new_password: "Confirm New Password"
change_password: "Change Password"
characters_remaining: "characters remaining"
comment:
anon: "Anonymous"
undo_reject: "Undo"
ban_user: "Ban User"
comment: "Post a comment"
edited: Edited
flagged: "flagged"
view_context: "View context"
comment_box:
post: "Post"
cancel: "Cancel"
reply: "Reply"
comment: "Post a comment"
name: "Name"
comment_post_notif: "Your comment has been posted."
comment_post_notif_premod: "Thank you for posting. Our moderation team will review your comment shortly."
comment_post_banned_word: "Your comment contains one or more words that are not permitted, so it will not be published. If you think this message is incorrect, please contact our moderation team."
characters_remaining: "characters remaining"
comment_offensive: "This comment is offensive"
comment_singular: Comment
comment_plural: Comments
comment_post_banned_word: "Your comment contains one or more words that are not permitted, so it will not be published. If you think this message is incorrect, please contact our moderation team."
comment_post_notif: "Your comment has been posted."
comment_post_notif_premod: "Thank you for posting. Our moderation team will review your comment shortly."
common:
copy: 'Copy'
error: 'An error has occurred.'
reply: 'reply'
replies: 'replies'
reaction: 'reaction'
reactions: 'reactions'
story: 'Story'
flagged_usernames:
notify_approved: '{0} approved username {1}'
notify_rejected: '{0} rejected username {1}'
notify_flagged: '{0} reported username {1}'
notify_changed: 'user {0} changed their username to {1}'
community:
account_creation_date: "Account Creation Date"
active: Active
admin: Administrator
ads_marketing: "This looks like an ad/marketing"
are_you_sure: "Are you sure you would like to ban {0}?"
ban_user: "Ban User?"
banned: Banned
banned_user: "Banned User"
cancel: Cancel
dont_like_username: "Dislike username"
flaggedaccounts: "Reported Usernames"
flags: Flags
impersonating: "Impersonation"
loading: "Loading results"
moderator: Moderator
newsroom_role: "Newsroom Role"
no_flagged_accounts: "The Reported Usernames queue is currently empty."
no_results: "No users found with that user name or email address. They're hiding!"
offensive: "Offensive"
other: Other
people: People
role: "Select role..."
select_status: "Select status..."
spam_ads: "Spam/Ads"
staff: "Staff"
status: Status
username_and_email: "Username and Email"
yes_ban_user: "Yes Ban User"
commenter: "Commenter"
configure:
apply: Apply
banned_word_text: "Comments which contain these words or phrases (not case-sensitive) will be automatically removed from the comment stream. Type a word and press Enter or Tab to add. Optionally paste a comma-separated list."
banned_words_title: "Banned words list"
close: "Close"
close_after: "Close comments after"
close_stream: "Close Stream"
close_stream_configuration: "This comment stream is currently closed. By opening this comment stream new comments may be submitted and displayed"
closed_comments_desc: "Write a message to be displayed when when your comment stream is closed and no longer accepting comments."
closed_comments_label: "Write a message..."
closed_stream_settings: "Closed Stream Message"
comment_count_error: "Please enter a valid number."
comment_count_header: "Limit Comment Length"
comment_count_text_post: characters
comment_count_text_pre: "Comments will be limited to"
comment_settings: Settings
comment_stream: "Comment Stream"
comment_stream_will_close: "The comment stream will close"
community: Community
configure: Configure
copy_and_paste: "Copy and paste code below into your CMS to embed your comment box in your articles"
custom_css_url: "Custom CSS URL"
custom_css_url_desc: "URL of a CSS stylesheet that will override default Embed Stream styles. Can be internal or external."
days: Days
description: "As an admin, you can customize the settings for the comment stream for this story:"
domain_list_text: "Enter the domains you would like to permit for Talk e.g. your local staging and production environments (ex. localhost:3000 staging.domain.com domain.com)."
domain_list_title: "Permitted Domains"
edit_comment_timeframe_heading: "Edit Comment Timeframe"
edit_comment_timeframe_text_pre: "Commenters will have"
edit_comment_timeframe_text_post: "seconds to edit their comments."
embed_comment_stream: "Embed Stream"
enable_premod_links_text: "Moderators must approve any comment containing a link before it is published."
enable_pre_moderation: "Enable pre-moderation"
enable_pre_moderation_text: "Moderators must approve any comment before it is published."
enable_premod_links: "Pre-Moderate Comments Containing Links"
enable_premod: "Enable Premoderation"
enable_premod_description: "Moderators must approve any comment before it is published."
enable_premod_links_description: "Moderators must approve any comment containing a link before it is published."
enable_questionbox: "Ask Readers a Question"
enable_questionbox_description: "This question will appear at the top of this comment stream. Ask readers about a certain issue in the article or pose discussion questions etc."
hours: Hours
include_comment_stream: "Include Comment Stream Description for Readers"
include_comment_stream_desc: "Write a message to be added to the top of your comment stream. Pose a topic include community guidelines etc."
include_text: "Include your text here."
include_question_here: "Write your question here:"
moderate: Moderate
moderation_settings: "Moderation Settings"
open: "Open"
open_stream: "Open Stream"
open_stream_configuration: "This comment stream is currently open. By closing this comment stream no new comments may be submitted and all previous comments will still be displayed."
require_email_verification: "Require Email Verification"
require_email_verification_text: "New Users must verify their email before commenting"
save_changes: "Save Changes"
shortcuts: Shortcuts
sign_out: "Sign Out"
stories: Stories
stream_settings: "Stream Settings"
suspect_word_title: "Suspect words list"
suspect_word_text: "Comments which contain these words or phrases (not case-sensitive) will be highlighted in the comment stream. Type a word and press Enter or Tab to add. Optionally paste a comma-separated list."
tech_settings: "Tech Settings"
title: "Configure Comment Stream"
weeks: Weeks
wordlist: "Banned Words"
continue: "Continue"
createdisplay:
check_the_form: "Invalid Form. Please check the fields"
continue: "Continue with the same Facebook username"
error_create: "Error when changing username"
fake_comment_body: "This is an example comment. Readers can share their thoughts and opinions with newsrooms in the comments section."
fake_comment_date: "1 minute ago"
if_you_dont_change_your_name: "If you don't change your username at this step your Facebook display name will appear alongside of all your comments."
required_field: "Required field"
save: Save
special_characters: "Usernames can contain letters numbers and _ only"
username: Username
write_your_username: "Edit your username"
your_username: "Your username appears on every comment you post."
done: Done
edit_comment:
body_input_label: "Edit this comment"
save_button: "Save changes"
edit_window_expired: "You can no longer edit this comment. The time window to do so has expired. Why not post another one?"
edit_window_expired_close: "Close"
edit_window_timer_prefix: "Edit Window: "
second: "second"
seconds_plural: "seconds"
minute: "minute"
minutes_plural: "minutes"
email:
suspended:
subject: "Your account has been suspended"
banned:
subject: "Your account has been banned"
body: "In accordance with The Coral Projects community guidelines, your account has been banned. You are now longer allowed to comment, flag or engage with our community."
confirm:
has_been_requested: "A email confirmation has been requested for the following account:"
to_confirm: "To confirm the account, please visit the following link:"
confirm_email: "Confirm Email"
if_you_did_not: "If you did not request this, you can safely ignore this email."
subject: "Email Confirmation"
password_reset:
we_received_a_request: "We received a request to reset your password. If you did not request this change, you can ignore this email."
if_you_did: "If you did,"
please_click: "please click here to reset password"
embedlink:
copy: "Copy to Clipboard"
error:
COMMENT_PARENT_NOT_VISIBLE: "The comment that you're replying to has been removed or doesn't exist."
EMAIL_VERIFICATION_TOKEN_INVALID: "Email verification token is invalid."
PASSWORD_RESET_TOKEN_INVALID: "Your password reset link is invalid."
COMMENT_TOO_SHORT: "Comments should be more than one character, please revise your comment and try again."
NOT_AUTHORIZED: "You are not authorized to perform this action."
NO_SPECIAL_CHARACTERS: "Usernames can contain letters numbers and _ only"
PASSWORD_LENGTH: "Password is too short"
PROFANITY_ERROR: "Usernames must not contain profanity. Please contact the administrator if you believe this to be in error."
RATE_LIMIT_EXCEEDED: "Rate limit exceeded"
USERNAME_IN_USE: "Username already in use"
USERNAME_REQUIRED: "Must input a username"
EMAIL_NOT_VERIFIED: "E-mail address not verified"
EDIT_WINDOW_ENDED: "You can no longer edit this comment. The time window to do so has expired."
EDIT_USERNAME_NOT_AUTHORIZED: "You do not have permission to update your username."
SAME_USERNAME_PROVIDED: "You must submit a different username."
EMAIL_IN_USE: "Email address already in use"
EMAIL_REQUIRED: "An email address is required"
LOGIN_MAXIMUM_EXCEEDED: "You have made too many unsuccessful password attempts. Please wait."
PASSWORD_REQUIRED: "Must input a password"
COMMENTING_CLOSED: "Commenting is already closed"
NOT_FOUND: "Resource not found"
ALREADY_EXISTS: "Resource already exists"
INVALID_ASSET_URL: "Assert URL is invalid"
CANNOT_IGNORE_STAFF: "Cannot ignore Staff members."
email: "Not a valid E-Mail"
confirm_password: "Passwords don't match. Please check again"
network_error: "Failed to connect to server. Check your internet connection and try again."
email_not_verified: "E-mail address {0} not verified."
email_password: "E-mail and/or password combination incorrect."
organization_name: "Organization name must only contain letters or numbers."
password: "Password must be at least 8 characters"
username: "Usernames can contain letters numbers and _ only"
unexpected: "Unexpected error occurred. Sorry!"
required_field: "This field is required"
temporarily_suspended: "Your account is currently suspended. It will be reactivated {0}. Please contact us if you have any questions."
flag_comment: "Report comment"
flag_reason: "Reason for reporting (Optional)"
flag_username: "Report username"
framework:
banned_account_header: "Your account is currently banned."
banned_account_body: "This means that you cannot Like, Report, or write comments."
comment: comment
comment_is_ignored: "This comment is hidden because you ignored this user."
comment_is_rejected: "You have rejected this comment."
comment_is_hidden: "This comment is not available."
comments: comments
configure_stream: "Configure"
content_not_available: "This content is not available"
edit_name:
button: Submit
error: "Usernames can contain letters numbers and _ only"
label: "New Username"
msg: "Your account is currently suspended because your username has been deemed inappropriate. To restore your account please enter a new username. Please contact us if you have any questions."
changed_name:
msg: "Your username change is under review by our moderation team."
my_comments: "My Comments"
my_profile: "My profile"
new_count: "View {0} more {1}"
profile: Profile
show_all_comments: "Show all comments"
success_bio_update: "Your biography has been updated"
success_name_update: "Your username has been updated"
success_update_settings: "The changes you have made have been applied to the comment stream on this article"
show_all_replies: Show all replies
show_more_replies: Show more replies
view_more_comments: "view more comments"
view_reply: "view reply"
from_settings_page: "From the Profile Page you can see your comment history."
like: Like
loading_results: "Loading Results"
marketing: "This looks like an ad/marketing"
moderate_this_stream: "Moderate this stream"
flags:
reasons:
user:
username_offensive: "Offensive"
username_nolike: "Dislike"
username_impersonating: "Impersonation"
username_spam: "Spam"
username_other: "Other"
comment:
comment_offensive: "Offensive"
comment_spam: "Spam"
comment_noagree: "Disagree"
comment_other: "Other"
suspect_word: "Suspect Word"
banned_word: "Banned Word"
body_count: "Body exceeds max length"
trust: "Trust"
links: "Link"
modqueue:
account: "account flags"
actions: Actions
all: all
all_streams: "All Streams"
notify_edited: '{0} edited comment "{1}"'
notify_accepted: '{0} accepted comment "{1}"'
notify_rejected: '{0} rejected comment "{1}"'
notify_flagged: '{0} flagged comment "{1}"'
notify_reset: '{0} reset status of comment "{1}"'
approve: "Approve"
approved: "Approved"
ban_user: "Ban"
billion: B
close: Close
empty_queue: "No more comments to moderate! You're all caught up. Go have some ☕️"
flagged: flagged
reported: reported
less_detail: "Less detail"
likes: likes
million: M
mod_faster: "Moderate faster with keyboard shortcuts"
moderate: "Moderate →"
more_detail: "More detail"
new: New
newest_first: "Newest First"
navigation: Navigation
next_comment: "Go to the next comment"
toggle_search: "Open search"
next_queue: "Switch queues"
oldest_first: "Oldest First"
premod: pre-mod
prev_comment: "Go to the previous comment"
reject: "Reject"
rejected: "Rejected"
reply: "Reply"
select_stream: "Select Stream"
shift_key: "⇧"
shortcuts: "Shortcuts"
sort: "Sort"
show_shortcuts: "Show Shortcuts"
singleview: "Zen mode"
thismenu: "Open this menu"
jump_to_queue: "Jump to specific queue"
thousand: k
try_these: "Try these"
view_more_shortcuts: "View more shortcuts"
my_comment_history: "My comment History"
name: Name
no_agree_comment: "I don't agree with this comment"
no_like_bio: "I don't like this bio"
no_like_username: "I don't like this username"
already_flagged_username: "You have already flagged this username."
other: Other
permalink: Share
personal_info: "This comment reveals personally identifiable information"
post: Post
profile: Profile
profile_settings: "Profile Settings"
reply: Reply
report: Report
report_notif: "Thank you for reporting this comment. Our moderation team has been notified and will review it shortly."
report_notif_remove: "Your report has been removed."
reported: Reported
comment_history_blank:
title: You have not written any comments
info: A history of your comments will appear here
settings:
from_settings_page: "From the Profile Page you can see your comment history."
my_comment_history: "My comment History"
profile: Profile
profile_settings: "Profile Settings"
sign_in: "Sign in"
to_access: "to access Profile"
user_no_comment: "You've never left a comment. Join the conversation!"
stream:
all_comments: "All Comments"
temporarily_suspended: "In accordance with {0}'s community guidelines, your account has been temporarily suspended. Please rejoin the conversation {1}."
comment_not_found: "This comment has been removed or does not exist."
no_comments: "There are no comments yet, why dont you write one?"
no_comments_and_closed: "There were no comments on this article."
step_1_header: "Report an issue"
step_2_header: "Help us understand"
step_3_header: "Thank you for your input"
streams:
all: All
article: Story
closed: Closed
empty_result: "No assets match this search. Maybe try widening your search?"
filter_streams: "Filter Streams"
newest: Newest
oldest: Oldest
open: Open
pubdate: "Publication Date"
search: Search
sort_by: "Sort By"
status: "Stream Status"
stream_status: "Stream Status"
suspenduser:
title_suspend: "Suspend User"
description_suspend: "You are suspending {0}. This comment will go to the Rejected queue, and {0} will not be allowed to like, report, reply or post until the suspension time is complete."
select_duration: "Select suspension duration"
one_hour: "1 hour"
hours: "{0} hours"
days: "{0} days"
hour: "{0} hours"
day: "{0} days"
cancel: "Cancel"
suspend_user: "Suspend User"
email_message_suspend: "Dear {0},\n\nIn accordance with {1}s community guidelines, your account has been temporarily suspended. During the suspension, you will be unable to comment, flag or engage with fellow commenters. Please rejoin the conversation {2}."
title_notify: "Notify the user of their temporary suspension"
notify_suspend_until: "User {0} has been temporarily suspended. This suspension will automatically end {1}."
description_notify: "Suspending this user will temporarily disable their account."
write_message: "Write a message"
send: Send
reject_username:
username: username
no_cancel: "No cancel"
description_reject: "Would you like to temporarily ban this user because of their {0}? Doing so will temporarily suspend this user until they rewrite their {0}."
title_notify: "Notify the user of their temporary suspension"
description_notify: "Suspending this user will temporarily disable their account."
title_reject: "We noticed you rejected a username"
suspend_user: "Suspend User"
yes_suspend: "Yes suspend"
email_message_reject: "Another member of the community recently flagged your username for review. Because of its content your user was rejected. This means you can no longer comment, like, or flag content until you rewrite your username. Please e-mail us if you have any questions or concerns."
write_message: "Write a message"
send: Send
thank_you: "We value your safety and feedback. A moderator will review your report."
user:
bio_flags: "flags for this bio"
user_bio: "User Bio"
username_flags: "flags for this username"
user_detail:
remove_suspension: "Remove Suspension"
suspend: "Suspend User"
remove_ban: "Remove Ban"
ban: "Ban User"
member_since: "Member Since"
email: "Email"
total_comments: "Total Comments"
reject_rate: "Reject Rate"
reports: "Reports"
all: "All"
rejected: "Rejected"
account_history: "Account History"
account_history:
user_banned: "User banned"
ban_removed: "Ban removed"
username_status: "Username {0}"
suspended: "Suspended, {0}"
suspension_removed: "Suspension removed"
system: "System"
date: "Date"
action: "Action"
taken_by: "Taken By"
user_impersonating: "This user is impersonating"
user_no_comment: "You've never left a comment. Join the conversation!"
username_offensive: "This username is offensive"
view_conversation: "View Conversation"
install:
initial:
description: "Let's set up your Talk community in just a few short steps."
submit: "Get Started"
add_organization:
description: "Please tell us the name of your organization. This will appear in emails when inviting new team members."
label: "Organization Name"
save: "Save"
create:
email: "Email address"
username: "Username"
password: "Password"
confirm_password: "Confirm Password"
save: "Save"
permitted_domains:
title: "Permitted domains"
description: "Enter the domains you would like to permit for Talk, e.g. your local, staging and production environments (ex. localhost:3000, staging.domain.com, domain.com)."
submit: "Finish install"
final:
description: "Thanks for installing Talk! We sent an email to verify your email address. While you finish setting up the account, you can start engaging with your readers now."
launch: "Launch Talk"
close: "Close this Installer"
admin_sidebar:
view_options: "View Options"
sort_comments: "Sort Comments"