From 5074992a44dbb4246799c0d99eb7471356f295c1 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 28 May 2026 01:38:32 +0000 Subject: [PATCH] Add AGENTS.md with Cursor Cloud specific instructions for dev environment Co-authored-by: linkinpark911 --- AGENTS.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..61fd0fd --- /dev/null +++ b/AGENTS.md @@ -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?` (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?` 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: `.js` (main UI strings) and `.auth.js` (authentication dialog strings).