Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the new config structure. #7

Merged
merged 13 commits into from
Sep 17, 2022
Merged

Conversation

Berrysoft
Copy link
Contributor

@Berrysoft Berrysoft commented Sep 16, 2022

Fixes #3

  • Separated paragraphs
  • Separated resources
  • Adjust frontends
  • Adjust examples
  • Lazy load paragraphs & resources
  • Fix bugs
  • Update Ayaka Book

@Berrysoft
Copy link
Contributor Author

Berrysoft commented Sep 16, 2022

Tokio fs 容易崩,这里把它们全删了。

不知道怎么崩的,也不想深究了,不如直接用 std fs。

@Berrysoft Berrysoft marked this pull request as ready for review September 16, 2022 15:43
@Berrysoft
Copy link
Contributor Author

现在的延迟加载机制是

  • 启动时加载 base_lang 对应的资源和文本。
  • 设置某个 locale 时加载对应语言的资源和文本。这一步通常在加载设置时会触发,在设置页面切换语言也会触发。

目前是同步加载的,反正 Tauri 那里有个 Tokio 在。

@Berrysoft Berrysoft merged commit 190240a into Uni-Gal:master Sep 17, 2022
@Berrysoft Berrysoft deleted the dev/new-config branch September 17, 2022 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import other YAML files in config file.
3 participants