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

Added dictionary.js for package settings and accounts #2003

Merged
merged 1 commit into from
May 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 3 additions & 32 deletions accounts/pkg/assets/embed.go

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions accounts/ui/dictionary.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* This file contains strings that should be synced to transifex but not exist in the UI directly,
* moreover, they get loaded for example by API requests
*/

// just a dummy function to trick gettext tools
function $gettext (msg) {
return msg
}

// eslint-disable-next-line no-unused-vars
const dictionary = [
$gettext('Guest'),
$gettext('Admin'),
$gettext('User')
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Added dictionary files

Added the dictionary.js file for package settings and accounts which contains strings
that should be synced to transifex but not exist in the UI directly.

https://github.com/owncloud/ocis/pull/2003
6 changes: 3 additions & 3 deletions settings/pkg/assets/embed.go

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions settings/ui/dictionary.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* This file contains strings that should be synced to transifex but not exist in the UI directly,
* moreover, they get loaded for example by API requests
*/

// just a dummy function to trick gettext tools
function $gettext (msg) {
return msg
}

// eslint-disable-next-line no-unused-vars
const dictionary = [
$gettext('Language')
]