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
language | en, de, es, etc... | en | Language to be used for translatable texts
12
-
[RTL](#rtl) (**deprecated since 1.0.0-rc.8**)| true, false | false| When true, sets global text direction to right-to-left
13
-
[animationMode](#animationMode) | full, basic, minimal, none | full| Defines different animation scenarios or levels
14
-
calendarType | Gregorian, Islamic, Buddhist, Japanese, Persian | Gregorian| Default calendar type for date-related web components
15
-
[noConflict](#noConflict)| true, false | false | When set to true, all events will be fired with a "ui5-" prefix only
16
-
[formatSettings](#formatSettings)| See the [Format settings](#formatSettings) section below| Empty object | Allows to override locale-specific configuration
17
-
[assetsPath](#assetsPath)| See the [Assets path](#assetsPath) section below | Empty string | Allows to set the assets path at runtime
language | en, de, es, etc... | en | Language to be used for translatable texts
12
+
[animationMode](#animationMode) | full, basic, minimal, none | full | Defines different animation scenarios or levels
13
+
calendarType | Gregorian, Islamic, Buddhist, Japanese, Persian | Gregorian | Default calendar type for date-related web components
14
+
[noConflict](#noConflict) | true, false | false | When set to true, all events will be fired with a "ui5-" prefix only
15
+
[formatSettings](#formatSettings) | See the [Format settings](#formatSettings) section below | Empty object | Allows to override locale-specific configuration
16
+
[assetsPath](#assetsPath)| See the [Assets path](#assetsPath) section below| Empty string | Allows to set the assets path at runtime
17
+
[fetchDefaultLanguage](#fetchDefaultLanguage) | true, false | false | The default language is inlined at build time and will be used. Change this to `true` if you want the i18n to be always fetched from the network even for the default language.
18
18
19
19
### Content Density
20
20
21
21
UI5 Web Components contain different content densities for certain controls that allow your app to adapt to the device in question, allowing you to display larger controls for touch-enabled devices, and a smaller more compact design for devices that are operated by mouse. Cosy size is the default density for all components. Compact size could be set by adding a class `ui5-content-density-compact` to an html element. It cascades all the way down and enforces compact density (smaller margins/paddings, smaller touch areas, etc).
22
22
23
-
<aname="theme"></a>
24
23
### Theme
24
+
<aname="theme"></a>
25
25
The `theme` setting values above are the technical names of our themes.
26
26
- The `sap_fiori_3` is known as `Quartz Light` and it`s the default theme.
27
27
- The `sap_fiori_3_dark` is known as `Quartz Dark`.
@@ -50,8 +50,8 @@ applyDirection();
50
50
```
51
51
52
52
53
-
<aname="animationMode"></a>
54
53
### Animation Mode
54
+
<aname="animationMode"></a>
55
55
56
56
Animation modes allow to specify different animation scenarios or levels.
57
57
- When `full`, all animations run unrestricted.
@@ -85,8 +85,8 @@ The `noConflict` configuration setting allows certain control over this behavior
85
85
You can still use them by listening to `ui5-selection-change` and `ui5-header-click`, but the names `selection-change` and `header-click` will be
86
86
free for use by other UI components and libraries without name collision.
87
87
88
-
<aname="formatSettings"></a>
89
88
### Format settings
89
+
<aname="formatSettings"></a>
90
90
91
91
For example, to force the first day of week to Sunday, no matter the locale:
92
92
@@ -98,12 +98,12 @@ For example, to force the first day of week to Sunday, no matter the locale:
firstDayOfWeek | 0 (Sunday) through 6 (Saturday) | *Depends on locale* | When set, overrides the locale's default value
104
104
105
-
<aname="assetsPath"></a>
106
105
### Assets path
106
+
<aname="assetsPath"></a>
107
107
108
108
This configuration setting allows to set the path where asset files (most commonly `.json` ) that are to be fetched at runtime, are located. These are:
109
109
- Icon collections
@@ -123,6 +123,24 @@ Example:
123
123
</script>
124
124
```
125
125
126
+
### Fetching the default language
127
+
<aname="fetchDefaultLanguage"></a>
128
+
129
+
All texts used by components are inlined during build time so that components look and feel normally when prototyping. The inlined text is decided at build time (`en` unless configured otherwise).
130
+
131
+
Since the default language is inlined, it makes no sense to fetch it again from the network along with the normal assets for other locales, so the default behaviour is to use the inlined text.
132
+
133
+
If for some reason it is necessary to fetch the default language text from the network as well, use this setting.
134
+
135
+
Example:
136
+
```html
137
+
<scriptdata-ui5-configtype="application/json">
138
+
{
139
+
"fetchDefaultLanguage":true
140
+
}
141
+
</script>
142
+
```
143
+
126
144
## Configuration script
127
145
128
146
In order to provide configuration settings, include the following ```<script>``` element in your HTML page:
0 commit comments