Skip to content

Commit

Permalink
:note: i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Nov 19, 2023
1 parent f683f53 commit 5e42eac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/components/config/default-setting.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
import { setting } from "@/settings";
import { i18n } from "@/utils";
const I18N = i18n.defaultSetting;
export let group: string = "";
export let display: boolean = true;
export let settingValue = {};
export let descriptioin = I18N.descriptioin;
const SettingItemsValue = {
protyleScroll: setting.protyleScroll,
protyleBreadcrumb: setting.protyleBreadcrumb,
Expand Down Expand Up @@ -71,7 +75,6 @@
];
});
const I18N = i18n.defaultSetting;
const dispatch = createEventDispatcher();
Expand All @@ -88,7 +91,7 @@
on:changed={onChanged}
>
<div slot="top" class="fn__flex b3-label">
💡 {I18N.descriptioin}
💡 {descriptioin}
</div>
</SettingPanel>

Expand Down
3 changes: 2 additions & 1 deletion src/components/docs-flow/docs-flow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Author : Yp Z
Date : 2023-07-28 20:49:27
FilePath : /src/components/docs-flow/docs-flow.svelte
LastEditTime : 2023-11-19 20:05:27
LastEditTime : 2023-11-19 20:09:35
Description :
-->
<script lang="ts">
Expand Down Expand Up @@ -115,6 +115,7 @@
let settingComp = new DefaultSetting({
target: ele,
props: {
descriptioin: i18n.defaultSetting.descriptioinSpecific,
settingValue: {
protyleScroll: config.scroll,
protyleBreadcrumb: config.breadcrumb,
Expand Down
1 change: 1 addition & 0 deletions src/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"defaultSetting": {
"descriptioin": "Note: This setting will serve as the default configuration for each document flow.",
"descriptioinSpecific": "Note: The settings will only take effect in the current document flow.",
"scrollMode": {
"title": "Scroll Mode",
"text": "Fixed height for a single document, scroll to load its internal content. It can save memory resources when dealing with large documents."
Expand Down
1 change: 1 addition & 0 deletions src/i18n/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"defaultSetting": {
"descriptioin": "注: 本小节设置会作为每个文档流的默认配置",
"descriptioinSpecific": "注: 本小节设置会仅在当前文档流生效",
"scrollMode": {
"title": "滚动模式",
"text": "单个文档固定高度, 滚动加载其内部内容, 在单个文档较大时, 可以节省内存资源"
Expand Down

0 comments on commit 5e42eac

Please sign in to comment.