feat: add snjs package
This commit is contained in:
18
packages/snjs/lib/Strings/Confirm.ts
Normal file
18
packages/snjs/lib/Strings/Confirm.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { ProtocolExpirationDates, ProtocolVersion } from '@standardnotes/common'
|
||||
|
||||
export const ConfirmStrings = {
|
||||
ProtocolVersionExpired(version: ProtocolVersion) {
|
||||
return {
|
||||
Message:
|
||||
'The encryption version for your account is outdated and requires upgrade. ' +
|
||||
'You may proceed with login, but are advised to perform a security update using the web or desktop application.\n\n' +
|
||||
`If your account was created after ${ProtocolExpirationDates[
|
||||
version
|
||||
]?.toLocaleString()}, it may not be safe to continue signing in. ` +
|
||||
'In that case, please discontinue your sign in request and contact support.\n\n' +
|
||||
'For more information, visit standardnotes.com/help/security.',
|
||||
Title: 'Update Recommended',
|
||||
ConfirmButton: 'Sign In',
|
||||
}
|
||||
},
|
||||
}
|
||||
7
packages/snjs/lib/Strings/Info.ts
Normal file
7
packages/snjs/lib/Strings/Info.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export const InfoStrings = {
|
||||
AccountDeleted: 'Your account has been successfully deleted.',
|
||||
UnsupportedBackupFileVersion:
|
||||
'This backup file was created using a newer version of the application and cannot be imported here. Please update your application and try again.',
|
||||
BackupFileMoreRecentThanAccount:
|
||||
"This backup file was created using a newer encryption version than your account's. Please run the available encryption upgrade and try again.",
|
||||
}
|
||||
3
packages/snjs/lib/Strings/Input.ts
Normal file
3
packages/snjs/lib/Strings/Input.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const InputStrings = {
|
||||
FileAccountPassword: 'File account password',
|
||||
}
|
||||
9
packages/snjs/lib/Strings/Network.ts
Normal file
9
packages/snjs/lib/Strings/Network.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export const NetworkStrings = {
|
||||
Files: {
|
||||
FailedStartUploadSession: 'Failed to start an upload session.',
|
||||
FailedCloseUploadSession: 'Failed to close an upload session.',
|
||||
FailedUploadFileChunk: 'Failed to upload file chunk.',
|
||||
FailedDownloadFileChunk: 'Failed to download file chunk.',
|
||||
FailedDeleteFile: 'Failed to delete file.',
|
||||
},
|
||||
}
|
||||
11
packages/snjs/lib/Strings/index.ts
Normal file
11
packages/snjs/lib/Strings/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ConfirmStrings } from './Confirm'
|
||||
import { InfoStrings } from './Info'
|
||||
import { InputStrings } from './Input'
|
||||
import { NetworkStrings } from './Network'
|
||||
|
||||
export const Strings = {
|
||||
Info: InfoStrings,
|
||||
Network: NetworkStrings,
|
||||
Confirm: ConfirmStrings,
|
||||
Input: InputStrings,
|
||||
}
|
||||
Reference in New Issue
Block a user