forked from XplayzHD/Discord-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added persian translations thanks to 𝐀𝐦𝐢𝐫#1267
- Loading branch information
Spiderjockey2
committed
Feb 28, 2021
1 parent
37dae7c
commit ad89396
Showing
14 changed files
with
343 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// This contains language files for the commands | ||
const languageData = { | ||
GUILD_COMMAND_ERROR: 'ین دستور فقط در سرور قابل اجرا است..', | ||
COMMAND_COOLDOWN: (seconds) => `You must wait ${seconds} seconds between each command.`, | ||
BLACKLISTED_CHANNEL: (user) => `**${user}**, that command is disabled in this channel.`, | ||
NOT_NSFW_CHANNEL: 'این دستور فقط در کانال `NSFW` قابل انجام است..', | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if(typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// This contains language files for the commands | ||
const languageData = { | ||
FACT_TITLE: 'رندوم فکت:', | ||
FLIP_CHOICE: (choice) => `${['سر', 'دُم'][choice]}`, | ||
MEME_TITLE: 'از جانب', | ||
MEME_FOOTER: 'تهیه شده توسط', | ||
MISSING_POKEMON: 'این پوکمن وجود ندارد', | ||
RANDOM_RESPONSE: (number) => `Random number: ${number}`, | ||
REMINDER_MESSAGE: (r) => `I'll remind you about \`${r[0]}\` in about ${r[1]}.`, | ||
REMINDER_DESCRIPTION: 'لینک پیام', | ||
REMINDER_RESPONSE: (r) => `${r[0]} your reminder: ${r[1]}`, | ||
REMINDER_TITLE: 'یادآوری', | ||
REMINDER_FOOTER: (time) => `Reminder from ${time} ago.`, | ||
RPS_FIRST: 'شما انتخاب کردید', | ||
RPS_SECOND: 'من انتخاب می کنم', | ||
RPS_RESULT: (winner) => `Result: ${winner} has won!`, | ||
INCORRECT_URBAN: (phrase) => ` Phrase: \`${phrase}\` was not found on the urban dictionary.`, | ||
URBAN_TITLE: (word) => `Definition of ${word}`, | ||
URBAN_DESCRIPTION: (r) => `${r[0]}\n**Example:**\n${r[1]}`, | ||
PERSON_AUTHOR: 'من شخصی را از طریق اینترنت پیدا کردم که اسم اوست ', | ||
PERSON_FOOTER: 'توجه: اینها به طور تصادفی از طریق API تولید می شوند..', | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if(typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// This contains language files for the commands | ||
const languageData = { | ||
SUCCESS_GIVEAWAY: (action) => `Success! Giveaway ${action}!`, | ||
UNKNOWN_GIVEAWAY: (message) => `No giveaway found with Message ID: \`${message}\`, please check and try again.`, | ||
EDIT_GIVEAWAY: (time) => `Success! Giveaway will updated in less than ${time} seconds.`, | ||
INCORRECT_WINNER_COUNT: ' .', | ||
// | ||
GIVEAWAY_DATA: { | ||
giveaway: '** **', | ||
giveawayEnded: '** **', | ||
timeRemaining: ' : **{duration}**!', | ||
inviteToParticipat: ' ', | ||
winMessage: 'Congratulations, {winners}! You won **{prize}**!\n{messageURL}', | ||
noWinner: ' .', | ||
hostedBy: ': {user}', | ||
winners: '()' | ||
endedAt: ' ', | ||
units: { | ||
seconds: '', | ||
minutes: '', | ||
hours: '', | ||
days: '', | ||
}, | ||
}, | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if(typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// This contains language files for the commands | ||
const languageData = { | ||
// Guild commands | ||
AVATAR_TITLE: (user) => `Avatar for ${user}`, | ||
AVATAR_DESCRIPTION: '**لینک:**', | ||
NO_GUILD_ICON: 'این سرور آواتار ندارد.', | ||
GUILD_ICON: 'دانلود', | ||
POLL_TITLE: (username) => `Poll created by ${username}`, | ||
POLL_FOOTER: 'برای رأی دادن ری اکت کنید ..', | ||
|
||
// Role command | ||
ROLE_NAME: (roleName) => `Role | ${roleName}`, | ||
ROLE_MEMBERS: 'ممبرها:', | ||
ROLE_COLOR: 'رنگ:', | ||
ROLE_POSITION: 'موقیعت:', | ||
ROLE_MENTION: 'مونشن:', | ||
ROLE_HOISTED: 'ساخته شده:', | ||
ROLE_MENTIONABLE: 'قابل ذکر است:', | ||
ROLE_PERMISSION: 'مجوز پرمیشن ها:', | ||
ROLE_CREATED: 'ایجاد شده در:', | ||
ROLE_FOOTER: (r) => `Requested by ${r[0]} | Role ID: ${r[1]}`, | ||
// user command | ||
USER_NICKNAME: 'نام مستعار:', | ||
USER_GAME: 'بازی:', | ||
USER_ROLES: (number) => `Roles [${number[0]}/${number[1]}]:`, | ||
USER_JOINED: 'تاریخ پیوستن:', | ||
USER_REGISTERED: 'ثبت شده:', | ||
USER_PERMISSIONS: (number) => `Permissions [${number}/31]:`, | ||
// Server command | ||
GUILD_NAME: 'اسم سرور:', | ||
GUILD_OWNER: 'آونر سرور:', | ||
GUILD_ID: 'آیدی سرور:', | ||
GUILD_CREATED: 'زمان ساخته شدن سرور:', | ||
GUILD_REGION: 'ریجن سرور:', | ||
GUILD_VERIFICATION: 'سطح تأیید:', | ||
GUILD_MEMBER: (number) => `Member count [${number}]:`, | ||
GUILD_FEATURES: 'Features:', | ||
GUILD_ROLES: (number) => `Roles [${number}]:`, | ||
// FOOTER | ||
INFO_FOOTER: (user) => `Requested by: ${user}`, | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if(typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const languageData = { | ||
EVAL_NO_OWNER: '**فکر می کنید چه کاری انجام می دهید؟**', | ||
EVAL_ERROR: (error) => `Error whilst evaluating: \`${error}\``, | ||
EVAL_RESPONSE: (diff) => `*Executed in ${diff[0][0] > 0 ? `${diff[0][0]}s` : ''}${diff[0][1] / 1000000}ms.*\`\`\`javascript\n${diff[1]}\n\`\`\``, | ||
RELOAD_ERROR: (name) => `Could not reload: \`${name}\`.`, | ||
RELOAD_NO_COMMAND: (name) => `${name} isn't a command.`, | ||
RELOAD_SUCCESS: (name) => `Command: \`${name}\` has been reloaded.`, | ||
SHUTDOWN: 'اوه.. باشه خداحافظ :disappointed_relieved:', | ||
SHUTDOWN_ERROR: (error) => `ERROR: ${error}`, | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if(typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const languageData = { | ||
GENERATING_IMAGE: 'در حال تولید تصویر خود ...', | ||
TEXT_OVERLOAD: (number) => `Your message must not be more than ${number} characters.`, | ||
GENERATE_DESC: (images) => `**1 Image is needed**:\n\`${images[0]}\`. \n**2 images is needed**:\n\`${images[1]}\`.`, | ||
INVALID_FILE: 'فرمت فایل در حال حاضر پشتیبانی نمیشود.', | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if(typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const languageData = { | ||
LEADERBOARD_TITLE: 'لیدربورد', | ||
LEADERBOARD_FIELDT: 'داده ای یافت نشد', | ||
LEADERBOARD_FIELDDESC: 'لطفاً برای به دست آوردن اکس پی در گپ تایپ کنید.', | ||
NO_MESSAGES: 'شما فاقد رنک هستند لطفاً کمی پیام دهید تا رنکتان فعال شود.', | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if(typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// This contains language files for the commands | ||
const languageData = { | ||
ABOUT_MEMBERS: 'ممبر ها:', | ||
ABOUT_CHANNELS: 'چنل ها:', | ||
ABOUT_PROCESS: 'روند:', | ||
ABOUT_SERVERS: 'سرور ها:', | ||
ABOUT_MESSAGES: 'پیامها مشاهده شد:', | ||
ABOUT_UPTIME: 'وقت بالا:', | ||
MISSING_COMMAND: 'نه یک کامند نه یک پلاگین.', | ||
NO_COMMAND: 'این یک دستور در حال اجرا بر روی این سرور نیست..', | ||
INVITE_TEXT: 'مرا به سرور خود دعوت کنید', | ||
PRIVACY_POLICY: 'سیاست حفظ حریم خصوصی', | ||
STATUS_PING: 'پینگ:', | ||
STATUS_CLIENT: 'Client API:', | ||
STATUS_MONGO: 'MongoDB:', | ||
SUPPORT_TITLE: (username) => `${username} support`, | ||
SUPPORT_DESC: (websites) => `**Our Server:** [Support Server](${websites[0]})\n **Our website:** [Website](${websites[1]})\n **Git Repo:** [Website](https://github.com/Spiderjockey02/Discord-Bot)`, | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if(typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const languageData = { | ||
// Misc | ||
TOO_POWERFUL: 'من قادر به ممنوعیت استفاده از این کاربر نیستم.', | ||
SELF_PUNISHMENT: 'نمی توانید خودتان را مجازات کنید.', | ||
NOT_INVOICE: (user) => `${user} is not in a voice channel.`, | ||
REASON: (reason) => `**Reason:** ${reason}`, | ||
|
||
// successfull moderation | ||
SUCCESSFULL_BAN: (user) => `*${user} was successfully banned*.`, | ||
SUCCESSFULL_DEAFEN: (user) => `*${user} was successfully deafened*.`, | ||
SUCCESSFULL_MUTE: (user) => `*${user} was successfully muted*.`, | ||
SUCCESSFULL_KICK: (user) => `*${user} was successfully kicked*.`, | ||
SUCCESSFULL_NICK: (user) => `*Successfully changed nickname of ${user}.*`, | ||
SUCCESSFULL_SLOWMODE: (time) => `Slowmode Set to **${time}**.`, | ||
SUCCESSFULL_UNBAN: (user) => `*${user} was successfully unbanned*.`, | ||
SUCCESSFULL_UNMUTE: (user) => `*${user} was successfully unmuted*.`, | ||
SUCCESSFULL_UNDEAFEN: (user) => `*${user} was successfully undeafened*.`, | ||
SUCCESSFULL_REPORT: (user) => `*${user} has been successfully reported*.`, | ||
SUCCESSFULL_WARN: (user) => `${user} has been warned`, | ||
SUCCESSFULL_KWARNS: (user) => `*${user} was successfully kicked for having too many warnings*.`, | ||
// WARNINGS | ||
CLEARED_WARNINGS: (user) => `Warnings for ${user} has been cleared.`, | ||
NO_WARNINGS: 'این کاربر قبلاً هشدار داده نشده است.', | ||
WARNS_TITLE: (user) => `${user}'s warning list.`, | ||
// CLEAR MESSAGES | ||
MESSAGES_DELETED: (messages) => `${messages} messages were successfully deleted.`, | ||
// NICKNAME | ||
ENTER_NICKNAME: 'لطفاً یک نام مستعار وارد کنید.', | ||
LONG_NICKNAME: 'نام مستعار باید کوتاهتر از 32 نویسه باشد.', | ||
UNSUCCESSFULL_NICK: (user) => ` I am unable to change ${user} nickname.`, | ||
// REPORT COMMAND | ||
REPORT_AUTHOR: '~ممبر ریپورت شده است~', | ||
REPORT_MEMBER: 'ممبر:', | ||
REPORT_BY: 'ریپورت شده توسطه:', | ||
REPORT_IN: 'ریپورت شده در:', | ||
REPORT_REASON: 'دلیل:', | ||
// ticket command | ||
TICKET_EXISTS: 'شما از قبل تیکت باز کرده اید', | ||
NO_SUPPORT_ROLE: 'هنوز هیچ رول پشتیبانی در این سرور ایجاد نشده است.', | ||
NOT_SUPPORT: 'شما مجوزهای صحیحی برای بستن این کانال ندارید.', | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if(typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const languageData = { | ||
// error messages | ||
NO_QUEUE: ' .', | ||
NOT_VOICE: ' .', | ||
MISSING_VOICE: ' .', | ||
ERROR: (error) => `There was an error while searching: \`${error}\``, | ||
// incorrect enteries | ||
LEFT_VOICE: ' .', | ||
NO_ARGS: ' / ', | ||
TOO_HIGH: ' 0 100 .', | ||
NO_SONG: ' .', | ||
// pause/resume | ||
ALREADY_PAUSED: (prefix) => `I am already paused, \`${prefix}resume\` to carry on listening.`, | ||
ALREADY_RESUMED: (prefix) => `I am already playing, \`${prefix}pause\` to carry on listening.`, | ||
SUCCESFULL_PAUSE: ' ', | ||
SUCCESFULL_RESUME: ' ', | ||
CHANNEL_MOVE: ' .', | ||
TIME_MOVED: (time) => `Time moved to: \`${time}\`.`, | ||
|
||
SOUND_CURRENT: (volume) => `🔊 The current volume is: **${volume}%**.`, | ||
SOUND_SET: (volume) => `🔊 Player sound set to **${volume}%**.`, | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if(typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const languageData = { | ||
// SUCCESS | ||
LANGUAGE_SET: (language) => `Language has been set to \`${language}\`.`, | ||
LEVEL_SET: (option) => `Level plugin has been set to \`${option}\`.`, | ||
MODERATION_SET: (option) => `Moderation plugin has been set to \`${option}\`.`, | ||
MUSIC_SET: (option) => `Music plugin has been set to \`${option}\`.`, | ||
NSFW_SET: (option) => `NSFW plugin has been set to \`${option}\`.`, | ||
SEARCH_SET: (option) => `Search plugin has been set to \`${option}\`.`, | ||
LOGS_SET: (option) => `Logging plugin has been set to \`${option}\`.`, | ||
// error message | ||
MISSING_LANGUAGE: 'هیچ زبانی انتخاب نشده است.', | ||
NO_LANGUAGE: 'این هنوز زبانی نیست که من از آن پشتیبانی کنم. چرا با عضویت در اینجا به من در یادگیری آن زبان کمک نمی کنید: https://discord.gg/8g6zUQu', | ||
// other success messages | ||
LOG_CHANNEL: (channelID) => `Logging channel updated to: <#${channelID}>`, | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if (typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const languageData = { | ||
UNKNOWN_USER: 'این نام کاربری یافت نشد.', | ||
INCORRECT_IP: '**هیچ سروری با آن IP به موقع پیدا نشد.**', | ||
|
||
WEATHER_TITLE: (place) => `Weather - ${place}`, | ||
WEATHER_DESCRIPTION: 'واحدهای دما ممکن است مدتی متفاوت باشند', | ||
WEATHER_TEMP: 'درجه حرارت:', | ||
WEATHER_SKY: 'متن آسمان:', | ||
WEATHER_HUMIDITY: 'رطوبت:', | ||
WEATHER_SPEED: 'سرعت باد:', | ||
WEATHER_TIME: 'زمان مشاهده:', | ||
WEATHER_DISPLAY: 'نمایشگر WInd:', | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if(typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const languageData = { | ||
ERROR_MESSAGE: 'هنگام اجرای این دستور خطایی روی داد ، لطفاً دوباره امتحان کنید یا با پشتیبانی تماس بگیرید.', | ||
INCORRECT_FORMAT: (commandExample) => `Please use the format: \`${commandExample}\`.`, | ||
MISSING_PERMISSION: (permission) => `I am missing the permission: \`${permission}\`.`, | ||
USER_PERMISSION: (permission) => `You are missing the permission: \`${permission}\`.`, | ||
MISSING_ROLE: 'من نتوانستم این نقش را پیدا کنم.', | ||
NO_REASON: 'هیچ دلیلی ذکر نشده است.', | ||
// external files/plugins | ||
INCORRECT_DELIMITERS: 'لطفاً از یکی از جدا کننده های زمان زیر استفاده کنید: `d`, `h`, `m`, `s`.', | ||
NOT_NUMBER:'باید یک عدد باشد.', | ||
MAX_TIME: 'بیشتر از 10 روز نمی تواند باشد.', | ||
}; | ||
|
||
const translate = (key, args) => { | ||
const translation = languageData[key]; | ||
if(typeof translation === 'function') return translation(args); | ||
else return translation; | ||
}; | ||
|
||
module.exports = translate; |