diff --git a/www/README.md b/www/README.md index ad53a981d6..2c4d65c5b1 100644 --- a/www/README.md +++ b/www/README.md @@ -31,7 +31,7 @@ When adding a new API endpoint to the GP2040-CE Configurator: * Use the naming convention `/api/{[get/set]EndpointPath}` for the path * Create the backing method with the same name as the API path: `string getNewEndpoint()` * Add handling code in `fs_open_custom` for the API path -* Add a mock data endpoint to `src/server/app.js` +* Add a mock data endpoint to `www/server/app.js` * Add the client-side API function to `www/src/Services/WebApi.js`. * Add the endpoint to the Postman collection at `www/server/docs/GP2040-CE.postman_collection.json` diff --git a/www/src/Locales/fr-FR/BootModeMapping.jsx b/www/src/Locales/fr-FR/BootModeMapping.jsx new file mode 100644 index 0000000000..1613061389 --- /dev/null +++ b/www/src/Locales/fr-FR/BootModeMapping.jsx @@ -0,0 +1,9 @@ +export default { + 'use-gpio-slider-label': 'Utiliser les broches GPIO', + 'gpio-input-mode-label': 'Sélection du mode d\'entrée GPIO', + 'gpio-input-mode-explanation': '
Si vous n\'utilisez pas plusieurs profils, les options de mode d\'entrée de démarrage disponibles sur la <0>page des paramètres0> devraient vous suffire.
Cet écran vous permet de configurer les boutons physiques (broches GPIO) à maintenir enfoncés lors du branchement de la manette pour accéder à l\'un des modes d\'entrée de GP2040-CE (contrairement aux boutons mappés, qui peuvent changer lors du changement de profil).
Vous pouvez également choisir un profil à charger au démarrage pour chaque mode d\'entrée (facultatif).
', + 'alert-text': 'Il est recommandé d\'utiliser le bouton 🎮 pour sélectionner les broches, car mapper des broches non connectées ou indisponibles peut rendre l\'appareil non fonctionnel. Pour effacer la configuration invalide, rendez-vous sur la page <0>Réinitialiser les paramètres0>.', + 'unique-validation-err': 'Les broches GPIO mappées ne peuvent pas contenir de doublons', + 'required-validation-err': 'Des champs obligatoires sont manquants', + 'generic-save-err': 'Échec de l\'enregistrement des modifications', +} diff --git a/www/src/Locales/fr-FR/Index.jsx b/www/src/Locales/fr-FR/Index.jsx index 2bc8d01276..5b6469c6c8 100644 --- a/www/src/Locales/fr-FR/Index.jsx +++ b/www/src/Locales/fr-FR/Index.jsx @@ -20,6 +20,7 @@ import HETrigger from './Addons/HETrigger'; import InputMacroAddon from './InputMacroAddon'; import LayoutConfig from './LayoutConfig'; import Proto from './Proto/Index'; +import BootModeMapping from './BootModeMapping'; export default { Common, @@ -44,4 +45,5 @@ export default { ReactiveLED, Proto, HETrigger, + BootModeMapping }; diff --git a/www/src/Locales/fr-FR/Navigation.jsx b/www/src/Locales/fr-FR/Navigation.jsx index aa683a2421..49dd87959a 100644 --- a/www/src/Locales/fr-FR/Navigation.jsx +++ b/www/src/Locales/fr-FR/Navigation.jsx @@ -11,6 +11,7 @@ export default { 'links-label': 'Liens', 'macro-label': 'Configuration des macros', 'pin-mapping-label': 'Mappage des broches GPIO', + 'boot-mode-mapping-label': 'Configuration du mode de démarrage', 'multi-mapping-label': 'Mappage multiple', 'peripheral-mapping-label': 'Mappage des périphériques', 'profile-settings-label': 'Paramètres du profil', diff --git a/www/src/Locales/ja-JP/BootModeMapping.jsx b/www/src/Locales/ja-JP/BootModeMapping.jsx new file mode 100644 index 0000000000..1f2875cada --- /dev/null +++ b/www/src/Locales/ja-JP/BootModeMapping.jsx @@ -0,0 +1,10 @@ +export default { + 'use-gpio-slider-label': 'GPIOピンを使用する', + 'gpio-input-mode-label': 'GPIO入力モード選択', + 'gpio-input-mode-explanation': '複数のプロファイルを使用しない場合は、<0>設定ページ0>のブート入力モードオプションで十分な場合がほとんどです。
この画面では、コントローラーを接続する際にGP2040-CEの各入力モードに入るために押し続ける物理ボタン(GPIOピン)を設定できます(プロファイル変更時に変わる可能性のあるマップされたボタンとは異なります)。
各入力モードに対して、起動時に読み込むプロファイルを任意で選択することもできます。
', + 'alert-text': '🎮ボタンを使用してピンを選択することをお勧めします。未接続または利用できないピンをマッピングすると、デバイスが正常に動作しなくなる可能性があります。無効な設定をクリアするには、<0>設定リセット0>ページをご利用ください。', + 'unique-validation-err': 'マップされたGPIOピンに重複は使用できません', + 'required-validation-err': '必須フィールドが入力されていません', + 'generic-save-err': '変更の保存に失敗しました', + +} diff --git a/www/src/Locales/ja-JP/Index.jsx b/www/src/Locales/ja-JP/Index.jsx index 2bc8d01276..5b6469c6c8 100644 --- a/www/src/Locales/ja-JP/Index.jsx +++ b/www/src/Locales/ja-JP/Index.jsx @@ -20,6 +20,7 @@ import HETrigger from './Addons/HETrigger'; import InputMacroAddon from './InputMacroAddon'; import LayoutConfig from './LayoutConfig'; import Proto from './Proto/Index'; +import BootModeMapping from './BootModeMapping'; export default { Common, @@ -44,4 +45,5 @@ export default { ReactiveLED, Proto, HETrigger, + BootModeMapping }; diff --git a/www/src/Locales/ja-JP/Navigation.jsx b/www/src/Locales/ja-JP/Navigation.jsx index 4229c847b3..87df8fbd48 100644 --- a/www/src/Locales/ja-JP/Navigation.jsx +++ b/www/src/Locales/ja-JP/Navigation.jsx @@ -11,6 +11,7 @@ export default { 'links-label': 'リンク', 'macro-label': 'マクロ設定', 'pin-mapping-label': 'GPIO 端子割り当て設定', + 'boot-mode-mapping-label': 'ブートモード設定', 'multi-mapping-label': 'マルチマッピング', 'peripheral-mapping-label': '周辺機器設定', 'profile-settings-label': 'プロファイル設定', diff --git a/www/src/Locales/ko-KR/BootModeMapping.jsx b/www/src/Locales/ko-KR/BootModeMapping.jsx new file mode 100644 index 0000000000..eb8f76dbee --- /dev/null +++ b/www/src/Locales/ko-KR/BootModeMapping.jsx @@ -0,0 +1,9 @@ +export default { + 'use-gpio-slider-label': 'GPIO 핀 사용', + 'gpio-input-mode-label': 'GPIO 입력 모드 선택', + 'gpio-input-mode-explanation': '여러 프로필을 사용하지 않는 경우 <0>설정 페이지0>의 부팅 입력 모드 옵션으로 충분할 것입니다.
이 화면에서는 컨트롤러를 연결할 때 GP2040-CE의 입력 모드로 진입하기 위해 누르고 있어야 할 물리적 버튼(GPIO 핀)을 설정할 수 있습니다(프로필 변경 시 바뀔 수 있는 매핑된 버튼과는 다릅니다).
각 입력 모드에 대해 시작 시 불러올 프로필을 선택할 수도 있습니다(선택 사항).
', + 'alert-text': '핀을 선택할 때는 🎮 버튼을 사용하는 것을 권장합니다. 연결되지 않았거나 사용할 수 없는 핀을 매핑하면 장치가 정상적으로 작동하지 않을 수 있습니다. 잘못된 설정을 초기화하려면 <0>설정 초기화0> 페이지로 이동하세요.', + 'unique-validation-err': '매핑된 GPIO 핀은 중복될 수 없습니다', + 'required-validation-err': '필수 항목이 누락되었습니다', + 'generic-save-err': '변경 사항 저장에 실패했습니다', +} diff --git a/www/src/Locales/ko-KR/Index.jsx b/www/src/Locales/ko-KR/Index.jsx index 2bc8d01276..5b6469c6c8 100644 --- a/www/src/Locales/ko-KR/Index.jsx +++ b/www/src/Locales/ko-KR/Index.jsx @@ -20,6 +20,7 @@ import HETrigger from './Addons/HETrigger'; import InputMacroAddon from './InputMacroAddon'; import LayoutConfig from './LayoutConfig'; import Proto from './Proto/Index'; +import BootModeMapping from './BootModeMapping'; export default { Common, @@ -44,4 +45,5 @@ export default { ReactiveLED, Proto, HETrigger, + BootModeMapping }; diff --git a/www/src/Locales/ko-KR/Navigation.jsx b/www/src/Locales/ko-KR/Navigation.jsx index a98d52aab3..b1301f9c97 100644 --- a/www/src/Locales/ko-KR/Navigation.jsx +++ b/www/src/Locales/ko-KR/Navigation.jsx @@ -11,6 +11,7 @@ export default { 'links-label': '링크', 'macro-label': '매크로', 'pin-mapping-label': 'GPIO 핀 매핑', + 'boot-mode-mapping-label': '부팅 모드 구성', 'multi-mapping-label': '멀티 매핑', 'peripheral-mapping-label': '주변 기기 매핑', 'profile-settings-label': '프로필 설정', diff --git a/www/src/Locales/zh-CN/BootModeMapping.jsx b/www/src/Locales/zh-CN/BootModeMapping.jsx new file mode 100644 index 0000000000..5d7ada5077 --- /dev/null +++ b/www/src/Locales/zh-CN/BootModeMapping.jsx @@ -0,0 +1,9 @@ +export default { + 'use-gpio-slider-label': '使用 GPIO 引脚', + 'gpio-input-mode-label': 'GPIO 输入模式选择', + 'gpio-input-mode-explanation': '如果您不使用多个配置文件,Boot Input Mode 选项(位于<0>设置页面0>)通常已能满足需求。
此页面允许您配置插入控制器时需要按住的物理按键(GPIO 引脚),以进入 GP2040-CE 的任意输入模式(与映射按键不同,映射按键可能会随配置文件的切换而改变)。
您还可以为每种输入模式选择一个在启动时加载的配置文件(可选)。
', + 'alert-text': '建议使用 🎮 按钮来选择引脚作为映射引脚,因为映射未连接或不可用的引脚可能导致设备无法正常使用。如需清除无效配置,请前往<0>重置设置0>页面。', + 'unique-validation-err': '映射的 GPIO 引脚不能重复', + 'required-validation-err': '缺少必填字段', + 'generic-save-err': '保存更改失败', +} diff --git a/www/src/Locales/zh-CN/Index.jsx b/www/src/Locales/zh-CN/Index.jsx index 2bc8d01276..5b6469c6c8 100644 --- a/www/src/Locales/zh-CN/Index.jsx +++ b/www/src/Locales/zh-CN/Index.jsx @@ -20,6 +20,7 @@ import HETrigger from './Addons/HETrigger'; import InputMacroAddon from './InputMacroAddon'; import LayoutConfig from './LayoutConfig'; import Proto from './Proto/Index'; +import BootModeMapping from './BootModeMapping'; export default { Common, @@ -44,4 +45,5 @@ export default { ReactiveLED, Proto, HETrigger, + BootModeMapping }; diff --git a/www/src/Locales/zh-CN/Navigation.jsx b/www/src/Locales/zh-CN/Navigation.jsx index a6cfa1a2e7..ede0d5802f 100644 --- a/www/src/Locales/zh-CN/Navigation.jsx +++ b/www/src/Locales/zh-CN/Navigation.jsx @@ -11,6 +11,7 @@ export default { 'links-label': '链接', 'macro-label': '宏配置', 'pin-mapping-label': 'GPIO 引脚映射', + 'boot-mode-mapping-label': '启动模式配置', 'multi-mapping-label': '多重映射', 'peripheral-mapping-label': '外设映射', 'profile-settings-label': '配置文件设置', diff --git a/www/src/Pages/BootModeMapping.tsx b/www/src/Pages/BootModeMapping.tsx index f3a354d825..ac3a29f6ad 100644 --- a/www/src/Pages/BootModeMapping.tsx +++ b/www/src/Pages/BootModeMapping.tsx @@ -326,7 +326,9 @@ export default function BootModeMappingPage() {