Giter Site home page Giter Site logo

reactjs / sq.reactjs.org Goto Github PK

View Code? Open in Web Editor NEW
4.0 6.0 5.0 145.64 MB

(Work in progress) React documentation website in Albanian

License: Creative Commons Attribution 4.0 International

JavaScript 34.69% CSS 7.82% HTML 0.29% Shell 0.01% TypeScript 57.18%

sq.reactjs.org's Introduction

react.dev

This repo contains the source code and documentation powering react.dev.

Getting started

Prerequisites

  1. Git
  2. Node: any 12.x version starting with v12.0.0 or greater
  3. Yarn: See Yarn website for installation instructions
  4. A fork of the repo (for any contributions)
  5. A clone of the react.dev repo on your local machine

Installation

  1. cd react.dev to go into the project root
  2. yarn to install the website's npm dependencies

Running locally

  1. yarn dev to start the development server (powered by Next.js)
  2. open http://localhost:3000 to open the site in your favorite browser

Contributing

Guidelines

The documentation is divided into several sections with a different tone and purpose. If you plan to write more than a few sentences, you might find it helpful to get familiar with the contributing guidelines for the appropriate sections.

Create a branch

  1. git checkout main from any folder in your local react.dev repository
  2. git pull origin main to ensure you have the latest main code
  3. git checkout -b the-name-of-my-branch (replacing the-name-of-my-branch with a suitable name) to create a branch

Make the change

  1. Follow the "Running locally" instructions
  2. Save the files and check in the browser
  3. Changes to React components in src will hot-reload
  4. Changes to markdown files in content will hot-reload
  5. If working with plugins, you may need to remove the .cache directory and restart the server

Test the change

  1. If possible, test any visual changes in all latest versions of common browsers, on both desktop and mobile.
  2. Run yarn check-all. (This will run Prettier, ESLint and validate types.)

Push it

  1. git add -A && git commit -m "My message" (replacing My message with a commit message, such as Fix header logo on Android) to stage and commit your changes
  2. git push my-fork-name the-name-of-my-branch
  3. Go to the react.dev repo and you should see recently pushed branches.
  4. Follow GitHub's instructions.
  5. If possible, include screenshots of visual changes. A preview build is triggered after your changes are pushed to GitHub.

Translation

If you are interested in translating react.dev, please see the current translation efforts here.

License

Content submitted to react.dev is CC-BY-4.0 licensed, as found in the LICENSE-DOCS.md file.

sq.reactjs.org's People

Contributors

acdlite avatar alexkrolick avatar arkist avatar bvaughn avatar chenglou avatar daniel15 avatar danilowoz avatar dependabot[bot] avatar dschau avatar gaearon avatar iamchenxin avatar jimfb avatar jxom avatar koba04 avatar kohei-takata avatar lex111 avatar marocchino avatar mcsheffrey avatar petehunt avatar rickhanlonii avatar robhrt7 avatar saranshkataria avatar sebmarkbage avatar sophiebits avatar tesseralis avatar vjeux avatar yangshun avatar yungsters avatar zpao avatar zqran avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sq.reactjs.org's Issues

Terma problematike

Terma problematike

Ketu eshte nje list e termave qe kerkojne disuktim/marreveshje.

Nese hasni nje nga keto terma per here te pare, mund te jete e vlefshme te kontrolloni "issue-n" per te pare se cili eshte diskutimi aktual rreth menyres se si duhet te trajtojme nje perkthim te qendrueshem ne te gjithe faqen web.

  • to render
  • refactor
  • event handler
  • event listener
  • mount and unmount

Udhezues i pergjithshem per stilin

Udhezues i pergjithshem per stilin

This Style Guide is based on the Universal Style Guide

Ky udhezues per stilin eshte i bazuar ne Universal Style Guide

Ky udhëzues per stilin përshkruan rregullat që duhet të zbatohen për të gjitha gjuhët.

Fjalorth

Shiko ketu

ID-ja e titujve (headers)

Te gjithe titujt kane ID specifike, si per shembull:

## Try React {#try-react}

Mos i perktheni keto ID! Ato perdoren per navigim dhe rrezikojne te mos funksionojne me.

Per shembull, duke pasur kete link:

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

✅ Keshtu eshte NE RREGULL ✅:

## Provo React {#try-react}

❌ Keshtu eshte GABIM! ❌:

## Provo React {#provo-react}

Me shembullin e dyte, linku pak me larte nuk do te funksionoj me.

Teksti ne blloqet e kodit

Mos perkthe kurre tekstin ne blloqet e kodit, pervec komenteve. Mund te kesh nevoje mbase per te perkthyer dhe tekstin e strings, por ki kujdes te MOS perkthesh strings qe jane referenca per kodin.

Per shembull:

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

✅ Keshtu eshte NE RREGULL ✅:

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

✅ EDHE keshtu eshte NE RREGULL ✅:

// Shembull
const element = <h1>Pershendes te gjithe boten!</h1>;
ReactDOM.render(element, document.getElementById('root'));

❌ Keshtu eshte GABIM! ❌:

// Shembull
const element = <h1>Pershendes te gjithe boten!</h1>;
// "root" i referohet ID-se se nje elementi
// MOS E PERKTHE!
ReactDOM.render(element, document.getElementById('rrenja'));

❌ KJO AKOMA EDHE ME GABIM!! ❌:

// Shembull
// ABSOLUTISHT JO!
const elementi = <h1>Pershendes te gjithe boten!</h1>;
ReactDOM.gjenero(elementi, dokument.merrElementinNgaId('rrenja'));

Linqe te jashtme

Nese nje link i jashtem riadreson ne nje artikull reference si MDN ose Wikipedia, dhe ekziston nje version i atij artikulli ne gjuhen shqipe, i nje cilesi te mire, mund ta vleresosh te link-osh versionin e perkthyer ne gjuhen shqipe, ne vend te artikullit origjinal.

Shembull:

