-
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
vincent-the-gamer
committed
Feb 3, 2024
1 parent
4cdeeb5
commit b1e9c4e
Showing
12 changed files
with
889 additions
and
325 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# v1.0.5 | ||
- i18n ( [#4](https://github.com/Vincent-the-gamer/Nemassler/issues/4) ) | ||
|
||
# v1.0.4 | ||
- Typescriptify | ||
- Filter non-mp3 files in mp3 folder( #3 ) | ||
- Filter non-mp3 files in mp3 folder( [#3](https://github.com/Vincent-the-gamer/Nemassler/issues/3) ) |
Large diffs are not rendered by default.
Oops, something went wrong.
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,21 @@ | ||
{ | ||
"other-func": "Other function", | ||
"anime-pics": "Anime Pics", | ||
"ncm2mp3": "ncm to mp3", | ||
"description": "Put .ncm files into ncm folder, then click the button", | ||
"ncmInput": "ncm input directory", | ||
"mp3Output": "mp3 output directory", | ||
"songcoverOutput": "songcover output directory", | ||
"convertAll": "Convert All", | ||
"filterNonMp3": "Filter out non-mp3 files", | ||
"calcBPM": "Calculate BPM", | ||
"bpmDescription": "Choose existing mp3 file (xxx.mp3) in your custom mp3 folder to calculate BPM", | ||
"bpmNoFile": "No mp3 file to calculate!", | ||
"bpmRefresh": "Refresh", | ||
"audioHandler": "Audio Handler", | ||
"hentaiMode": "Hentai Mode", | ||
"howMany": "How many pics do you want", | ||
"getPic": "Fetch pic", | ||
"empty": "Empty piclist", | ||
"picShowArea": "Pic Show Area" | ||
} |
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,26 @@ | ||
import { addMessages, init, locale } from "svelte-i18n" | ||
|
||
import en from "./en.json" | ||
import zh from "./zh.json" | ||
|
||
export default function i18n(){ | ||
const storageLocale = localStorage.getItem("initLocale") | ||
addMessages("zh", zh) | ||
addMessages("en", en) | ||
|
||
let initialLocale = "en" | ||
|
||
if(storageLocale) { | ||
initialLocale = storageLocale | ||
} | ||
|
||
// on locale change | ||
locale.subscribe(value => { | ||
localStorage.setItem("initLocale", value!) | ||
}) | ||
|
||
init({ | ||
fallbackLocale: "zh", | ||
initialLocale | ||
}) | ||
} |
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,21 @@ | ||
{ | ||
"other-func": "其他功能", | ||
"anime-pics": "妹子图片", | ||
"ncm2mp3": "ncm转mp3", | ||
"description": "将.ncm后缀文件放入ncm文件夹,然后点击以下按钮即可批量转mp3", | ||
"ncmInput": "ncm输入路径", | ||
"mp3Output": "mp3输出路径", | ||
"songcoverOutput": "歌曲封面输出路径", | ||
"convertAll": "批量转mp3", | ||
"filterNonMp3": "删除mp3文件夹中非mp3后缀文件", | ||
"calcBPM": "计算BPM", | ||
"bpmDescription": "选择文件夹里面已有的mp3文件 (xxx.mp3), 计算BPM", | ||
"bpmNoFile": "没有待检测bpm的mp3文件", | ||
"bpmRefresh": "刷新", | ||
"audioHandler": "音频处理", | ||
"hentaiMode": "绅士(Hentai)模式", | ||
"howMany": "你要几张图片", | ||
"getPic": "获取图片", | ||
"empty": "清空图片列表", | ||
"picShowArea": "图片展示区" | ||
} |
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
Oops, something went wrong.