Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion src/assets/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,5 +492,45 @@
"Could not parse keyboard.json layout.": "keyboard.json のレイアウトを解析できませんでした。",
"Could not parse keymap.c file.": "keymap.c ファイルを解析できませんでした。",
"Please use the Code Editor to fix syntax errors.": "コードエディタを使用して構文エラーを修正してください。",
"\"{{name}}\" is a custom keycode defined in the source code. It cannot be edited in the Visual Editor.": "\"{{name}}\" はソースコード内で定義されたカスタムキーコードです。ビジュアルエディタでは編集できません。"
"\"{{name}}\" is a custom keycode defined in the source code. It cannot be edited in the Visual Editor.": "\"{{name}}\" はソースコード内で定義されたカスタムキーコードです。ビジュアルエディタでは編集できません。",
"Could not parse config.h.": "config.h を解析できませんでした。",
"Tap/Hold": "タップ/ホールド",
"Mouse Keys": "マウスキー",
"Combo": "コンボ",
"Auto Shift": "自動シフト",
"One Shot": "ワンショット",
"Leader Key": "リーダーキー",
"Wheel": "ホイール",
"Time in ms to distinguish tap from hold (default: 200)": "タップとホールドを区別する時間(ミリ秒、デフォルト: 200)",
"Time in ms for quick tap after tap-hold (default: TAPPING_TERM)": "タップホールド後のクイックタップ時間(ミリ秒、デフォルト: TAPPING_TERM)",
"Time in ms for combo key detection (default: 50)": "コンボキー検出時間(ミリ秒、デフォルト: 50)",
"Time in ms for auto shift activation (default: 175)": "自動シフト発動時間(ミリ秒、デフォルト: 175)",
"Time in ms before one-shot key expires (default: 5000)": "ワンショットキーの有効時間(ミリ秒、デフォルト: 5000)",
"Number of taps to toggle one-shot key (default: 5)": "ワンショットキーをトグルするタップ回数(デフォルト: 5)",
"Time in ms for leader key sequence (default: 300)": "リーダーキーシーケンスの時間(ミリ秒、デフォルト: 300)",
"Enable per-key tapping term via callback": "コールバックでキーごとのタッピングタームを有効にする",
"Trigger hold if another key is pressed and released while held": "ホールド中に別のキーが押されて離されたらホールドを発動する",
"Enable per-key permissive hold via callback": "コールバックでキーごとのパーミッシブホールドを有効にする",
"Trigger hold immediately when another key is pressed": "別のキーが押された時点で即座にホールドを発動する",
"Enable per-key hold on other key press via callback": "コールバックでキーごとの他キー押下時ホールドを有効にする",
"Enable per-key quick tap term via callback": "コールバックでキーごとのクイックタップタームを有効にする",
"Send tap keycode if no other key was pressed during hold": "ホールド中に他のキーが押されなければタップキーコードを送信する",
"Enable per-key retro tapping via callback": "コールバックでキーごとのレトロタッピングを有効にする",
"Require modifier combos to be held to activate": "修飾キーコンボの発動にホールドを必要とする",
"Apply auto shift even when modifiers are held": "修飾キーが押されていても自動シフトを適用する",
"Disable auto shift for special keys (e.g. -=[] etc.)": "特殊キー(-=[]など)の自動シフトを無効にする",
"Disable auto shift for number keys (0-9)": "数字キー(0-9)の自動シフトを無効にする",
"Disable auto shift for letter keys (A-Z)": "文字キー(A-Z)の自動シフトを無効にする",
"Reset timeout after each key in leader sequence": "リーダーシーケンスの各キー入力後にタイムアウトをリセットする",
"Disable leader key timeout (wait indefinitely for sequence)": "リーダーキーのタイムアウトを無効にする(入力を無制限に待つ)",
"Delay before mouse movement starts in ms (default: 10)": "マウス移動開始までの遅延(ミリ秒、デフォルト: 10)",
"Time between mouse movement steps in ms (default: 20)": "マウス移動ステップ間の時間(ミリ秒、デフォルト: 20)",
"Maximum cursor speed (default: 10)": "カーソルの最大速度(デフォルト: 10)",
"Time to reach max speed in steps (default: 30)": "最大速度に到達するまでのステップ数(デフォルト: 30)",
"Delay before scroll starts in ms (default: 10)": "スクロール開始までの遅延(ミリ秒、デフォルト: 10)",
"Time between scroll steps in ms (default: 80)": "スクロールステップ間の時間(ミリ秒、デフォルト: 80)",
"Maximum scroll speed (default: 8)": "スクロールの最大速度(デフォルト: 8)",
"Time to reach max scroll speed in steps (default: 40)": "最大スクロール速度に到達するまでのステップ数(デフォルト: 40)",
"Time in ms to hold combo for hold behavior (default: 150)": "コンボのホールド動作に必要な保持時間(ミリ秒、デフォルト: 150)",
"Only trigger combos from this layer number": "このレイヤー番号からのみコンボを発動する"
}
18 changes: 17 additions & 1 deletion src/components/workbench/breadboard/Breadboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import { t } from 'i18next';
import { useUserPurchaseHook } from './UserPurchaseHook';
import { KeyboardLayoutPanel } from '../dialogs/LayoutPreviewDialog';
import { KeyboardJsonSettingsPanel } from '../dialogs/KeyboardJsonEditorDialog';
import { ConfigHSettingsPanel } from '../dialogs/ConfigHSettingsPanel';
import VisualKeymapEditor from '../visualeditor/VisualKeymapEditor';

type OwnProps = {};
Expand Down Expand Up @@ -539,7 +540,10 @@ function EditorWithVisualTab(props: EditorWithVisualTabProps) {
props.selectedFile?.fileType === 'keyboard' &&
file?.path === 'keyboard.json';

const hasTabs = isKeymapCFile || isKeyboardJsonFile;
const isConfigHFile =
props.selectedFile?.fileType === 'keyboard' && file?.path === 'config.h';

const hasTabs = isKeymapCFile || isKeyboardJsonFile || isConfigHFile;

const keyboardJsonCode = useMemo(() => {
if (!props.project) return undefined;
Expand Down Expand Up @@ -660,6 +664,12 @@ function EditorWithVisualTab(props: EditorWithVisualTabProps) {
sx={{ minHeight: 32, py: 0.5, textTransform: 'none' }}
/>
)}
{isConfigHFile && (
<Tab
label={t('Form Editor')}
sx={{ minHeight: 32, py: 0.5, textTransform: 'none' }}
/>
)}
</Tabs>
{editorTab === 0 && fontSizeControls}
</Box>
Expand Down Expand Up @@ -701,6 +711,12 @@ function EditorWithVisualTab(props: EditorWithVisualTabProps) {
onChange={handleVisualEditorCodeChange}
/>
)}
{isConfigHFile && editorTab === 1 && (
<ConfigHSettingsPanel
configHContent={effectiveCode}
onChange={handleVisualEditorCodeChange}
/>
)}
</>
);
}
Expand Down
Loading
Loading