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 @@
"assetsPath": "/neos-assets",
"cardImgUrl": "https://cdn02.moecube.com:444/images/ygopro-images-zh-CN",
"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": {
"ground": {
"width": 9.9,
......
......@@ -9,6 +9,7 @@
"assetsPath": "https://cdn02.moecube.com:444/neos/neos-assets",
"cardImgUrl": "https://cdn02.moecube.com:444/images/ygopro-images-zh-CN",
"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": {
"ground": {
"width": 9.9,
......
import axios from "axios";
import NeosConfig from "../../neos.config.json";
export async function initStrings() {
const strings = (
await axios.get<string>(`ygopro-database/locales/zh-CN/strings.conf`)
).data;
const strings = (await axios.get<string>(NeosConfig.stringsUrl)).data;
const lineIter = strings.split("\n");
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