Skip to content

Commit 41da1f0

Browse files
Note i18n for checker (#722)
Signed-off-by: David A. Wheeler <[email protected]>
1 parent b3bb08b commit 41da1f0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/labs/create_checker.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,20 @@ to refer to the corresponding capturing group.
714714
If you load `hello.html` you'll automatically run some self-tests on
715715
the default preprocessor.
716716

717+
## Internationalization
718+
719+
Currently the expectation is that translated labs will start with existing
720+
labs (as HTML) and translate their text.
721+
Our current recommendation is to prefix all labs' names with their locale
722+
(e.g., `jp-input.html`).
723+
724+
Make sure the buttons have a `title` value, otherwise they will default to
725+
their English titles.
726+
727+
In the future we may pull the data into their own files so they can
728+
be shared between natural language translations. In those cases, the
729+
translated text would be marked with their own locale.
730+
717731
## Potential future directions
718732

719733
Below are notes about potential future directions.

0 commit comments

Comments
 (0)