add turkish
This commit is contained in:
parent
7771bd385c
commit
26ac410da9
7 changed files with 18 additions and 13 deletions
|
@ -38,7 +38,7 @@ class Contextmenu<x, y>{
|
|||
return{};
|
||||
}
|
||||
addsubmenu(
|
||||
text: string,
|
||||
text: string|(()=>string),
|
||||
onclick: (this: x, arg: y, e: MouseEvent) => void,
|
||||
img = null,
|
||||
shown: (this: x, arg: y) => boolean = _=>true,
|
||||
|
|
|
@ -302,7 +302,7 @@ class Guild extends SnowFlake{
|
|||
[
|
||||
"button",
|
||||
"",
|
||||
I18n.getTranslation("yesLeave"),
|
||||
I18n.getTranslation("guild.yesLeave"),
|
||||
(_: any)=>{
|
||||
this.leave().then(_=>{
|
||||
full.hide();
|
||||
|
@ -312,7 +312,7 @@ class Guild extends SnowFlake{
|
|||
[
|
||||
"button",
|
||||
"",
|
||||
I18n.getTranslation("noLeave"),
|
||||
I18n.getTranslation("guild.noLeave"),
|
||||
(_: any)=>{
|
||||
full.hide();
|
||||
},
|
||||
|
@ -473,7 +473,7 @@ class Guild extends SnowFlake{
|
|||
],
|
||||
[
|
||||
"textbox",
|
||||
I18n.getTranslation("serverName"),
|
||||
I18n.getTranslation("guild.serverName"),
|
||||
"",
|
||||
function(this: HTMLInputElement){
|
||||
confirmname = this.value;
|
||||
|
@ -484,7 +484,7 @@ class Guild extends SnowFlake{
|
|||
[
|
||||
"button",
|
||||
"",
|
||||
I18n.getTranslation("yesDelete"),
|
||||
I18n.getTranslation("guild.yesDelete"),
|
||||
(_: any)=>{
|
||||
console.log(confirmname);
|
||||
if(confirmname !== this.properties.name){
|
||||
|
@ -498,7 +498,7 @@ class Guild extends SnowFlake{
|
|||
[
|
||||
"button",
|
||||
"",
|
||||
I18n.getTranslation("noDelete"),
|
||||
I18n.getTranslation("guild.noDelete"),
|
||||
(_: any)=>{
|
||||
full.hide();
|
||||
},
|
||||
|
|
|
@ -106,7 +106,7 @@ class I18n{
|
|||
}
|
||||
}
|
||||
static options(){
|
||||
return ["en","ru"]
|
||||
return ["en","ru","tr"]
|
||||
}
|
||||
static setLanguage(lang:string){
|
||||
if(this.options().indexOf(userLocale)!==-1){
|
||||
|
|
|
@ -1474,7 +1474,7 @@ class Localuser{
|
|||
genSecurity();
|
||||
}
|
||||
{
|
||||
const connections = settings.addButton("Connections");
|
||||
const connections = settings.addButton(I18n.getTranslation("localuser.connections"));
|
||||
const connectionContainer = document.createElement("div");
|
||||
connectionContainer.id = "connection-container";
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ class Message extends SnowFlake{
|
|||
navigator.clipboard.writeText(this.id);
|
||||
});
|
||||
Message.contextmenu.addsubmenu(
|
||||
"Add reaction",
|
||||
()=>I18n.getTranslation("message.reactionAdd"),
|
||||
function(this: Message, _, e: MouseEvent){
|
||||
Emoji.emojiPicker(e.x, e.y, this.localuser).then(_=>{
|
||||
this.reactionToggle(_);
|
||||
|
@ -74,7 +74,7 @@ class Message extends SnowFlake{
|
|||
}
|
||||
);
|
||||
Message.contextmenu.addbutton(
|
||||
"Edit",
|
||||
()=>I18n.getTranslation("message.delete"),
|
||||
function(this: Message){
|
||||
this.setEdit();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue