Skip to content

Commit 92e5031

Browse files
authored
Merge branch 'Acode-Foundation:main' into main
2 parents 48b3e3d + e69c369 commit 92e5031

36 files changed

Lines changed: 132 additions & 30 deletions

src/cm/localWordCompletions.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import {
2+
completeAnyWord,
3+
type CompletionSource,
4+
} from "@codemirror/autocomplete";
5+
import { EditorState, type Extension } from "@codemirror/state";
6+
7+
export const localWordCompletionSource: CompletionSource = completeAnyWord;
8+
9+
export default function localWordCompletions(): Extension {
10+
return EditorState.languageData.of(() => [
11+
{ autocomplete: localWordCompletionSource },
12+
]);
13+
}

src/lang/ar-ye.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,5 +735,7 @@
735735
"settings-info-editor-show-share-button": "Show share button in selection menu.",
736736
"iap-plugin-purchase-warning": "لا تتم مزامنة الإضافات المشتراة مع حساب Acode الخاص بك. استخدم نفس حساب Google في متجر Play لاستعادة عملية الشراء.",
737737
"iap-pro-purchase-warning": "لن تتم مزامنة عملية الشراء هذه مع حساب Acode الخاص بك. استخدم نفس حساب Google في متجر Play لاستعادة عملية الشراء.",
738-
"confirm-login": "لم تقم بتسجيل الدخول إلى Acode، هل تريد تسجيل الدخول الآن؟"
738+
"confirm-login": "لم تقم بتسجيل الدخول إلى Acode، هل تريد تسجيل الدخول الآن؟",
739+
"local word completion": "Local word completion",
740+
"settings-info-editor-local-word-completion": "Suggest words from the current file."
739741
}

src/lang/be-by.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,5 +735,7 @@
735735
"settings-info-editor-show-share-button": "Show share button in selection menu.",
736736
"iap-plugin-purchase-warning": "Набытыя плагіны не сінхранізуюцца з вашым уліковым запісам Acode. Выкарыстоўвайце той жа ўліковы запіс Google у Play Store для аднаўлення пакупкі.",
737737
"iap-pro-purchase-warning": "Гэтая пакупка не будзе сінхранізавана з вашым уліковым запісам Acode. Выкарыстоўвайце той жа ўліковы запіс Google у Play Store для аднаўлення пакупкі.",
738-
"confirm-login": "Вы не ўвайшлі ў Acode, увайсці зараз?"
738+
"confirm-login": "Вы не ўвайшлі ў Acode, увайсці зараз?",
739+
"local word completion": "Local word completion",
740+
"settings-info-editor-local-word-completion": "Suggest words from the current file."
739741
}

src/lang/bn-bd.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,5 +735,7 @@
735735
"settings-info-editor-show-share-button": "Show share button in selection menu.",
736736
"iap-plugin-purchase-warning": "ক্রয়কৃত প্লাগইনগুলি আপনার Acode অ্যাকাউন্টের সাথে সিঙ্ক হয় না। আপনার ক্রয় পুনরুদ্ধার করতে প্লে স্টোরে একই Google অ্যাকাউন্ট ব্যবহার করুন।",
737737
"iap-pro-purchase-warning": "এই ক্রয়টি আপনার Acode অ্যাকাউন্টের সাথে সিঙ্ক হবে না। আপনার ক্রয় পুনরুদ্ধার করতে প্লে স্টোরে একই Google অ্যাকাউন্ট ব্যবহার করুন।",
738-
"confirm-login": "আপনি Acode-এ সাইন ইন করেননি, এখন সাইন ইন করবেন?"
738+
"confirm-login": "আপনি Acode-এ সাইন ইন করেননি, এখন সাইন ইন করবেন?",
739+
"local word completion": "Local word completion",
740+
"settings-info-editor-local-word-completion": "Suggest words from the current file."
739741
}

src/lang/cs-cz.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,5 +735,7 @@
735735
"settings-info-editor-show-share-button": "Show share button in selection menu.",
736736
"iap-plugin-purchase-warning": "Zakoupené pluginy nejsou synchronizovány s vaším účtem Acode. Pro obnovení nákupu použijte stejný účet Google v Obchodě Play.",
737737
"iap-pro-purchase-warning": "Tento nákup nebude synchronizován s vaším účtem Acode. Pro obnovení nákupu použijte stejný účet Google v Obchodě Play.",
738-
"confirm-login": "Nejste přihlášeni do Acode, přihlásit se nyní?"
738+
"confirm-login": "Nejste přihlášeni do Acode, přihlásit se nyní?",
739+
"local word completion": "Local word completion",
740+
"settings-info-editor-local-word-completion": "Suggest words from the current file."
739741
}

