-
Notifications
You must be signed in to change notification settings - Fork 1
/
frontend.env
113 lines (99 loc) · 4.83 KB
/
frontend.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# API configs
BACKEND_URL="http://ape-backend:5000"
VUE_APP_BACKEND_URL="/api"
# Environment
# The value should be the an element of the following set:
# { "DEV", "PROD" }
VUE_APP_ENVIRONMENT="DEV"
# Firebase authentication options
# The value should be the an element of the following set:
# { true, false }
VUE_APP_ENABLE_AUTHENTICATION_IN_PRODUCTION=true
VUE_APP_ENABLE_AUTHENTICATION_IN_DEVELOPMENT=false
# If this option is activated, the frontend will generate fake translations and fake suggestions
# instead of contacting the backend
# This can be useful for testing or developing the frontend
# The value should be the an element of the following set:
# { true, false }
VUE_APP_ENABLE_FAKE_API=false
# If the fake API is enabled, this controls how long it will take until the fake API returns
# a result.
# The value is in milliseconds and should be a natural number.
VUE_APP_FAKE_API_DELAY=500
# Controls which messages will appear in the console of the browser.
# For example, if WARN is selected, warnings and errors will appear.
# The value should be an element of the following set:
# {"TRACE", "DEBUG", "INFO", "WARN", "ERROR", "SILENT"}
VUE_APP_LOG_LEVEL="WARN"
# Controls the character limit for the translation in the frontend.
VUE_APP_ENABLE_CHARACTER_LIMIT=true
# Always specify some limit, even if the character limit is disabled.
# The value should be a natural number.
VUE_APP_CHARACTER_LIMIT=10000
# This enables the native spellcheck both on the first page and in the
# machine-translated text on the second page.
# The value should be from the following set: { true, false }
VUE_APP_ENABLE_SPELLCHECK=true
VUE_APP_ALLOW_MULTIPLE_DICTIONARY_SELECTION=true
# It is possible to limit how many sentences will have a suggestion. If there are more suggestions
# available than the specified maximum, the suggestions that will be displayed are selected randomly.
# The value represents a percentage and should be in the interval [0, 1].
# examples: 0.2, 0.75, 1
VUE_APP_MAX_SUGGESTION_RATIO=1
# This controls which text segments will be sent to the backend when the user copies text in the
# machine translation column on the second page. The options are as follows:
#
# true: Every existing text segment will be sent to the backend. This includes text segments that
# belong to text that has been deleted by the user through manual edits in the translated
# text. This also includes text segments that belong to text that has been added through
# manual edits in the translated text.
#
# false: Only those text segments that correspond to currently selected text will be sent to the
# server. If user clicks the "Copy translated text" button, all currently displayed text
# will be selected and all their corresponding text segments will be sent to the server.
VUE_APP_SEND_ALL_TEXT_SEGMENTS=true
# This variable defines the available language-pairs and dictionaries in the frontend.
#
# The value of this variable should be a javascript array which contains one object for
# each supported language pair.
#
# In the "from" and "to" fields, the value should be from the following set:
# { "en", "de", "fr" }
#
# the "availableDicts" field must be an array of strings (identifiers of the respective dictionaries).
#
# Example 1:
# [
# {
# "from": "de",
# "to": "en",
# "allowUserDict": true,
# "availableDicts": [
# "exampleDict1",
# "exampleDict2"
# ]
# }
# ]
#
# Note that the object must be collapsed into one line. Also, the quotes must be exactly as in the examples:
#
# Value for example 1:
# VUE_APP_AVAILABLE_LANGUAGE_PAIRS=[{"from": "de","to": "en","allowUserDict": true,"availableDicts": ["exampleDict1","exampleDict2"]}]
#
VUE_APP_AVAILABLE_LANGUAGE_PAIRS=[{"from": "de","to": "en","allowUserDict": true,"availableDicts": ["exampleDict1","exampleDict2"]}]
# Firebase configuration that is used in development mode
# Note that the object must be collapsed into one line. Also, the quotes must be exactly as in the example.
# If Firebase Authentication is not used, the value can also be an empty object: {}
#
# Example
# VUE_APP_DEV_FIREBASE_CONFIG = {"apiKey": "","appId": "","messagingSenderId": "","projectId": "","authDomain": "","storageBucket": ""}
#
VUE_APP_DEV_FIREBASE_CONFIG = {"apiKey": "","appId": "","messagingSenderId": "","projectId": "","authDomain": "","storageBucket": ""}
# Firebase configuration that is used in development mode
# Note that the object must be collapsed into one line. Also, the quotes must be exactly as in the example.
# If Firebase Authentication is not used, the value can also be an empty object: {}
#
# Example
# VUE_APP_PROD_FIREBASE_CONFIG = {"apiKey": "","appId": "","messagingSenderId": "","projectId": "","authDomain": "","storageBucket": ""}
#
VUE_APP_PROD_FIREBASE_CONFIG = {"apiKey": "","appId": "","messagingSenderId": "","projectId": "","authDomain": "","storageBucket": ""}