Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,26 @@ const capabilitiesToTextKeyMap: Record<ServiceTranslationKey, Partial<Record<Cap
},
},
link: {
[ExternalServiceCapabilities.ADD_UPDATE_FILES]: {
false: 'addons.terms.link.add-update-files-false',
},
[ExternalServiceCapabilities.DELETE_FILES]: {
false: 'addons.terms.link.delete-files-false',
},
[ExternalServiceCapabilities.FORKING]: {
partial: 'addons.terms.computing.forking-partial',
partial: 'addons.terms.link.forking-partial',
},
[ExternalServiceCapabilities.LOGS]: {
partial: 'addons.terms.link.logs-partial',
},
[ExternalServiceCapabilities.PERMISSIONS]: {
true: 'addons.terms.link.permissions-true',
},
[ExternalServiceCapabilities.REGISTERING]: {
false: 'addons.terms.link.registering-false',
},
[ExternalServiceCapabilities.FILE_VERSIONS]: {
false: 'addons.terms.link.file-versions-false',
},
},
};
Expand Down Expand Up @@ -138,7 +156,13 @@ export default class TermsOfServiceComponent extends Component<Args> {
this.baseTranslationKey = 'citation';
} else if (args.provider instanceof ExternalLinkServiceModel) {
this.applicableCapabilities = [
ExternalServiceCapabilities.ADD_UPDATE_FILES,
ExternalServiceCapabilities.DELETE_FILES,
ExternalServiceCapabilities.FORKING,
ExternalServiceCapabilities.LOGS,
ExternalServiceCapabilities.PERMISSIONS,
ExternalServiceCapabilities.REGISTERING,
ExternalServiceCapabilities.FILE_VERSIONS,
];
this.baseTranslationKey = 'link';
}
Expand Down
8 changes: 8 additions & 0 deletions translations/en-us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@ addons:
logs-partial: 'The OSF tracks {provider}-generated results that were copied to OSF Storage.'
permissions-partial: "An OSF project's privacy is independent of {provider} privacy."
registering-partial: '{provider}-generated results will be registered as they are stored in OSF Storage.'
link:
add-update-files-false: 'You cannot add or update files for {provider} within OSF.'
delete-files-false: 'You cannot delete files for {provider} within OSF.'
forking-partial: 'Forking a project or component does not copy {provider} authorization unless the user forking the project is the same user who authorized the <Provider> add-on in the source project being forked.'
logs-partial: 'The OSF keeps track of changes you make to your {provider} content through the OSF, but not for changes made using {provider} directly.'
permissions-true: 'The OSF does not change permissions for linked {provider} files. Privacy changes made to an OSF project or component will not affect those set in {provider}.'
registering-false: '{provider} content will not be registered.'
file-versions-false: '{provider} files can be viewed/downloaded outside OSF only. Version history is not supported.'
accountSelect:
heading: 'Log in to {providerName} or select an account'
no-accounts: 'No accounts available'
Expand Down