-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove crossComponentTranslator from Device plugin
- Loading branch information
Showing
7 changed files
with
54 additions
and
48 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
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
29 changes: 29 additions & 0 deletions
29
kolibri/plugins/device/assets/src/views/commonDeviceStrings.js
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,29 @@ | ||
import { createTranslator } from 'kolibri.utils.i18n'; | ||
|
||
const deviceStrings = createTranslator('CommonDeviceStrings', { | ||
emptyTasksMessage: { | ||
message: 'There are no tasks to display', | ||
context: 'Shown as an empty state on pages that display device tasks', | ||
}, | ||
newResourceLabel: { | ||
message: 'New', | ||
context: 'Label that is shown with resources that were added after upgrading the channel', | ||
}, | ||
newChannelLabel: { | ||
message: 'New', | ||
context: 'Refers to CHANNEL; indicates that it was recently updated, imported, and unlocked', | ||
}, | ||
unlistedChannelLabel: { | ||
message: 'Unlisted channel', | ||
context: | ||
'Label for channels that are not listed as public and require knowing a special token to import them', | ||
}, | ||
}); | ||
|
||
export default { | ||
methods: { | ||
deviceString(key, args) { | ||
return deviceStrings.$tr(key, args); | ||
}, | ||
}, | ||
}; |