Skip to content
Draft
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
25 changes: 25 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# AGENTS.md

## Cursor Cloud specific instructions

### Overview

This is a **static localization/i18n repository** for the Moot forum platform. It contains plain JavaScript locale files (26 languages, ~52 `.js` files) and a `test.html` browser harness. There is no build system, no package manager, no linter, and no automated test suite.

### Running the dev server

Serve the repo root with any static HTTP server. For example:

```
python3 -m http.server 8080 --directory /workspace
```

Then open `http://localhost:8080/test.html?<lang>` (e.g. `?en`, `?fr`, `?ru`) to preview a language.

### Key caveats

- **No `package.json`, no npm/pnpm/yarn.** Do not attempt to run `npm install` or similar.
- **External CDN dependency.** `test.html` loads jQuery and the Moot widget JS/CSS from `cdn.moot.it` and `ajax.googleapis.com`. The Moot forum widget will not render without network access to these CDNs; however the language file loading and the header UI still work locally.
- **No linting or automated tests.** Validation is manual: open `test.html?<code>` in a browser and visually inspect the translated strings.
- **File encoding must be UTF-8.** See the README for `iconv` commands to fix encoding issues.
- Each language has two files: `<lang>.js` (main UI strings) and `<lang>.auth.js` (authentication dialog strings).