add turkish
This commit is contained in:
@@ -38,7 +38,7 @@ class Contextmenu<x, y>{
|
|||||||
return{};
|
return{};
|
||||||
}
|
}
|
||||||
addsubmenu(
|
addsubmenu(
|
||||||
text: string,
|
text: string|(()=>string),
|
||||||
onclick: (this: x, arg: y, e: MouseEvent) => void,
|
onclick: (this: x, arg: y, e: MouseEvent) => void,
|
||||||
img = null,
|
img = null,
|
||||||
shown: (this: x, arg: y) => boolean = _=>true,
|
shown: (this: x, arg: y) => boolean = _=>true,
|
||||||
|
@@ -302,7 +302,7 @@ class Guild extends SnowFlake{
|
|||||||
[
|
[
|
||||||
"button",
|
"button",
|
||||||
"",
|
"",
|
||||||
I18n.getTranslation("yesLeave"),
|
I18n.getTranslation("guild.yesLeave"),
|
||||||
(_: any)=>{
|
(_: any)=>{
|
||||||
this.leave().then(_=>{
|
this.leave().then(_=>{
|
||||||
full.hide();
|
full.hide();
|
||||||
@@ -312,7 +312,7 @@ class Guild extends SnowFlake{
|
|||||||
[
|
[
|
||||||
"button",
|
"button",
|
||||||
"",
|
"",
|
||||||
I18n.getTranslation("noLeave"),
|
I18n.getTranslation("guild.noLeave"),
|
||||||
(_: any)=>{
|
(_: any)=>{
|
||||||
full.hide();
|
full.hide();
|
||||||
},
|
},
|
||||||
@@ -473,7 +473,7 @@ class Guild extends SnowFlake{
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
"textbox",
|
"textbox",
|
||||||
I18n.getTranslation("serverName"),
|
I18n.getTranslation("guild.serverName"),
|
||||||
"",
|
"",
|
||||||
function(this: HTMLInputElement){
|
function(this: HTMLInputElement){
|
||||||
confirmname = this.value;
|
confirmname = this.value;
|
||||||
@@ -484,7 +484,7 @@ class Guild extends SnowFlake{
|
|||||||
[
|
[
|
||||||
"button",
|
"button",
|
||||||
"",
|
"",
|
||||||
I18n.getTranslation("yesDelete"),
|
I18n.getTranslation("guild.yesDelete"),
|
||||||
(_: any)=>{
|
(_: any)=>{
|
||||||
console.log(confirmname);
|
console.log(confirmname);
|
||||||
if(confirmname !== this.properties.name){
|
if(confirmname !== this.properties.name){
|
||||||
@@ -498,7 +498,7 @@ class Guild extends SnowFlake{
|
|||||||
[
|
[
|
||||||
"button",
|
"button",
|
||||||
"",
|
"",
|
||||||
I18n.getTranslation("noDelete"),
|
I18n.getTranslation("guild.noDelete"),
|
||||||
(_: any)=>{
|
(_: any)=>{
|
||||||
full.hide();
|
full.hide();
|
||||||
},
|
},
|
||||||
|
@@ -106,7 +106,7 @@ class I18n{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
static options(){
|
static options(){
|
||||||
return ["en","ru"]
|
return ["en","ru","tr"]
|
||||||
}
|
}
|
||||||
static setLanguage(lang:string){
|
static setLanguage(lang:string){
|
||||||
if(this.options().indexOf(userLocale)!==-1){
|
if(this.options().indexOf(userLocale)!==-1){
|
||||||
|
@@ -1474,7 +1474,7 @@ class Localuser{
|
|||||||
genSecurity();
|
genSecurity();
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
const connections = settings.addButton("Connections");
|
const connections = settings.addButton(I18n.getTranslation("localuser.connections"));
|
||||||
const connectionContainer = document.createElement("div");
|
const connectionContainer = document.createElement("div");
|
||||||
connectionContainer.id = "connection-container";
|
connectionContainer.id = "connection-container";
|
||||||
|
|
||||||
|
@@ -66,7 +66,7 @@ class Message extends SnowFlake{
|
|||||||
navigator.clipboard.writeText(this.id);
|
navigator.clipboard.writeText(this.id);
|
||||||
});
|
});
|
||||||
Message.contextmenu.addsubmenu(
|
Message.contextmenu.addsubmenu(
|
||||||
"Add reaction",
|
()=>I18n.getTranslation("message.reactionAdd"),
|
||||||
function(this: Message, _, e: MouseEvent){
|
function(this: Message, _, e: MouseEvent){
|
||||||
Emoji.emojiPicker(e.x, e.y, this.localuser).then(_=>{
|
Emoji.emojiPicker(e.x, e.y, this.localuser).then(_=>{
|
||||||
this.reactionToggle(_);
|
this.reactionToggle(_);
|
||||||
@@ -74,7 +74,7 @@ class Message extends SnowFlake{
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
Message.contextmenu.addbutton(
|
Message.contextmenu.addbutton(
|
||||||
"Edit",
|
()=>I18n.getTranslation("message.delete"),
|
||||||
function(this: Message){
|
function(this: Message){
|
||||||
this.setEdit();
|
this.setEdit();
|
||||||
},
|
},
|
||||||
|
@@ -304,7 +304,12 @@
|
|||||||
"noToken":"Don't know token so can't save it to localStorage, sorry",
|
"noToken":"Don't know token so can't save it to localStorage, sorry",
|
||||||
"advancedBot":"Advanced Bot Settings",
|
"advancedBot":"Advanced Bot Settings",
|
||||||
"botInviteCreate":"Bot Invite Creator",
|
"botInviteCreate":"Bot Invite Creator",
|
||||||
"language":"Language:"
|
"language":"Language:",
|
||||||
|
"connections":"Connections"
|
||||||
|
},
|
||||||
|
"message":{
|
||||||
|
"reactionAdd":"Add reaction",
|
||||||
|
"delete":"Delete message"
|
||||||
},
|
},
|
||||||
"instanceStats":{
|
"instanceStats":{
|
||||||
"name":"Instance stats: $1",
|
"name":"Instance stats: $1",
|
||||||
@@ -371,6 +376,6 @@
|
|||||||
"retrying":"Retrying...",
|
"retrying":"Retrying...",
|
||||||
"unableToConnect":"Unable to connect to the Spacebar server. Please try logging out and back in."
|
"unableToConnect":"Unable to connect to the Spacebar server. Please try logging out and back in."
|
||||||
},
|
},
|
||||||
"ru": "/translations/ru.json"
|
"ru": "/translations/ru.json",
|
||||||
"tr": "/translations/tr.json"
|
"tr": "/translations/tr.json"
|
||||||
}
|
}
|
||||||
|
@@ -370,5 +370,5 @@
|
|||||||
"errorReconnect": "Sunucuya bağlanılamadı, **$1** saniye içinde yeniden denenecek...",
|
"errorReconnect": "Sunucuya bağlanılamadı, **$1** saniye içinde yeniden denenecek...",
|
||||||
"retrying": "Yeniden deneniyor...",
|
"retrying": "Yeniden deneniyor...",
|
||||||
"unableToConnect": "Spacebar sunucusuna bağlanılamıyor. Lütfen çıkış yapıp tekrar deneyin."
|
"unableToConnect": "Spacebar sunucusuna bağlanılamıyor. Lütfen çıkış yapıp tekrar deneyin."
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user