GithubHelp home page GithubHelp logo

newvo1d / translated-content Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mdn/translated-content

0.0 0.0 0.0 448.76 MB

The source repository of all translated content for MDN Web Docs

Home Page: https://developer.mozilla.org/en-US/docs/MDN/Community/Contributing/Translated_content

License: Other

Shell 0.01% Markdown 100.00% HTML 0.01%

translated-content's Introduction

Contributing to the translated content of MDN Web Docs

πŸŽ‰ First of all, thanks for taking the time to contribute to MDN Web Docs’ translated content! πŸŽ‰

The following is a set of guidelines for contributing to the translated content of MDN Web Docs, which is hosted within the MDN Organization on GitHub.

Guidelines for peers can be found here.

Locales

Before we go any further, you should be aware that we are only accepting updates to active locales β€” this means locales that have active community maintenance teams in place to review PRs, fix issues, make updates, etc. Currently the list of active locales is:

  • fr
  • ja
  • ko
  • pt-BR
  • ru
  • zh (zh-CN and zh-TW)
  • es

If you want to just find a task and jump in, search by the labels l10n-fr, l10n-ja, l10n-ko, l10n-pt-br, l10n-ru, l10n-zh and l10n-es in this repo's issues list, or the main content repo issues.

Code of Conduct

Everyone participating in this project is expected to follow our Code of Conduct.

License

When contributing to the content you agree to license your contributions according to our license.

Making contributions

A good place to learn about general guidelines for contributing to MDN Web Docs is the Guidelines document. For example, you can find out more about MDN's writing-style guidelines via the Writing style guide.

Setting up to edit

This repo has exactly the same folder structure, concepts, and commands available to it as the content repo, which holds all of MDN's English content. The main difference is in the setup you need to do before you can start editing. It is mostly the same, but there is a little bit more to consider.

The basic build steps are described in the content repo Build the site section. More detailed steps along with hints for tooling are covered in the content repo Contributing guide

Now you need to fork and clone both the content repo and the translated-content repo (this repo).

Content repo setup

  1. Navigate to your local clone of the content repository fork:

    cd ~/path/to/content
  2. Run the command yarn install to fetch the latest packages and get the local MDN testing environment set up. It is also recommended that you run yarn install before every update you do to the source, to make sure you have the latest packages.

  3. Next, create an environment variable called CONTENT_TRANSLATED_ROOT containing the path to the translated-content repo’s files directory. You could do this for a single session like so:

    export CONTENT_TRANSLATED_ROOT=/path/to/translated-content/files

    You must set this every time you start a new shell or terminal session. To avoid this, you can put the environment variable in a .env file at the root of your content repo. You can do this with the following command:

    echo CONTENT_TRANSLATED_ROOT=/path/to/translated-content/files >> .env

    (the .env file will be created for you if it does not already exist.)

  4. Run the command yarn start to start the local server at localhost:5042.

Working in the translated-content repo

Over in the translated-content repo, decide what change you want to make, and then:

  1. Create a new branch to make your changes in.

  2. Switch to your new branch and make the changes you want to make. You can keep going back to localhost:5042/<your_locale> (e.g. localhost:5042/fr for French) to test your changes and make sure the content looks how you want it to look.

  3. When you are satisfied with your changes, create a pull request and one of our review teams will review it.

  4. When your pull request is merged by a reviewer, the changes may take up to 48 hours to be visible.

For more info on editing this repo

For more information, we'd like to suggest that you go to the content repo and read its contribution guide, particularly to learn about how to get started, pull request etiquette, and common actions such as adding, moving, or deleting documents.

translated-content's People

Contributors

mfuji09 avatar yin1999 avatar sphinxknight avatar nschonni avatar fwqaaq avatar jasonren0403 avatar hochan222 avatar graywolf9 avatar alattalatta avatar huacnlee avatar mdn-bot avatar queengooborg avatar fiji-flo avatar peterbe avatar yangfong avatar snowmarble avatar mikecat avatar cw118 avatar debiru avatar logic-finder avatar wisedog avatar lex111 avatar yujisoftware avatar audrasjb avatar josielrocha avatar yyss avatar gurezo avatar manjuu-eater avatar awxiaoxian2020 avatar tristantheb avatar

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.