LokaScript
hyperscript in your language.
Now in 日本語
LokaScript (@lokascript/*) is the multilingual layer for the hyperfixi engine (@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)
164 translated patterns
@lokascript/i18n
Same Logic, Your Language
The same hyperscript behavior, naturally expressed in each language:
Grammar key
SVO subject · verb · object
SOV subject · object · verb
VSO verb · subject · object
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
164 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 — 58 commands, tree-shakeable bundles, hyperscript compatible.
Quick Start
CDN (Try It Now)
<script src="https://unpkg.com/@hyperfixi/core/dist/hyperfixi-hybrid-complete.js"></script>
<script src="https://unpkg.com/@lokascript/i18n@2.6.0/dist/lokascript-i18n.min.js"></script>
<script>
// Translate between languages
const ja = LokaScriptI18n.translate('on click toggle .active', 'en', 'ja');
</script>
npm (Production)
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@2.6.0"></script>
<button _="on click toggle .active on me" data-lang="ja">
クリックしてね
</button>
See the adapter plugin guide.
fixi family in your language
Writing minimal HTTP-attribute hypermedia with fixi? loka-js localizes the fixi-family attributes themselves:
<script src="./loka.js"></script>
<script src="./locales/es.js"></script>
<script src="./fixi.js"></script>
<button fx-acción="/api" fx-objetivo="#out">Cargar</button>
See the loka-js distribution.
Ready to Go Multilingual?
For core hyperscript docs, see hyperfixi.