React Native is an open-source UI software framework (https://en.wikipedia.org/wiki/React_Native).

✅ Keshtu eshte NE RREGULL ✅:

React Native eshte nje kornize e aplikacioneve mobile (https://sq.wikipedia.org/wiki/React_Native).

Per linqet per te cilat nuk ekziston nje version i perkthyer (StackOverflow, Youtube, etj...) perdorni thjesht linkun ne anglisht.

Albanian Translation Progress

Maintainer List

For New Translators

To translate a page:

  1. Check that no one else has claimed your page in the checklist and comments below.
  2. Comment below with the name of the page you would like to translate. Please take only one page at a time.
  3. Clone this repo, translate your page, and submit a pull request!

Before contributing, read the glossary and style guide (once they exist) to understand how to translate various technical and React-specific terms.

Please be prompt with your translations! If you find that you can't commit anymore, let the maintainers know so they can assign the page to someone else.

For Maintainers

When someone volunteers, edit this issue with the username of the volunteer, and with the PR. Ex:

When PRs are merged, make sure to mark that page as completed!

Core Pages

To do before releasing as an "official" translation. Please translate these pages first.

  • Home Page
  • Tutorial

Basics

  • Hello World
  • Introducing JSX
  • Rendering Elements
  • Components and Props
  • State and Lifecycle
  • Handling Events
  • Conditional Rendering
  • Lists and Keys
  • Forms
  • Lifting State Up
  • Composition vs Inheritance
  • Thinking in React

API Reference

  • React
  • React.Component
  • ReactDOM
  • ReactDOMServer
  • DOM Elements
  • SyntheticEvent
  • Test Utilities
  • Shallow Renderer
  • Test Renderer
  • JS Environment Requirements
  • Glossary

Navigation

These are the navigation links that appear in the sidebar. Possibly wait until
the corresponding sections are translated to do these.

  • tutorial/nav.yml
  • docs/nav.yml

Next Steps

These are the next most important translations, ordered by importance:

Installation

  • Getting Started
  • Add React to a Website
  • Create a New React App
  • CDN Links

Hooks

Everyone is hooked on hooks! People are really excited about these and it would be great for them to be translated.

  • Introducing Hooks
  • Hooks at a Glance
  • Using the State Hook
  • Using the Effect Hook
  • Rules of Hooks
  • Building Your Own Hooks
  • Hooks API Reference
  • Hooks FAQ

Warnings

These are the pages that you get when you click the links in the console (e.g. https://reactjs.org/warnings/dont-call-proptypes.html). People tend to search these, so please don't translate the error message itself.

  • dont-call-proptypes
  • invalid-aria-prop
  • invalid-hook-call-warning
  • legacy-factories
  • refs-must-have-owner
  • special-props
  • unknown-prop

Advanced Guides

  • Accessibility
  • Code-Splitting
  • Context
  • Error Boundaries
  • Forwarding Refs
  • Fragments
  • Higher-Order Components
  • Integrating with Other Libraries
  • JSX In Depth
  • Optimizing Performance
  • Portals
  • React Without ES6
  • React Without JSX
  • Reconciliation
  • Refs and the DOM
  • Render Props
  • Static Type Checking
  • Strict Mode
  • Typechecking With PropTypes
  • Uncontrolled Components
  • Web Components

FAQ

  • APIs and AJAX
  • Babel, JSX, and Build Steps
  • Passing Functions to Components
  • Component State
  • Styling and CSS
  • File Structure
  • Versioning Policy
  • Virtual DOM and Internals

Contributing

Priority: Low

  • How to Contribute
  • Codebase Overview
  • Implementation Notes
  • Design Principles

Components

Components in src/components that have some text in them.

  • CodeEditor
  • CodeExample
  • ErrorDecoder
  • LayoutFooter
  • LayoutHeader
  • MarkdownPage

Additional Translations

These are not the primary translation targets.

  • Blog
  • Community

Terma te paperkthyeshem

Terma te paperkthyeshem

  • props (core concept)
  • state (core concept)
  • hooks (core concept)
  • ref (core concept)
  • footer
  • bug
  • browser
  • client
  • server
  • array
  • alert
  • record
  • true
  • false
  • tag
  • lifecycle
  • callback
  • console
  • warning
  • form/forms
  • render props
  • strict mode
  • web components
  • build steps
  • wrapper
  • provider
  • consumer
  • reducer

[Beta React Docs] New Albanian Translation Progress

Beta Website

All the ongoing translations for the current docs will be suspended, as it only makes sense to focus on the new website content now. Dan Abramov suggested not to put extra energy into translating the current content.

Maintainer List

For New Translators

To translate a page:

  1. Check that no one else has claimed your page in the checklist and comments below.
  2. Comment below with the name of the page you would like to translate. Please take only one page at a time.
  3. Clone this repo, translate your page, and submit a pull request!

Before contributing, read the glossary and style guide to understand how to translate various technical and React-specific terms.

Please be prompt with your translations! If you find that you can't commit anymore, let the maintainers know, so they can assign the page to someone else.

For Maintainers

When someone volunteers, edit this issue with the username of the volunteer, and with the PR. Ex:

When PRs are merged, make sure to mark that page as completed!

What is ok to translate now?

The new docs aren't fully written yet, and some parts will definitely change. However, a lot of the pages are already "stable". It is suggested to use this checklist for the beginning. ✅ means "ok to translate", 🔴 means "don't translate yet".

(Updated on Feb 12: more pages ok to translate.) Ref: (reactjs/react.dev#4135)

  • ✅ Installation (note: a lot of content here is similar to old website) ✅ FINISHED theringsofsaturn
  • ✅ Quick Start ✅ FINISHED by theringsofsaturn
  • ✅ Describing the UI
    • ✅ Your First Component
    • ✅ Importing and Exporting Components
    • ✅ Writing Markup with JSX
    • ✅ JavaScript in JSX with Curly Braces
    • ✅ Passing Props to a Component
    • ✅ Conditional Rendering
    • ✅ Rendering Lists
    • ✅ Keeping Components Pure
  • ✅ Adding Interactivity
    • ✅ Responding to Events
    • ✅ State: A Component's Memory
    • ✅ Render and Commit
    • ✅ State as a Snapshot
    • ✅ Queueing a Series of State Updates
    • ✅ Updating Objects in State
    • ✅ Updating Arrays in State
  • ✅ Managing State
    • ✅ Reacting to Input with State
    • ✅ Choosing the State Structure
    • ✅ Sharing State Between Components
    • ✅ Preserving and Resetting State
    • ✅ Extracting State Logic into a Reducer
    • ✅ Passing Data Deeply with Context
    • ✅ Scaling Up with Reducer and Context
  • 🔴 Escape Hatches (not written yet)
    • ✅ Referencing Values with Refs
    • ✅ Manipulating the DOM with Refs
  • API
    • ✅ React APIs (ok to translate, but incomplete)
      • ✅ useState
    • ✅ React DOM APIs (ok to translate, but incomplete)
      • ✅ render

How to translate?

Currently, the beta website is in the beta folder. So all existing translation repos should have it synced (if the sync script is working). So you can follow the existing process. If something doesn't work, please comment here, so we can ask then to Beta translation upstream (#4135)

If we are able to translate at least three pages, we can ask the team to setup a deployment for us.

Something unclear?

Please comment here with concerns or suggestions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.