-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: notifications support custom content formats
- Loading branch information
1 parent
87c3f93
commit 7055808
Showing
10 changed files
with
97 additions
and
22 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
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,20 @@ | ||
import { createI18n } from 'vue-i18n' | ||
import { LARServerService } from './services/LARServerService' | ||
import zhMessages from './messages/zh' | ||
import ruMessages from './messages/ru' | ||
import enMessages from './messages/en' | ||
|
||
// TODO: 先简单点,直接在这里调 getSettings,没有本地缓存 | ||
const { locale = navigator.language } = await LARServerService.getSettings({}) | ||
|
||
export const i18n = createI18n({ | ||
legacy: false, | ||
locale, | ||
// 系统语言没匹配到的话大概率不是中文使用者,所以默认英文 | ||
fallbackLocale: 'en', | ||
messages: { | ||
zh: zhMessages, | ||
ru: ruMessages, | ||
en: enMessages, | ||
}, | ||
}) |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export default { | ||
settings: { | ||
app_settings: 'Appliaction Settings', | ||
default_notice_format: "Channel {'{channelId}'} started recording", | ||
}, | ||
} |
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,5 +1,6 @@ | ||
export default { | ||
settings: { | ||
app_settings: 'Настройки приложения', | ||
default_notice_format: "Канал {'{channelId}'} начал запись", | ||
}, | ||
} |
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,5 +1,6 @@ | ||
export default { | ||
settings: { | ||
app_settings: '应用设置', | ||
default_notice_format: "频道 {'{channelId}'} 开始录制", | ||
}, | ||
} |
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
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