<%
var locale = env.locale;
var baseURL = "/" + locale + "/docs/WebAssembly";

var text = mdn.localStringMap({
  'de': {
    'WebAssembly_home_page' : 'WebAssembly-Startseite',
    'Tutorials' : 'Anleitungen',
    'WebAssembly_concepts' : 'WebAssembly-Konzepte',
    'Compiling_to_wasm' : 'C/C++ zu WebAssembly kompilieren',
    'Compiling_rust_to_wasm' : 'Rust zu WebAssembly kompilieren',
    'JavaScript_API' : 'WebAssembly JavaScript API verwenden',
    'Text_format' : 'WebAssembly-Textformats verstehen',
    'Text_format_to_wasm' : 'Umwandlung des WebAssembly-Textformats in wasm',
    'Loading_and_running' : 'WebAssembly-Code laden und ausführen',
    'Exported_functions' : 'Exportierte WebAssembly-Funktionen',
    'JavaScript_interface' : 'JavaScript-Schnittstelle'
  },
  'en-US': {
    'WebAssembly_home_page' : 'WebAssembly home page',
    'Tutorials' : 'Tutorials',
      'WebAssembly_concepts' : 'WebAssembly concepts',
      'Compiling_to_wasm' : 'Compiling from C/C++ to WebAssembly',
      'Compiling_rust_to_wasm' : 'Compiling from Rust to WebAssembly',
      'JavaScript_API' : 'Using the WebAssembly JavaScript API',
      'Text_format' : 'Understanding WebAssembly text format',
      'Text_format_to_wasm' : 'Converting WebAssembly text format to wasm',
      'Loading_and_running' : 'Loading and running WebAssembly code',
      'Exported_functions' : 'Exported WebAssembly functions',
    'JavaScript_interface' : 'JavaScript interface'
  },
  'fr': {
    'WebAssembly_home_page' : "Page d'accueil WebAssembly",
    'Tutorials' : "Tutoriels",
      'WebAssembly_concepts' : "Concepts WebAssembly",
      'Compiling_to_wasm' : "Compiler du C/C++ en WebAssembly",
      'Compiling_rust_to_wasm' : "Compiler du Rust en WebAssembly",
      'JavaScript_API' : "Utiliser l'API JavaScript WebAssembly",
      'Text_format' : "Comprendre le format texte WebAssembly",
      'Text_format_to_wasm' : "Convertir du format texte WebAssembly en wasm",
      'Loading_and_running' : "Chargement et exécution de code WebAssembly",
      'Exported_functions' : "Fonctions WebAssembly exportées",
    'JavaScript_interface' : "JavaScript interface"
  },
  'ko': {
    'WebAssembly_home_page' : '웹어셈블리 홈페이지',
    'Tutorials' : '자습서',
      'WebAssembly_concepts' : '웹어셈블리의 개념',
      'Compiling_to_wasm' : 'C/C++ 모듈을 웹어셈블리로 컴파일하기',
      'Compiling_rust_to_wasm' : 'Rust를 웹어셈블리로 컴파일하기',
      'JavaScript_API' : '웹어셈블리 JavaScript API 사용하기',
      'Text_format' : '웹어셈블리 텍스트 형식 이해하기',
      'Text_format_to_wasm' : '웹어셈블리 기반 텍스트를 wasm 형식으로 변환하기',
      'Loading_and_running' : '웹어셈블리 코드 로딩하고 실행하기',
      'Exported_functions' : '내보낸 웹어셈블리(Exported WebAssembly) 함수',
    'JavaScript_interface' : 'JavaScript 인터페이스'
  },
  'ru': {
    'WebAssembly_home_page' : 'WebAssembly',
    'Tutorials' : 'Уроки',
      'WebAssembly_concepts' : 'Основы WebAssembly',
      'Compiling_to_wasm' : 'Компиляция кода C/C++ в WebAssembly',
      'Compiling_rust_to_wasm' : 'Компиляция Rust в WebAssembly',
      'JavaScript_API' : 'Использование WebAssembly JavaScript API',
      'Text_format' : 'Описание текстового формата WebAssembly',
      'Text_format_to_wasm' : 'Перевод из текстового формата WebAssembly в wasm',
      'Loading_and_running' : 'Загрузка и запуск кода WebAssembly',
      'Exported_functions' : 'Экспортируемые функции WebAssembly',
    'JavaScript_interface' : 'JavaScript interface'
  },
  'zh-CN': {
    'WebAssembly_home_page' : 'WebAssembly',
    'Tutorials' : '教程',
      'WebAssembly_concepts' : 'WebAssembly 概念',
      'Compiling_to_wasm' : '将 C/C++ 编译为 WebAssembly',
      'Compiling_rust_to_wasm' : '将 Rust 编译为 WebAssembly',
      'JavaScript_API' : '使用 WebAssembly JavaScript API',
      'Text_format' : '理解 WebAssembly 文本格式',
      'Text_format_to_wasm' : '将 WebAssembly 文本格式转换为 wasm',
      'Loading_and_running' : '加载和运行 WebAssembly 代码',
      'Exported_functions' : '导出的 WebAssembly 函数',
    'JavaScript_interface' : 'JavaScript 接口'
  }
});
%>

