-
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.
- Loading branch information
1 parent
04b9a15
commit b6fb21a
Showing
6 changed files
with
72 additions
and
2 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,23 @@ | ||
"use strict"; | ||
class ConverterLanguage { | ||
constructor(fileName, fileBits = ["language"]) { | ||
const file = new File(fileBits, fileName); | ||
const reader = new FileReader(); | ||
reader.readAsText(file); | ||
reader.onload = () => { | ||
const result = reader.result; | ||
this.data = JSON.parse(result); | ||
}; | ||
} | ||
getLang(key) { | ||
switch (getLocal()) { | ||
case Local.KOR: | ||
return this.data[key]; | ||
case Local.ENG: | ||
return this.data[key]; | ||
case Local.JAP: | ||
return this.data[key]; | ||
} | ||
} | ||
} | ||
const index = new ConverterLanguage("index.json"); |
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,25 @@ | ||
class ConverterLanguage { | ||
private data: any; | ||
constructor(fileName: string, fileBits: BlobPart[] = ["language"]) { | ||
const file: File = new File(fileBits, fileName); | ||
const reader: FileReader = new FileReader(); | ||
reader.readAsText(file); | ||
reader.onload = (): void => { | ||
const result: string = reader.result as string; | ||
this.data = JSON.parse(result); | ||
} | ||
} | ||
|
||
public getLang(key: string): string { | ||
switch (getLocal()) { | ||
case Local.KOR: | ||
return this.data[key]; | ||
case Local.ENG: | ||
return this.data[key]; | ||
case Local.JAP: | ||
return this.data[key]; | ||
} | ||
} | ||
} | ||
|
||
const index: ConverterLanguage = new ConverterLanguage("index.json"); |
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,3 @@ | ||
{ | ||
"베인 규칙": ["베인 규칙", "Vane Rule", "베인 규칙"] | ||
} |
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,16 @@ | ||
"use strict"; | ||
(function () { | ||
const lc = new LibraryContent("language-java"); | ||
const macosDownload = document.getElementsByClassName("macos_download")[0]; | ||
const windows_download = document.getElementsByClassName("windows_download")[0]; | ||
macosDownload.href = `https://github.com/VaneProject/cut-image/releases/download/${cut_image_version}/CutImage-${cut_image_version}.dmg`; | ||
windows_download.href = `https://github.com/VaneProject/cut-image/releases/download/${cut_image_version}/CutImage-${cut_image_version}.exe`; | ||
setLocal("https://github.com/VaneProject/cut-image/releases"); | ||
setMainLink(lc.getLocal()); | ||
setTitle('Cut Image'); | ||
primaryCreate('cutimage', cut_image_version); | ||
setLicense('https://github.com/VaneProject/.github/blob/main/LICENSE', 'Vane'); | ||
setDeveloper('PersesTitan'); | ||
setLanguage('Java'); | ||
changeIcon(); | ||
}).call(null); |
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