updated lang strings
This commit is contained in:
14
dist/lang.js
vendored
14
dist/lang.js
vendored
@@ -4,8 +4,17 @@ exports.Lang = void 0;
|
||||
const LANG = {
|
||||
en: {
|
||||
discord: {
|
||||
botRestart: 'The bot has just restarted, anybody previously in the queue has been reset',
|
||||
create: 'A queue for teams of {teamsize} has been created',
|
||||
close: 'Queue has been closed',
|
||||
join: 'Joined the queue',
|
||||
leave: 'Left the queue',
|
||||
error: {
|
||||
noActiveQueue: 'There is not an active queue in this channel, type `/open` to create one'
|
||||
noQueue: 'There is not an active queue in this channel, type `/open` to create one',
|
||||
noChannel: 'Unable to find channel {channelId} for teams of {teamsize}',
|
||||
noCreate: 'There is already an active queue in this channel for teams of ${teamsize}',
|
||||
inQueue: 'You are already in the queue',
|
||||
notInQueue: 'You aren\'t in the queue'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,7 +36,7 @@ var Lang;
|
||||
* @param id ex: discord.error.noActiveQueue
|
||||
* @returns language value, defaults to `id` parameter
|
||||
*/
|
||||
function get(id) {
|
||||
function get(id, args = {}) {
|
||||
let keySpl = id.split('.').map(k => k.trim()).filter(k => k);
|
||||
let finding = LANG[LANGID];
|
||||
for (let key of keySpl) {
|
||||
@@ -44,4 +53,3 @@ var Lang;
|
||||
}
|
||||
Lang.get = get;
|
||||
})(Lang = exports.Lang || (exports.Lang = {}));
|
||||
debugger;
|
||||
|
||||
Reference in New Issue
Block a user