<section id="Quick_links" data-macro="WebAssemblySidebar">

<ol>
  <li class="section"><%-web.smartLink(`${baseURL}`, null, text['WebAssembly_home_page'])%>
  <li class="toggle">
    <details open>
      <summary><%=text['Tutorials']%></summary>
      <ol>
        <li><%-web.smartLink(`${baseURL}/Concepts`, null, text['WebAssembly_concepts'])%></li>
        <li><%-web.smartLink(`${baseURL}/C_to_wasm`, null, text['Compiling_to_wasm'])%></li>
        <li><%-web.smartLink(`${baseURL}/Rust_to_wasm`, null, text['Compiling_rust_to_wasm'])%></li>
        <li><%-web.smartLink(`${baseURL}/Using_the_JavaScript_API`, null, text['JavaScript_API'])%></li>
        <li><%-web.smartLink(`${baseURL}/Understanding_the_text_format`, null, text['Text_format'])%></li>
        <li><%-web.smartLink(`${baseURL}/Text_format_to_wasm`, null, text['Text_format_to_wasm'])%></li>
        <li><%-web.smartLink(`${baseURL}/Loading_and_running`, null, text['Loading_and_running'])%></li>
        <li><%-web.smartLink(`${baseURL}/Exported_functions`, null, text['Exported_functions'])%></li>
      </ol>
    </details>
  </li>
  <li class="toggle">
    <details open>
      <summary><%=text['JavaScript_interface']%></summary>
      <ol>
        <li><a href="<%=baseURL%>/JavaScript_interface"><code>WebAssembly</code></a></li>
        <li><a href="<%=baseURL%>/JavaScript_interface/Module"><code>WebAssembly.Module</code></a></li>
        <li><a href="<%=baseURL%>/JavaScript_interface/Global"><code>WebAssembly.Global</code></a></li>
        <li><a href="<%=baseURL%>/JavaScript_interface/Instance"><code>WebAssembly.Instance</code></a></li>
        <li><a href="<%=baseURL%>/JavaScript_interface/Memory"><code>WebAssembly.Memory</code></a></li>
        <li><a href="<%=baseURL%>/JavaScript_interface/Table"><code>WebAssembly.Table</code></a></li>
        <li><a href="<%=baseURL%>/JavaScript_interface/Tag"><code>WebAssembly.Tag</code></a></li>
        <li><a href="<%=baseURL%>/JavaScript_interface/Exception"><code>WebAssembly.Exception</code></a></li>
        <li><a href="<%=baseURL%>/JavaScript_interface/CompileError"><code>WebAssembly.CompileError</code></a></li>
        <li><a href="<%=baseURL%>/JavaScript_interface/LinkError"><code>WebAssembly.LinkError</code></a></li>
        <li><a href="<%=baseURL%>/JavaScript_interface/RuntimeError"><code>WebAssembly.RuntimeError</code></a></li>
      </ol>
    </details>
  </li>
</ol>

</section>
