You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/getting_started_on_web.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar_label: Web
6
6
7
7
## Try the Demo
8
8
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)
10
10
# Integrating into your app
11
11
12
12
## NPM module dependencies
@@ -76,7 +76,7 @@ The `fbt` runtime requires that you initialize with your relevant translations v
76
76
77
77
### Changing of translation locale on the fly
78
78
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)
80
80
81
81
In order to change of translation locale on the fly, you'll need to do all the items below:
* 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)
Copy file name to clipboardExpand all lines: docs/pronouns.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Pronouns
4
4
sidebar_label: Pronouns
5
5
---
6
6
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:
Copy file name to clipboardExpand all lines: docs/translating.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@ title: Translating
4
4
sidebar_label: Translating FBTs
5
5
---
6
6
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`
8
8
that has FBT `phrases` (just like those collected from `collectFbt`)
9
9
alongside the relevant translations for a given locale.
10
10
11
11
In addition to the below example, the `translation_input.json`
Copy file name to clipboardExpand all lines: docs/utilities.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar_label: Runtime Utilities
6
6
7
7
Bundled with fbt come a few useful utilities for constructing strings.
8
8
### 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.
0 commit comments