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