Commit 8e3c4dc3 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/strings' into 'main'

fix strings

See merge request !127
parents a4d24f66 38b25771
Pipeline #20579 passed with stages
in 6 minutes
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"assetsPath": "/neos-assets", "assetsPath": "/neos-assets",
"cardImgUrl": "https://cdn02.moecube.com:444/images/ygopro-images-zh-CN", "cardImgUrl": "https://cdn02.moecube.com:444/images/ygopro-images-zh-CN",
"cardsDbUrl": "https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb", "cardsDbUrl": "https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb",
"stringsUrl": "https://cdn02.moecube.com:444/ygopro-database/zh-CN/strings.conf",
"ui": { "ui": {
"ground": { "ground": {
"width": 9.9, "width": 9.9,
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"assetsPath": "https://cdn02.moecube.com:444/neos/neos-assets", "assetsPath": "https://cdn02.moecube.com:444/neos/neos-assets",
"cardImgUrl": "https://cdn02.moecube.com:444/images/ygopro-images-zh-CN", "cardImgUrl": "https://cdn02.moecube.com:444/images/ygopro-images-zh-CN",
"cardsDbUrl": "https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb", "cardsDbUrl": "https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb",
"stringsUrl": "https://cdn02.moecube.com:444/ygopro-database/zh-CN/strings.conf",
"ui": { "ui": {
"ground": { "ground": {
"width": 9.9, "width": 9.9,
......
import axios from "axios"; import axios from "axios";
import NeosConfig from "../../neos.config.json";
export async function initStrings() { export async function initStrings() {
const strings = ( const strings = (await axios.get<string>(NeosConfig.stringsUrl)).data;
await axios.get<string>(`ygopro-database/locales/zh-CN/strings.conf`)
).data;
const lineIter = strings.split("\n"); const lineIter = strings.split("\n");
for (const line of lineIter) { for (const line of lineIter) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment