updated lang strings
This commit is contained in:
11
src/lang.ts
11
src/lang.ts
@@ -3,6 +3,9 @@ type LangObjWhold = { [langid:string]: LangObj }
|
||||
|
||||
const LANG: LangObjWhold = {
|
||||
en: {
|
||||
main: {
|
||||
login: 'Logged in as {user}'
|
||||
},
|
||||
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',
|
||||
@@ -11,6 +14,9 @@ const LANG: LangObjWhold = {
|
||||
leave: 'Left the queue'
|
||||
},
|
||||
error: {
|
||||
main: {
|
||||
missingToken: 'Missing Discord Token, please enter the bot token into the token file'
|
||||
},
|
||||
discord: {
|
||||
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}',
|
||||
@@ -22,6 +28,9 @@ const LANG: LangObjWhold = {
|
||||
general: {
|
||||
noMember: 'Unable to retrieve guild member information, please try again',
|
||||
noChannel: 'Unable to retrieve text channel information, please try again'
|
||||
},
|
||||
api: {
|
||||
noUser: 'Unable to find user'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -45,7 +54,7 @@ export namespace Lang {
|
||||
* @param id ex: discord.error.noActiveQueue
|
||||
* @returns language value, defaults to `id` parameter
|
||||
*/
|
||||
export function get(id: string, args: {[keys: string]: any} = {}): string {//discord.error.noActiveQueue
|
||||
export function get(id: string, args: {[keys: string]: string} = {}): string {//discord.error.noActiveQueue
|
||||
|
||||
let keySpl = id.split('.').map(k => k.trim()).filter(k => k);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user