LokaScript

Hyperscript in your language.
Now in 日本語

LokaScript brings multilingual support to hyperfixi. Write interactive UI behaviors in 24 languages with natural grammar transformation. Translate code, documentation, and patterns.

24 Languages

Write hyperscript in your native language with natural grammar transformation — SVO, SOV, and VSO word orders.

Semantic Parser

AI-friendly parsing that understands intent across all supported languages with confidence scoring.

Adapter Plugin

Already using _hyperscript? The adapter plugin adds multilingual support without migration.

24 languages 3 grammar types (SVO/SOV/VSO) 114 translated patterns @lokascript/i18n

Same Logic, Your Language

The same hyperscript behavior, naturally expressed in each language:

English (SVO)

on click toggle .active on me

Japanese (SOV)

クリック で 私 の .active を 切り替え

Spanish (SVO)

al hacer clic alternar .active en mi

Arabic (VSO)

عند النقر بدّل .active على نفسي

Grammar Transformation

LokaScript handles SVO (English, Spanish), SOV (Japanese, Korean), and VSO (Arabic) word orders automatically.

Code Translation

Translate hyperscript code between any supported languages using @lokascript/i18n.

Documentation i18n

The i18n package is primarily for documentation and code translation — making hyperscript accessible to non-English speakers.

Multilingual Patterns

114 patterns translated to 24 languages. Browse, search, and copy patterns in your preferred language.

Semantic Parser

@lokascript/semantic provides AI-friendly parsing that understands intent across all 24 supported languages.

hyperfixi Core

Built on hyperfixi — 43 commands, tree-shakeable bundles, and ~85% _hyperscript compatibility.

Quick Start

Add i18n to hyperfixi

npm install @hyperfixi/core @lokascript/i18n
import { hyperscript } from '@hyperfixi/core';
import { translate } from '@lokascript/i18n';

// Translate code between languages
const japanese = translate('on click toggle .active', 'en', 'ja');

Adapter for _hyperscript

Already using _hyperscript? Add multilingual support without migration:

<script src="https://unpkg.com/hyperscript.org"></script>
<script src="https://unpkg.com/@lokascript/hyperscript-adapter"></script>

<button _="on click toggle .active on me" data-lang="ja">
  クリックしてね
</button>

See the adapter plugin guide.

Ready to Go Multilingual?

For core hyperscript docs, see hyperfixi.