mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
mobile: add missing localizations
This commit is contained in:
committed by
Abdullah Atta
parent
40ae83dcad
commit
d28d34fad1
@@ -217,7 +217,7 @@ Logged in: ${user ? "yes" : "no"}`,
|
||||
{strings.issueNotice[0]()}{" "}
|
||||
<Text
|
||||
onPress={() => {
|
||||
Linking.openURL("https://github.com/streetwriters/notesnook");
|
||||
Linking.openURL("https://github.com/streetwriters/notesnook/issues");
|
||||
}}
|
||||
style={{
|
||||
textDecorationLine: "underline",
|
||||
|
||||
@@ -289,14 +289,11 @@ export const useEditor = (
|
||||
|
||||
const saveTimer = setTimeout(() => {
|
||||
DatabaseLogger.log(`Note save timeout: ${id}...`);
|
||||
ToastManager.error(
|
||||
new Error(
|
||||
"Copy your changes and restart the app to avoid data loss. If the issue persists, please report to us at support@streetwriters.co."
|
||||
),
|
||||
"Saving note is taking too long",
|
||||
"global",
|
||||
15000
|
||||
);
|
||||
ToastManager.show({
|
||||
message: strings.savingNoteTakingTooLong(),
|
||||
type: "error",
|
||||
duration: 10000
|
||||
});
|
||||
}, 30 * 1000);
|
||||
|
||||
if (!locked) {
|
||||
|
||||
@@ -348,7 +348,7 @@ function ThemeSelector() {
|
||||
paddingTop: 12
|
||||
}}
|
||||
>
|
||||
<Input onChangeText={onSearch} placeholder="Search themes" />
|
||||
<Input onChangeText={onSearch} placeholder={strings.searchThemes()} />
|
||||
|
||||
<View
|
||||
style={{
|
||||
|
||||
@@ -128,12 +128,9 @@ export const deleteItems = async (items, type, context) => {
|
||||
return;
|
||||
}
|
||||
|
||||
let message = `${ids.length} ${
|
||||
ids.length === 1 ? "item" : "items"
|
||||
} moved to trash.`;
|
||||
|
||||
let deletedIds = [...ids];
|
||||
if (type === "notebook" || type === "note") {
|
||||
let message = strings.movedToTrash(type, ids.length);
|
||||
ToastManager.show({
|
||||
heading: message,
|
||||
type: "success",
|
||||
@@ -151,6 +148,11 @@ export const deleteItems = async (items, type, context) => {
|
||||
},
|
||||
actionText: "Undo"
|
||||
});
|
||||
} else {
|
||||
ToastManager.show({
|
||||
heading: strings.deleted(type, ids.length),
|
||||
type: "success"
|
||||
});
|
||||
}
|
||||
|
||||
Navigation.queueRoutesForUpdate();
|
||||
|
||||
File diff suppressed because one or more lines are too long
4
apps/mobile/package-lock.json
generated
4
apps/mobile/package-lock.json
generated
@@ -23,14 +23,12 @@
|
||||
"@notesnook/theme": "file:../../packages/theme",
|
||||
"@notesnook/themes-server": "file:../../servers/themes",
|
||||
"diffblazer": "^1.0.1",
|
||||
"entities": "^3.0.1",
|
||||
"react": "18.2.0",
|
||||
"react-native": "0.74.5",
|
||||
"react-native-actions-sheet": "^0.9.7",
|
||||
"react-native-mmkv-storage": "^0.10.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@react-native/babel-preset": "0.74.86",
|
||||
"fonteditor-core": "^2.1.11",
|
||||
"listr": "^0.14.3",
|
||||
"otplib": "12.0.1",
|
||||
@@ -29392,6 +29390,7 @@
|
||||
"buffer": "^6.0.3",
|
||||
"dayjs": "^1.10.4",
|
||||
"deprecated-react-native-prop-types": "^4.1.0",
|
||||
"entities": "^3.0.1",
|
||||
"fflate": "^0.7.3",
|
||||
"html-to-text": "9.0.5",
|
||||
"katex": "0.16.2",
|
||||
@@ -29560,6 +29559,7 @@
|
||||
"@babel/plugin-transform-private-methods": "^7.22.5",
|
||||
"@babel/preset-env": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@react-native/babel-preset": "0.74.86",
|
||||
"@react-native/eslint-config": "0.74.86",
|
||||
"@react-native/metro-config": "0.74.86",
|
||||
"@tsconfig/react-native": "^3.0.2",
|
||||
|
||||
Reference in New Issue
Block a user