Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Commit fed487c

Browse files
retyuifacebook-github-bot
authored andcommitted
Replace master => with main (#309)
Summary: Just docs changes Pull Request resolved: #309 Reviewed By: mingshi-yang Differential Revision: D31620233 Pulled By: pkqinys fbshipit-source-id: f556b2a7e513f5aa49017379ede8b6f619856165
1 parent 4f426d4 commit fed487c

File tree

12 files changed

+21
-21
lines changed

12 files changed

+21
-21
lines changed

CHANGELOG.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ List of changes for each released npm package version.
5151
### fbt versions
5252
<details>
5353
<summary>
54-
Unreleased changes that have landed in master. Click to see more.
54+
Unreleased changes that have landed in main. Click to see more.
5555
</summary>
5656

5757
- [chore] Update babel-plugin-fbt-runtime dependency version to `^0.10.x`
@@ -143,7 +143,7 @@ List of changes for each released npm package version.
143143
### babel-plugin-fbt versions
144144
<details>
145145
<summary>
146-
Unreleased changes that have landed in master. Click to see more.
146+
Unreleased changes that have landed in main. Click to see more.
147147
</summary>
148148
</details>
149149

@@ -279,7 +279,7 @@ List of changes for each released npm package version.
279279
### babel-plugin-fbt-runtime versions
280280
<details>
281281
<summary>
282-
Unreleased changes that have landed in master. Click to see more.
282+
Unreleased changes that have landed in main. Click to see more.
283283
</summary>
284284
</details>
285285

@@ -339,7 +339,7 @@ List of changes for each released npm package version.
339339

340340
<details>
341341
<summary>
342-
Unreleased changes that have landed in master. Click to see more.
342+
Unreleased changes that have landed in main. Click to see more.
343343
</summary>
344344

345345
</details>
@@ -366,7 +366,7 @@ List of changes for each released npm package version.
366366
### @fbtjs/default-collection-transform versions
367367
<details>
368368
<summary>
369-
Unreleased changes that have landed in master. Click to see more.
369+
Unreleased changes that have landed in main. Click to see more.
370370
</summary>
371371

372372
- [chore] Update peer dependency on babel-plugin-fbt
@@ -391,7 +391,7 @@ List of changes for each released npm package version.
391391
### fb-babel-plugin-utils versions
392392
<details>
393393
<summary>
394-
Unreleased changes that have landed in master. Click to see more.
394+
Unreleased changes that have landed in main. Click to see more.
395395
</summary>
396396
</details>
397397

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ We sync our internal repo with this github repo via regularly scheduled cron job
88
## Pull Requests
99
We actively welcome your pull requests.
1010

11-
1. Fork the repo and create your branch from `master`.
11+
1. Fork the repo and create your branch from `main`.
1212
2. If you've added code that should be tested, add tests.
1313
3. If you've changed APIs, update the documentation.
1414
4. Ensure the test suite passes.

docs/collection.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_label: Extracting translatable texts
55
---
66
We provide
77

8-
[`collectFbt.js`](https://github.com/facebook/fbt/blob/master/packages/babel-plugin-fbt/src/bin/collectFbt.js)
8+
[`collectFbt.js`](https://github.com/facebook/fbt/blob/main/packages/babel-plugin-fbt/src/bin/collectFbt.js)
99
as a utility for collecting strings. It expects a JSON input of:
1010
```
1111
{
@@ -85,7 +85,7 @@ when *building* the translated payloads.
8585

8686
The hash of the callsite (defaulting to `jenkins` hash) is used to
8787
look up the payload in
88-
[`FbtTranslations`](https://github.com/facebook/fbt/blob/master/runtime/nonfb/FbtTranslations.js).
88+
[`FbtTranslations`](https://github.com/facebook/fbt/blob/main/runtime/nonfb/FbtTranslations.js).
8989
This is basically the hash of the object you see in `jsfbt`.
9090

9191
See [Translating FBTs](translating) for getting your translations in

docs/getting_started_on_web.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_label: Web
66

77
## Try the Demo
88
Check out our [Github](https://github.com/facebook/fbt) repository and run the Webpack demo app.
9-
See ["Building and starting the demo app"](https://github.com/facebook/fbt/tree/master/demo-app#building-and-starting-the-demo-app)
9+
See ["Building and starting the demo app"](https://github.com/facebook/fbt/tree/main/demo-app#building-and-starting-the-demo-app)
1010
# Integrating into your app
1111

1212
## NPM module dependencies
@@ -76,7 +76,7 @@ The `fbt` runtime requires that you initialize with your relevant translations v
7676

7777
### Changing of translation locale on the fly
7878

79-
Let's assume you've split your translation payloads per locale using the [`--output-dir` option](https://github.com/facebook/fbt/blob/98d0516290975f614737387748769e235bf61216/packages/babel-plugin-fbt/bin/translate.js#L145-L153) of the [`translate` script](https://github.com/facebook/fbt/blob/master/packages/babel-plugin-fbt/src/bin/translate.js). In this example, your app was initialized with the `es_ES` translation payload and, upon user request, you need to load `fr_FR` translations and show these in the UI. (We'll assume that your app already has access to the new translation payload)
79+
Let's assume you've split your translation payloads per locale using the [`--output-dir` option](https://github.com/facebook/fbt/blob/98d0516290975f614737387748769e235bf61216/packages/babel-plugin-fbt/bin/translate.js#L145-L153) of the [`translate` script](https://github.com/facebook/fbt/blob/main/packages/babel-plugin-fbt/src/bin/translate.js). In this example, your app was initialized with the `es_ES` translation payload and, upon user request, you need to load `fr_FR` translations and show these in the UI. (We'll assume that your app already has access to the new translation payload)
8080

8181
In order to change of translation locale on the fly, you'll need to do all the items below:
8282

docs/getting_started_react_native.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayo
3636
* Copy the files in the i18n folder of the demo app into your app. Find an explanation of each file below:
3737

3838
[NativeFbtModule.js](https://github.com/facebook/fbt/blob/rn-demo-app/i18n/NativeFbtModule.js)
39-
* TurboModule specification enabling usage in JavaScript of the [Android Native Module](https://github.com/facebook/fbt/blob/master/packages/react-native-fbt/android/src/main/java/com/facebook/react/modules/FbtModule.java)
39+
* TurboModule specification enabling usage in JavaScript of the [Android Native Module](https://github.com/facebook/fbt/blob/main/packages/react-native-fbt/android/src/main/java/com/facebook/react/modules/FbtModule.java)
4040

4141
[FbtI18nNativeAssets.js](https://github.com/facebook/fbt/blob/rn-demo-app/i18n/FbtI18nNativeAssets.js)
4242
* JavaScript wrapper around the native module

docs/pronouns.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Pronouns
44
sidebar_label: Pronouns
55
---
66

7-
`fbt:pronoun` and `fbt.pronoun` both take a required `PRONOUN_USAGE` enum and a [`GenderConst`](https://github.com/facebook/fbt/blob/master/runtime/nonfb/GenderConst.js) enum:
7+
`fbt:pronoun` and `fbt.pronoun` both take a required `PRONOUN_USAGE` enum and a [`GenderConst`](https://github.com/facebook/fbt/blob/main/runtime/nonfb/GenderConst.js) enum:
88
```
99
const PRONOUN_USAGE = {
1010
OBJECT: 0,

docs/transform.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ for the FBT payload, and store it for lookup later after generating the
1818
translated payload in a separate process. At resource request time, we lookup
1919
the `payload identifier + locale` and replace the identifier inline in source
2020
with the translated payload. Conceptually, we're performing the
21-
[`FbtTranslations`](https://github.com/facebook/fbt/blob/master/runtime/nonfb/FbtTranslations.js)
21+
[`FbtTranslations`](https://github.com/facebook/fbt/blob/main/runtime/nonfb/FbtTranslations.js)
2222
lookup, but on the server-side before serving the JS resource.

docs/translating.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ title: Translating
44
sidebar_label: Translating FBTs
55
---
66

7-
The [`translate`](https://github.com/facebook/fbt/blob/master/packages/babel-plugin-fbt/src/bin/translate.js) script expects a JSON payload coming in from `STDIN`
7+
The [`translate`](https://github.com/facebook/fbt/blob/main/packages/babel-plugin-fbt/src/bin/translate.js) script expects a JSON payload coming in from `STDIN`
88
that has FBT `phrases` (just like those collected from `collectFbt`)
99
alongside the relevant translations for a given locale.
1010

1111
In addition to the below example, the `translation_input.json`
1212
provided in our [GitHub demo
13-
app](https://github.com/facebook/fbt/blob/master/demo-app/translation_input.json)
13+
app](https://github.com/facebook/fbt/blob/main/demo-app/translation_input.json)
1414
is a good reference on the "schema" used for the translations.
1515

1616
```json

docs/utilities.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_label: Runtime Utilities
66

77
Bundled with fbt come a few useful utilities for constructing strings.
88
### intlList(...)
9-
[`intlList`](https://github.com/facebook/fbt/blob/master/runtime/shared/intlList.js) creates `fbt` instances with selectable conjunctions given an array.
9+
[`intlList`](https://github.com/facebook/fbt/blob/main/runtime/shared/intlList.js) creates `fbt` instances with selectable conjunctions given an array.
1010

1111
As an example
1212
```js

packages/fbt/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ https://facebook.github.io/fbt
1414
### Note
1515

1616
If you're trying to browse the source code,
17-
[**packages/fbt**](https://github.com/facebook/fbt/tree/master/packages/fbt)
17+
[**packages/fbt**](https://github.com/facebook/fbt/tree/main/packages/fbt)
1818
is the destination for the built package, and is largely empty. The source
1919
lives in the
20-
[**runtime** directory](https://github.com/facebook/fbt/tree/master/runtime)
20+
[**runtime** directory](https://github.com/facebook/fbt/tree/main/runtime)
2121
in the [GitHub repository](https://github.com/facebook/fbt).

packages/gulp-rewrite-flowtyped-modules/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ potentially-flow-typed JavaScript AST file for `import` and `require` statements
77
It rewrites modules according to the options passed in.
88

99
This behaves very similar to the
10-
[`rewrite-module`](https://github.com/facebook/fbjs/blob/master/packages/babel-preset-fbjs/plugins/rewrite-modules.js)
10+
[`rewrite-module`](https://github.com/facebook/fbjs/blob/main/packages/babel-preset-fbjs/plugins/rewrite-modules.js)
1111
in [babel-preset-fbjs](https://www.npmjs.com/package/babel-preset-fbjs) from the
1212
[fbjs](https://github.com/facebook/fbjs) package. The difference here is that
1313
it isn't done through Babel, but through [`flow-parser`](https://www.npmjs.com/package/flow-parser), and therefore keeps flow types intact.

website/src/components/Showcase.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const Showcase = ({ showAll = false }) => {
4747
"button button--primary button--outline",
4848
styles.button
4949
)}
50-
href="https://github.com/facebook/fbt/edit/master/website/docusaurus.config.js"
50+
href="https://github.com/facebook/fbt/edit/main/website/docusaurus.config.js"
5151
>
5252
Add your company/project
5353
</Link>

0 commit comments

Comments
 (0)