src/lang/de-de.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,5 +735,7 @@
735735
"settings-info-editor-show-share-button": "Show share button in selection menu.",
736736
"iap-plugin-purchase-warning": "Gekaufte Plugins werden nicht mit Ihrem Acode-Konto synchronisiert. Verwenden Sie dasselbe Google-Konto im Play Store, um Ihren Kauf wiederherzustellen.",
737737
"iap-pro-purchase-warning": "Dieser Kauf wird nicht mit Ihrem Acode-Konto synchronisiert. Verwenden Sie dasselbe Google-Konto im Play Store, um Ihren Kauf wiederherzustellen.",
738-
"confirm-login": "Sie sind nicht bei Acode angemeldet, jetzt anmelden?"
738+
"confirm-login": "Sie sind nicht bei Acode angemeldet, jetzt anmelden?",
739+
"local word completion": "Local word completion",
740+
"settings-info-editor-local-word-completion": "Suggest words from the current file."
739741
}

src/lang/en-us.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
"invalid backup file": "Invalid backup file",
133133
"add path": "Add path",
134134
"live autocompletion": "Live autocompletion",
135+
"local word completion": "Local word completion",
135136
"auto close tags": "Auto close tags",
136137
"file properties": "File properties",
137138
"path": "Path",
@@ -667,6 +668,7 @@
667668
"settings-info-editor-line-numbers": "Show line numbers in the gutter.",
668669
"settings-info-editor-lint-gutter": "Show diagnostics and lint markers in the gutter.",
669670
"settings-info-editor-live-autocomplete": "Show suggestions while you type.",
671+
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
670672
"settings-info-editor-auto-close-tags": "Automatically insert closing tags in HTML, XML, Vue, Angular, and PHP template files.",
671673
"settings-info-editor-rainbow-brackets": "Color matching brackets by nesting depth.",
672674
"settings-info-editor-relative-line-numbers": "Show distance from the current line.",

src/lang/es-sv.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,5 +735,7 @@
735735
"settings-info-editor-show-share-button": "Show share button in selection menu.",
736736
"iap-plugin-purchase-warning": "Los plugins comprados no se sincronizan con tu cuenta de Acode. Usa la misma cuenta de Google en Play Store para restaurar tu compra.",
737737
"iap-pro-purchase-warning": "Esta compra no se sincronizará con tu cuenta de Acode. Usa la misma cuenta de Google en Play Store para restaurar tu compra.",
738-
"confirm-login": "No has iniciado sesión en Acode, ¿iniciar sesión ahora?"
738+
"confirm-login": "No has iniciado sesión en Acode, ¿iniciar sesión ahora?",
739+
"local word completion": "Local word completion",
740+
"settings-info-editor-local-word-completion": "Suggest words from the current file."
739741
}

src/lang/fr-fr.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,5 +735,7 @@
735735
"settings-info-editor-show-share-button": "Show share button in selection menu.",
736736
"iap-plugin-purchase-warning": "Les plugins achetés ne sont pas synchronisés avec votre compte Acode. Utilisez le même compte Google dans le Play Store pour restaurer votre achat.",
737737
"iap-pro-purchase-warning": "Cet achat ne sera pas synchronisé avec votre compte Acode. Utilisez le même compte Google dans le Play Store pour restaurer votre achat.",
738-
"confirm-login": "Vous n'êtes pas connecté à Acode, vous connecter maintenant ?"
738+
"confirm-login": "Vous n'êtes pas connecté à Acode, vous connecter maintenant ?",
739+
"local word completion": "Local word completion",
740+
"settings-info-editor-local-word-completion": "Suggest words from the current file."
739741
}

src/lang/he-il.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,5 +735,7 @@
735735
"settings-info-editor-show-share-button": "Show share button in selection menu.",
736736
"iap-plugin-purchase-warning": "תוספים שנרכשו אינם מסונכרנים עם חשבון Acode שלך. השתמש באותו חשבון Google בחנות Play כדי לשחזר את הרכישה שלך.",
737737
"iap-pro-purchase-warning": "רכישה זו לא תסונכרן עם חשבון Acode שלך. השתמש באותו חשבון Google בחנות Play כדי לשחזר את הרכישה שלך.",
738-
"confirm-login": "אינך מחובר ל-Acode, להתחבר עכשיו?"
738+
"confirm-login": "אינך מחובר ל-Acode, להתחבר עכשיו?",
739+
"local word completion": "Local word completion",
740+
"settings-info-editor-local-word-completion": "Suggest words from the current file."
739741
}

0 commit comments

Comments
 (0)