Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: move description of host_language from Macros to Language-specific Keycodes #24584

Merged
merged 10 commits into from
Nov 15, 2024
Prev Previous commit
Next Next commit
docS: include keymap.c example
  • Loading branch information
tenstad committed Nov 11, 2024
commit 236cab55bc9ab5ece6cf0e1a0a9951896a7a9d94
6 changes: 5 additions & 1 deletion docs/reference_keymap_extras.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ Obviously, this can get confusing, so QMK provides language-specific keycode ali

## Selecting Your Host Keyboard Layout

To select a host keyboard layout, simply `#include` one of the [keycode headers](#header-files) below at the top of your `keymap.c`.
To select a host keyboard layout, simply `#include` one of the [keycode headers](#header-files) below at the top of your `keymap.c`. Example:

```c
#include keymap_japanese.h
tenstad marked this conversation as resolved.
Show resolved Hide resolved
```

Alternatively, if using `keymap.json`, add the `host_language` key as shown in the following example. The available languages are those with a _Sendstring LUT Header_ entry in one of the [Header Files](#header-files) tables.

Expand Down