Skip to content

Commit e75ce26

Browse files
committed
Add russian version
1 parent 123296d commit e75ce26

File tree

5 files changed

+434
-12
lines changed

5 files changed

+434
-12
lines changed

AGENTS.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Translation guidelines
2+
3+
This site has localized pages (e.g. `ru.html`) based on `index.html`.
4+
5+
## Structure
6+
7+
- `index.html` is the English original and source of truth.
8+
- Translated pages are simplified: no JS, no JSON-LD, no changelog, no libraries/code section, no nav bar.
9+
- SVG icons, logos, and game icons are copied as-is.
10+
11+
## Translation rules
12+
13+
1. **Do not leave English phrases inline in target-language grammar.** Use proper equivalents in the target language or established transliterations.
14+
2. **Translate for the target audience, not word-for-word.** Adapt phrasing to sound natural.
15+
3. **Use established gamedev/tech terminology in the target language.** Prefer terms that the local gamedev community actually uses over obscure native equivalents.
16+
4. **Some technical names stay in English.** Product names, file extensions, library name, and format names are not translated.
17+
18+
## When updating translations
19+
20+
After any content change to `index.html`, check if translated pages need corresponding updates.

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<meta name="theme-color" content="#0c121c">
88
<title>Source 2 Viewer &amp; Decompiler</title>
99
<link rel="canonical" href="https://s2v.app/">
10+
<link rel="alternate" hreflang="en" href="https://s2v.app/">
11+
<link rel="alternate" hreflang="ru" href="https://s2v.app/ru.html">
12+
<link rel="alternate" hreflang="x-default" href="https://s2v.app/">
1013
<link rel="image_src" href="https://s2v.app/static/preview.jpg">
1114
<link rel="preload" href="static/Manrope.woff2" as="font" type="font/woff2" crossorigin>
1215
<link rel="preconnect" href="https://api.github.com">
@@ -608,7 +611,7 @@ <h3>Audio System</h3>
608611
<h3>Shader Packages</h3>
609612
<ul>
610613
<li>
611-
Inspect and analyze Source 2<a href="/ValveResourceFormat/api/ValveResourceFormat.CompiledShader.html">shader files</a>
614+
Inspect and analyze Source 2 <a href="/ValveResourceFormat/api/ValveResourceFormat.CompiledShader.html">shader files</a>
612615
(vcs extension) with bytecode conversion
613616
</li>
614617
<li>Read Source 2 shader packages</li>

0 commit comments

Comments
 (0)