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
Copy file name to clipboardExpand all lines: firestore-translate-text/POSTINSTALL.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,18 @@ To test out this extension, follow these steps:
6
6
7
7
1. If it doesn't exist already, create a collection called `${param:COLLECTION_PATH}`.
8
8
9
-
1. Create a document with a field named `${param:MESSAGE_FIELD_NAME}` and make its value a word or phrase that you want to translate.
9
+
1. Create a document with a field named `${param:INPUT_FIELD_NAME}` and make its value a word or phrase that you want to translate.
10
10
11
-
1. In a few seconds, you'll see a new field called `${param:TRANSLATIONS_FIELD_NAME}` pop up in the same document you just created; it will contain the translations.
11
+
1. In a few seconds, you'll see a new field called `${param:OUTPUT_FIELD_NAME}` pop up in the same document you just created; it will contain the translations for each language specified.
12
12
13
13
### Using the extension
14
14
15
-
Whenever a string is written to the field `${param:MESSAGE_FIELD_NAME}` in `${param:COLLECTION_PATH}`, this extension translates the string into your specified target language(s). The source language of the string is automatically detected. This extension adds the translated string to `${param:TRANSLATIONS_FIELD_NAME}` in the same document using the following format:
15
+
Whenever a string is written to the field `${param:INPUT_FIELD_NAME}` in `${param:COLLECTION_PATH}`, this extension translates the string into your specified target language(s). The source language of the string is automatically detected. This extension adds the translated string to `${param:OUTPUT_FIELD_NAME}` in the same document using the following format:
16
16
17
17
```
18
18
{
19
-
${param:MESSAGE_FIELD_NAME}: 'My name is Bob',
20
-
${param:TRANSLATIONS_FIELD_NAME}: {
19
+
${param:INPUT_FIELD_NAME}: 'My name is Bob',
20
+
${param:OUTPUT_FIELD_NAME}: {
21
21
de: 'Ich heiße Bob',
22
22
en: 'My name is Bob',
23
23
es: 'Mi nombre es Bob',
@@ -26,7 +26,7 @@ Whenever a string is written to the field `${param:MESSAGE_FIELD_NAME}` in `${pa
26
26
}
27
27
```
28
28
29
-
If the `${param:MESSAGE_FIELD_NAME}` field of the document is updated, then the translations will be automatically updated, as well.
29
+
If the `${param:INPUT_FIELD_NAME}` field of the document is updated, then the translations will be automatically updated, as well.
0 commit comments