Skip to content

Latest commit

 

History

History
91 lines (62 loc) · 2.01 KB

style-guide.md

File metadata and controls

91 lines (62 loc) · 2.01 KB

Azərbaycan Versiyası

Universal Style Guide

This repo describes rules that should be applied to all languages.

Heading IDs

All headings have explicit IDs like this:

## Try React {#try-react}

Do not translate these IDs! They are used for navigation and will break if the document is referred to externally, i.e.:

See the [beginning section](/getting-started#try-react) for more information.

✅ DO:

## React-i Sına {#try-react}

❌ DON'T:

## React-i Sına {#react-sına}

This will break the link above.

Text in Code Blocks

Leave text in code blocks untranslated except for comments. You may optionally translate text in strings, but be careful not to translate strings that refer to code!

Example:

// Example
const element = <h1>Hello, world</h1>;
ReactDOM.render(element, document.getElementById('root'));

✅ DO:

// Nümunə
const element = <h1>Salam dünya</h1>;
ReactDOM.render(element, document.getElementById('root'));

❌ DON'T:

// Nümunə
const element = <h1>Salam dünya</h1>;
// "root" element ID-dir.
// TƏRCÜMƏ ETMƏ
ReactDOM.render(element, document.getElementById('kök'));

❌ DEFINITELY DON'T:

// Nümunə
const element = <h1>Salam dünya</h1>;
ReactDOM.render(element, dokument.idəGörəElementSeç('kök'));

External Links

If an external link is to an article in a reference like MDN or Wikipedia, and a version of that article exists in your language that is of decent quality, consider linking to that version instead.

Example:

React elements are [immutable](https://en.wikipedia.org/wiki/Immutable_object).

✅ OK:

React elementləri [dəyişilməzdir](https://az.wikipedia.org/wiki/Dəyişilməz_obyekt).

For links that have no equivalent (Stack Overflow, YouTube videos, etc.), just use the English link.