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
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
40
+
41
+
steps:
42
+
- name: Checkout repository
43
+
uses: actions/checkout@v3
44
+
45
+
# Initializes the CodeQL tools for scanning.
46
+
- name: Initialize CodeQL
47
+
uses: github/codeql-action/init@v2
48
+
with:
49
+
languages: ${{ matrix.language }}
50
+
# If you wish to specify custom queries, you can do so here or in a config file.
51
+
# By default, queries listed here will override any specified in a config file.
52
+
# Prefix the list here with "+" to use these queries and those in the config file.
53
+
54
+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
55
+
# queries: security-extended,security-and-quality
56
+
57
+
58
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
59
+
# If this step fails, then you should remove it and run the build manually (see below)
60
+
- name: Autobuild
61
+
uses: github/codeql-action/autobuild@v2
62
+
63
+
# ℹ️ Command-line programs to run using the OS shell.
64
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
65
+
66
+
# If the Autobuild fails above, remove it and uncomment the following three lines.
67
+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
In these YML files, it is important that message ids in the code be consistent with
64
+
the categories in this file. Below are some general guidelines:
65
+
- For starters, there are an `actions`, `common`, `components`, and `config`
66
+
categories. Additional categories may be added as needed.
67
+
- Each sub-category under `components` denotes a React component and
68
+
should contain messages that are used only by that component (e.g. button captions).
69
+
- In contrast, some strings are common to multiple components,
70
+
so it makes sense to group them by theme (e.g. accessModes) under the `common` category.
71
+
72
+
Note: Do not put comments in the YML files! They will be removed by `yaml-sort`.
73
+
Instead, comments for other developers should be placed in the corresponding js/jsx/ts/tsx file.
74
+
Comments for translators should be entered into Weblate (see [Contributing Translations](#contributing-translations))
75
+
76
+
### Internationalizable content in the configuration file
77
+
78
+
Most textual content from the `i18n` folder can also be customized on a per-configuration basis
79
+
using the `language` section of `config.yml`, whether for all languages at once,
80
+
or for each supported individual language.
81
+
82
+
### Using internationalizable content in the code
83
+
84
+
Use message id **literals** (no variables or other dynamic content) with either
85
+
```jsx
86
+
<FormattedMessage id="..." />
87
+
```
88
+
or
89
+
```js
90
+
intl.formatMessage({ id: ... })
91
+
```
92
+
93
+
The reason for passing **literals** to `FormattedMessage` and `intl.formatMessage` is that we have a checker script `yarn check:i18n` that is based on the `formatJS` CLI and that detects unused messages in the code and exports translation tables.
94
+
Passing variables or dynamic content will cause the `formatJS` CLI and the checker to ignore the corresponding messages and
95
+
incorrectly claim that a string is unused or missing from a translation file.
96
+
97
+
One exception to this rule concerns configuration settings where message ids can be constructed dynamically.
98
+
99
+
### Contributing translations
100
+
101
+
OTP-react-redux now uses [Hosted Weblate](https://www.weblate.org) to manage translations!
exports[`actions > api routingQuery should make a query to OTP: OTP Query Path 1`] =`"/api/plan?fromPlace=Origin%20%2812%2C34%29%3A%3A12%2C34&toPlace=Destination%20%2834%2C12%29%3A%3A34%2C12&mode=WALK%2CTRANSIT&ignoreRealtimeUpdates=false&batchId=abcd1234"`;
102
+
exports[`actions > api routingQuery should make a query to OTP: OTP Query Path 1`] =`"/api/plan?fromPlace=%2812%2C34%29%3A%3A12%2C34&toPlace=%2834%2C12%29%3A%3A34%2C12&mode=WALK%2CTRANSIT&ignoreRealtimeUpdates=false&batchId=abcd1234"`;
0 commit comments