Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rari): support for template l10n and new sidebars #36755

Merged
merged 4 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
# MDN Firefox Release Notes
/files/en-us/mozilla/firefox @mdn/core-yari-content

# New templates and sidebars
/files/jsondata/L10n-Template.json @mdn/core-dev
/files/sidebars @mdn/core-dev

# ============================= CONTROL FILES ============================= #
# The CODEOWNERS file must end with these matches: Any pull request changing
# one or more of these files should be escalated to the owners specified here.
Expand Down
3 changes: 3 additions & 0 deletions files/jsondata/L10n-Common.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@
"zh-CN": "教程",
"zh-TW": "教學"
},
"Types": {
"en-US": "Types"
},
"listSeparator": {
"de": ", ",
"en-US": ", ",
Expand Down
423 changes: 423 additions & 0 deletions files/jsondata/L10n-Template.json

Large diffs are not rendered by default.

73 changes: 73 additions & 0 deletions files/sidebars/accessibilitysidebar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
sidebar:
- type: section
title: Accessibility
link: /Web/Accessibility
- details: closed
title: Guides
children:
- /Web/Accessibility/Information_for_Web_authors
- "/Web/Accessibility/Accessibility:_What_users_can_to_to_browse_safely"
- /Web/Accessibility/An_overview_of_accessible_web_applications_and_widgets
- /Web/Accessibility/Keyboard-navigable_JavaScript_widgets
- /Web/Accessibility/Mobile_accessibility_checklist
- /Web/Accessibility/Understanding_WCAG
- /Web/Accessibility/Cognitive_accessibility
- /Web/Accessibility/Accessibility_and_Spacial_Patterns
- /Web/Accessibility/Understanding_Colors_and_Luminance
- /Web/Accessibility/Seizure_disorders
- details: closed
title: Learn
children:
- /Learn/Accessibility/
- /Learn/Accessibility/What_is_accessibility
- /Learn/Accessibility/HTML
- /Learn/Accessibility/CSS_and_JavaScript
- /Learn/Accessibility/WAI-ARIA_basics
- /Learn/Accessibility/Multimedia
- /Learn/Accessibility/Mobile
- /Learn/Accessibility/Accessibility_troubleshooting
- type: listSubPages
details: closed
title: WCAG
path: /en-US/docs/Web/Accessibility/Understanding_WCAG

- type: section
title: ARIA
link: Web/Accessibility/ARIA
- details: closed
title: ARIA_guides
children:
- /Web/Accessibility/ARIA/ARIA_Guides
- /Web/Accessibility/ARIA/ARIA_Live_Regions
- /Web/Accessibility/ARIA/ARIA_Screen_Reader_Implementors_Guide
- /Web/Accessibility/ARIA/ARIA_Techniques
- /Web/Accessibility/ARIA/Multipart_labels
- /Web/Accessibility/ARIA/How_to_file_ARIA-related_bugs
- type: listSubPages
details: closed
title: ARIA states and properties
path: /en-US/docs/Web/Accessibility/ARIA/attributes
- type: listSubPages
details: closed
title: ARIA roles
path: /en-US/docs/Web/Accessibility/ARIA/roles

l10n:
en-US:
Accessibility: Accessibility
Guides: Guides
Learn: Learn accessibility
ARIA: ARIA
ARIA_guides: ARIA guides
ARIA states and properties: ARIA states and properties
ARIA roles: ARIA roles
WCAG: WCAG
zh-CN:
Accessibility: 无障碍
Guides: 指南
Learn: 学习无障碍
ARIA: ARIA
ARIA_guides: ARIA 指南
ARIA states and properties: ARIA 状态及属性
ARIA roles: ARIA 角色
WCAG: WCAG
213 changes: 213 additions & 0 deletions files/sidebars/addonsidebar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
sidebar:
- type: section
link: /Mozilla/Add-ons/WebExtensions
- details: closed
title: WebExtensions#Getting_started
children:
- /Mozilla/Add-ons/WebExtensions/What_are_WebExtensions
- /Mozilla/Add-ons/WebExtensions/Your_first_WebExtension
- /Mozilla/Add-ons/WebExtensions/Your_second_WebExtension
- /Mozilla/Add-ons/WebExtensions/Anatomy_of_a_WebExtension
- /Mozilla/Add-ons/WebExtensions/Examples
- /Mozilla/Add-ons/WebExtensions/What_next
- details: closed
title: WebExtensions#Concepts
children:
- /Mozilla/Add-ons/WebExtensions/API
- /Mozilla/Add-ons/WebExtensions/Content_scripts
- /Mozilla/Add-ons/WebExtensions/Background_scripts
- /Mozilla/Add-ons/WebExtensions/Match_patterns
- /Mozilla/Add-ons/WebExtensions/Working_with_files
- /Mozilla/Add-ons/WebExtensions/Internationalization
- /Mozilla/Add-ons/WebExtensions/Content_Security_Policy
- /Mozilla/Add-ons/WebExtensions/Native_messaging
- /Mozilla/Add-ons/WebExtensions/Differences_between_API_implementations
- /Mozilla/Add-ons/WebExtensions/Chrome_incompatibilities
- details: closed
title: WebExtensions#User_Interface
children:
- /Mozilla/Add-ons/WebExtensions/user_interface
- /Mozilla/Add-ons/WebExtensions/user_interface/Toolbar_button
- /Mozilla/Add-ons/WebExtensions/user_interface/Page_actions
- /Mozilla/Add-ons/WebExtensions/user_interface/Sidebars
- /Mozilla/Add-ons/WebExtensions/user_interface/Context_menu_items
- /Mozilla/Add-ons/WebExtensions/user_interface/Options_pages
- /Mozilla/Add-ons/WebExtensions/user_interface/Extension_pages
- /Mozilla/Add-ons/WebExtensions/user_interface/Notifications
- /Mozilla/Add-ons/WebExtensions/user_interface/Omnibox
- /Mozilla/Add-ons/WebExtensions/user_interface/devtools_panels
- details: closed
title: WebExtensions#How_to
children:
- /Mozilla/Add-ons/WebExtensions/Intercept_HTTP_requests
- /Mozilla/Add-ons/WebExtensions/Modify_a_web_page
- /Mozilla/Add-ons/WebExtensions/Safely_inserting_external_content_into_a_page
- /Mozilla/Add-ons/WebExtensions/Sharing_objects_with_page_scripts
- /Mozilla/Add-ons/WebExtensions/Add_a_button_to_the_toolbar
- /Mozilla/Add-ons/WebExtensions/Implement_a_settings_page
- /Mozilla/Add-ons/WebExtensions/Working_with_the_Tabs_API
- /Mozilla/Add-ons/WebExtensions/Work_with_the_Bookmarks_API
- /Mozilla/Add-ons/WebExtensions/Work_with_the_Cookies_API
- /Mozilla/Add-ons/WebExtensions/Work_with_contextual_identities
- /Mozilla/Add-ons/WebExtensions/Interact_with_the_clipboard
- /Mozilla/Add-ons/WebExtensions/Extending_the_developer_tools
- /Mozilla/Add-ons/WebExtensions/Build_a_cross_browser_extension
- type: webExtApi
title: WebExtensions#API
- type: listSubPages
title: WebExtensions#manifest.json
details: closed
path: /en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json
- details: closed
title: extension_workshop
children:
- link: https://extensionworkshop.com/documentation/develop/
title: extension_workshop_develop
- link: https://extensionworkshop.com/documentation/publish/
title: extension_workshop_publish
- link: https://extensionworkshop.com/documentation/manage/
title: extension_workshop_manage
- link: https://extensionworkshop.com/documentation/enterprise/
title: extension_workshop_enterprise
- type: section
link: /Mozilla/Add-ons/Contact_us
- details: closed
title: Channels
children:
- link: https://blog.mozilla.org/addons
title: Blog
- link: https://discourse.mozilla.org/c/add-ons
title: Forums
- link: https://chat.mozilla.org/#/room/%23addons:mozilla.org
title: Chat

l10n:
en-US:
WebExtensions#Getting_started: Getting started
WebExtensions#Concepts: Concepts
WebExtensions#User_Interface: User interface
WebExtensions#How_to: How to
WebExtensions#API: JavaScript APIs
WebExtensions#manifest.json: Manifest keys
extension_workshop: Extension Workshop
extension_workshop_develop: Develop
extension_workshop_publish: Publish
extension_workshop_manage: Manage
extension_workshop_enterprise: Enterprise
Channels: Channels
Blog: Add-ons blog
Forums: Add-ons forum
Chat: Add-ons chat
fr:
WebExtensions#Getting_started: Commencer
WebExtensions#Concepts: Concepts
WebExtensions#User_Interface: Interface utilisateur
WebExtensions#How_to: Mode d'emploi
WebExtensions#API: Les API JavaScript
WebExtensions#manifest.json: Clés de manifeste
extension_workshop: Atelier des extensions
extension_workshop_develop: Développer
extension_workshop_publish: Publier
extension_workshop_manage: Gérer
extension_workshop_enterprise: Entreprise
Channels: Canaux de discussions
Blog: Blog sur les extensions
Forums: Forum sur les extensions
Chat: Discussion sur les extensions
ja:
WebExtensions#Getting_started: 始めましょう
WebExtensions#Concepts: 概念
WebExtensions#User_Interface: ユーザーインターフェイス
WebExtensions#How_to: 逆引きリファレンス
WebExtensions#API: JavaScript APIs
WebExtensions#manifest.json: Manifest keys
extension_workshop: Extension Workshop
extension_workshop_develop: Develop
extension_workshop_publish: Publish
extension_workshop_manage: Manage
extension_workshop_enterprise: Enterprise
Channels: チャンネル
Blog: ブログ
Forums: フォーラム
Chat: Add-ons chat
ko:
WebExtensions#Getting_started: 시작하기
WebExtensions#Concepts: 개념
WebExtensions#User_Interface: 사용자 인터페이스
WebExtensions#How_to: 방법
WebExtensions#API: JavaScript APIs
WebExtensions#manifest.json: Manifest 키
extension_workshop: Extension Workshop
extension_workshop_develop: Develop
extension_workshop_publish: Publish
extension_workshop_manage: Manage
extension_workshop_enterprise: Enterprise
Channels: 채널
Blog: 부가 기능 블로그
Forums: 부가 기능 포럼
Chat: Add-ons chat
zh-CN:
WebExtensions#Getting_started: 开始
WebExtensions#Concepts: 概念
WebExtensions#User_Interface: 用户界面
WebExtensions#How_to: 怎么做
WebExtensions#API: JavaScript API
WebExtensions#manifest.json: 清单键
extension_workshop: Extension Workshop
extension_workshop_develop: Develop
extension_workshop_publish: Publish
extension_workshop_manage: Manage
extension_workshop_enterprise: Enterprise
Channels: 渠道
Blog: 附加组件博客
Forums: 附加组件论坛
Chat: 附加组件聊天
pt-BR:
WebExtensions#Getting_started: Começando
WebExtensions#Concepts: Conceitos
WebExtensions#User_Interface: Interface de usuário
WebExtensions#How_to: Como
WebExtensions#API: APIs JavaScript
WebExtensions#manifest.json: Chaves Manifest
extension_workshop: Workshop de extensões
extension_workshop_develop: Desenvolver
extension_workshop_publish: Publicar
extension_workshop_manage: Gerenciar
extension_workshop_enterprise: Empreendimento
Channels: Canais
Blog: Blog de complementos
Forums: Fóruns complementares
Chat: Add-ons chat
es:
WebExtensions#Getting_started: Comenzar
WebExtensions#Concepts: Conceptos
WebExtensions#User_Interface: Interfaz de usuario
WebExtensions#How_to: Cómo hacer
WebExtensions#API: API de JavaScript
WebExtensions#manifest.json: Claves de manifiesto
extension_workshop: Taller de Extensión
extension_workshop_develop: Desarrollar
extension_workshop_publish: Publish
extension_workshop_manage: Gestionar
extension_workshop_enterprise: Empresa
Channels: Canales de discusión
Blog: Blog de complementos
Forums: Foro de complementos
Chat: Chat de complementos
ru:
WebExtensions#Getting_started: Начало работы
WebExtensions#Concepts: Основные понятия
WebExtensions#User_Interface: Пользовательский интерфейс
WebExtensions#How_to: How to
WebExtensions#Firefox_workflow: Firefox workflow
WebExtensions#API: Обзор JavaScript API
WebExtensions#manifest.json: Manifest keys
extension_workshop: Extension Workshop
extension_workshop_develop: Develop
extension_workshop_publish: Publish
extension_workshop_manage: Manage
extension_workshop_enterprise: Enterprise
Channels: Channels
Blog: Add-ons blog
Forums: Add-ons forum
Chat: Add-ons chat
73 changes: 73 additions & 0 deletions files/sidebars/addonsidebarmain.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
sidebar:
- type: section
link: /Mozilla/Add-ons/WebExtensions
text: WebExtensions
- type: section
link: https://extensionworkshop.com/documentation/themes/
title: Themes
- type: section
link: https://discourse.mozilla.org/c/add-ons
title: Community_and_Support

- details: closed
title: Channels
children:
- link: https://blog.mozilla.org/addons
title: Blog
- link: https://discourse.mozilla.org/c/add-ons
title: Forums
- link: https://stackoverflow.com/questions/tagged/firefox-addon
title: Stack_Overflow
- link: /Mozilla/Add-ons#contact_us
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether it is possible to localize the URL fragment here. As for zh-CN the link should be Mozilla/Add-ons#联系我们 instead of Mozilla/Add-ons#contact_us

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, that's broken right now, but I can add a hash attribute that has to be localized. I'll draft this up. But would block this on that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Support added see: 6a8f776

We might want to see how it goes, but that's the best way for now. I did realized this sidebar even though localized is only used in en-US,ru and ja.

title: "#Contact_us"

l10n:
en-US:
WebExtensions: Browser extensions
Themes: Themes
Community_and_Support: Community and Support
Channels: Channels
Blog: Add-ons blog
Forums: Add-on forums
Stack_Overflow: Stack Overflow
"#Contact_us": Contact us
fr:
WebExtensions: WebExtensions
Themes: Thèmes
Community_and_Support: Communauté et Support
Channels: Canaux de discussions
Blog: Blog extensions
Forums: Forum extensions
"#Contact_us": Nous contacter
ja:
WebExtensions: ブラウザー拡張機能
Themes: テーマ
Community_and_Support: コミュニティとサポート
Channels: チャンネル
Blog: ブログ
Forums: フォーラム
"#Contact_us": コンタクト
ko:
WebExtensions: 브라우저 확장 기능
Themes: 테마
Community_and_Support: 커뮤니티와 지원
Channels: 채널
Blog: 부가 기능 블로그
Forums: 부가 기능 포럼
"#Contact_us": 연락하기
zh-CN:
WebExtensions: 浏览器扩展程序
Themes: 主题
Community_and_Support: 社区和支持
Channels: 渠道
Blog: 附加组件博客
Forums: 附加组件论坛
"#Contact_us": 联系我们
es:
WebExtensions: Extensiones de navegador
Themes: Temas
Community_and_Support: Comunidad y soporte
Channels: Canales de discusión
Blog: Blog de complementos
Forums: Foro de complementos
"#Contact_us": Contáctenos
Loading
Loading