3. Configuration format
Level: reference. Every field of the document: what it means, which values it accepts, how it is checked. The rules Squiddy uses to choose between the blocks are on the next page, Resolution rules.
The complete document
A document that uses everything the format offers. The // comments are here only to explain: the real document is plain JSON and does not allow them.
{
"configVersion": "2026.08.05",
// api — ORDERED list of blocks. The FIRST one that matches is served.
"api": [
{
"serverMode": "path",
"baseUrl": "https://api.example.com/",
"apiVersion": "3.18",
"appTypes": ["ios", "android"],
"appModes": ["release"],
"min": "2024.01.01",
"max": "9999.99.99",
"activeDebug": false,
"languagesSupported": ["it", "en"],
"serverSettings": [
{ "key": "environment", "value": "prod", "type": "string", "action": "read" }
],
"rules": [
["beta-user", "internal"],
["ios-17"]
],
"segments": ["eu-region"],
"rollout": { "percentage": 25, "key": "entity", "salt": "checkout-v2" },
"refreshInterval": 0
}
],
// appUpdate — force update. The LAST block that matches wins.
"appUpdate": [
{
"required": true,
"min": "0000.00.00",
"max": "2023.12.31",
"appTypes": ["all"],
"appModes": ["all"],
"msg": [
{ "language": "default", "title": "Update required", "message": "Please update the app." },
{ "language": "it", "title": "Aggiornamento", "message": "Aggiornamento obbligatorio." }
]
}
],
// inFoPoint — maintenance / notice. The LAST block that matches wins.
"inFoPoint": [
{
"halt": true,
"min": "0000.00.00",
"max": "9999.99.99",
"appTypes": ["all"],
"appModes": ["all"],
"msg": [
{ "language": "default", "title": "Maintenance", "message": "We will be back soon." }
]
}
],
// segments — reusable filters on the customParams, referenced by name from the api blocks.
"segments": {
"eu-region": [["region-eu"]],
"beta-testers": [["beta-user", "internal"]]
},
// languages — translations delivered through the configuration.
"languages": {
"defaultLang": "it",
"langList": [
{
"it": [{ "greeting": "Ciao" }, { "bye": "Ciao ciao" }],
"en": [{ "greeting": "Hello" }, { "bye": "Bye" }]
}
]
}
}
The template the editor offers for a new app is more modest: configVersion at "1.0.0", empty api, appUpdate and inFoPoint, and a languages block without translations. It is not valid yet, and it says so at once: the badge points out that the api block is missing, without which no app would receive the configuration. It is the first field to fill in, not a warning to ignore.
In the Form the parts of the document have these sections: Server APIs (the api blocks), Force update (appUpdate), Maintenance (inFoPoint) and Translations (languages). What you change from the Form and what only from the JSON is at the bottom of the page.
Root
| Field | Type | Required | Notes |
|---|---|---|---|
configVersion | string | no | The configuration's label, returned to the app in every answer. No format is imposed: it is your own tag (a date, a version number, a release number). It updates itself at every publishing (see below); empty or absent, it is published as 1.0.0. |
api | array of blocks | yes | At least one block: publishing refuses an empty or absent api. Having one, though, is not enough: if no block matches the app that asks, the request fails with the 5001 error, it does not return a partial answer (page 4). |
appUpdate | array of blocks | no | Absent or empty: no force update. |
inFoPoint | array of blocks | no | Absent or empty: no maintenance message. |
segments | object name → rules | no | Definitions only; it has no effect until an api block references them. |
languages | object | no | Absent: no translations delivered. |
configVersion updates itself when you publish
At every publishing Squiddy decides the configVersion of the version it publishes, so that every published version has a new number without anyone having to change it by hand. It compares it with the one of the version published at that moment:
| In the draft | Published before | Published with |
|---|---|---|
| the same as the published one | 2.3.667 | 2.3.668: the last part goes up by one |
| the same as the published one | 1.9 | 1.10 (it counts, it does not compare as a string) |
| the same as the published one, a date without a counter | 2026.11.07 | 2026.11.07.1: the counter is added, the day does not change |
| the same as the published one, a date with the counter | 2026.11.07.6721 | 2026.11.07.6722: only the counter goes up |
| different from the published one, that is changed by hand | 1.0.4 | the draft's value, for example 2.0.0 |
| any value, at the first publishing | — | the draft's value |
| empty or absent | any | 1.0.0 |
| the same as the published one, with a non-numeric last part | 1.0.0-beta | 1.0.0-beta, unchanged: publishing says so with a yellow warning, and it has to be changed by hand |
The last part is the one after the last dot, and it goes up only if it is made of digits alone: 1.0.0-beta.1 becomes 1.0.0-beta.2, v10 stays v10.
A date is only a real day written YYYY.MM.DD: three parts, a four-digit year, the month from 01 to 12 and a day that exists in that month of that year, 29 February included in leap years. If the draft still carries the published date, the new version receives the counter .1, so it stays dated to the day you wrote, and from then on only the counter goes up (YYYY.MM.DD.x). Everything else is a normal version and goes up on its last part: 1.2.3 becomes 1.2.4, and 2026.13.01 (month 13) also becomes 2026.13.02 and 2026.02.30 becomes 2026.02.31, because they are not dates. For a new day write the date by hand: 2026.11.22 in place of 2026.11.07.3 counts as changed by hand and is published as it is.
Squiddy does it, not the dashboard, so it holds for whoever publishes from the API too: the answer to the publishing says the value used and how it was decided, and the publishing entry of the audit log reports them.
Two cases worth knowing:
- a restore brings back the
configVersionof the restored version, which is usually different from the published one: it counts as changed by hand and is published as it is, that is with the old number. If you want a new number, change it before publishing; - a version already published in the past, published again from the API, goes back into service exactly as it was: its story is not rewritten.
In the editor the line above the tabs shows the configVersion of the text and says so: “updates itself when you publish”. After publishing, the text and the line show the new value.
Versions: how they are compared
Each block marks the versions it applies to with min and max, and the app declares its own appVersion. The comparison works like this: the dots are removed and the result is read as a whole number.
| String | Whole number used in the comparison |
|---|---|
2026.08.05 | 20260805 |
0000.00.00 | 0 |
9999.99.99 | 99999999 |
1.2.0 | 120 |
1.10.0 | 1100 |
The first three rows are the reason why the recommended format is YYYY.MM.DD with leading zeros, and the last two are the reason why a fixed format is needed: with variable-width fields 1.10.0 comes out greater than 1.2.0 by a factor of ten, and a min/max range written in good faith includes or excludes versions at random. If your versions look like 1.10.0, write every part with the same number of digits (01.10.00) and do so in the whole document.
Two more points worth knowing:
minandmaxare both inclusive:min: "2024.01.01"includes exactly that version.- They are not optional. An empty string, a missing one or one that is not numeric once the dots are removed cannot be read: publishing refuses it, and at the app's request it would make the answer fail. The range “every version” is written
min: "0000.00.00",max: "9999.99.99".
The api block
It describes which server the app has to talk to. It is the section without which there is no answer. In the Form it is the Server APIs section, with one box per block (API block 1, API block 2…) and the Add API block button.
| Field | Type | Required | Meaning |
|---|---|---|---|
apiVersion | string | yes | The version of the API to use (in the Form, API version). Returned to the app and, in path mode, added to baseUrl. |
serverMode | string | yes | How the app has to talk to your server (Server mode). Values in use: path, get, post, x-www-form-urlencoded. Only path changes Squiddy's answer (see below); the others are instructions the app interprets. |
baseUrl | string | in fact yes | The address of your server (Base URL). No check demands it: a block without baseUrl is published and hands the app an empty address. |
appTypes | array of strings | yes, in practice | The platforms served (App types): ios, android, tvos, web, desktop, or all. An empty array matches nobody. |
appModes | array of strings | yes, in practice | The modes served (App modes): release, debug, or all. An empty array matches nobody. |
min / max | version string | yes | The range of app versions, both ends included (Min version, Max version; see above). |
activeDebug | boolean | no | Passed to the app as it is; the app interprets it. Absent = false. |
languagesSupported | array of strings | no | The languages this block delivers. It filters the translations: if it is missing or empty, the app receives no translation, even with a complete dictionary. From the Form you choose among the dictionary's languages in the Languages served field, and the Translations grid keeps it aligned (see below, “The languages served from the Form”). |
serverSettings | array of objects | no | Key/value pairs for the app (Server settings; see below). |
rules | array of arrays of strings | no | A filter on the customParams, “all of these sets, at least one value per set” (Rules; page 4). |
segments | array of strings | no | Names of segments the app has to belong to, all of them. |
rollout | object | no | Percentage rollout (page 4). |
refreshInterval | integer (seconds) | no | How often the apps served by this block check the configuration while they are in the foreground. Absent or 0: no periodic check. Otherwise from 30 to 86400 (one day). See below. |
Which app sends which type. Squiddy's SDK fills in the app type itself, from the platform it runs on: android from an Android app; ios from an iPhone or iPad app, and from an app for Apple Vision Pro, which runs as an iPad app; tvos from an Apple TV app; desktop from a desktop application, on the JVM or native on macOS, Linux and Windows; web from a web page, written in JavaScript or in Kotlin (Kotlin/JS or Kotlin/Wasm), and from a Node.js server. A configuration that serves an Apple TV app needs a block with tvos, or all: a block for ios does not serve it.
The path rule. When serverMode is exactly path, Squiddy composes the returned address as baseUrl + apiVersion + "/". With baseUrl: "https://api.example.com/" and apiVersion: "3.18" the app receives https://api.example.com/3.18/. With any other mode baseUrl is returned untouched. Hence the convention of the trailing slash in baseUrl: without it, the composed URL comes out as https://api.example.com3.18/.
refreshInterval: the periodic check
An app with Squiddy's SDK checks the configuration at start, when it comes back to the foreground and when it receives the push update. refreshInterval adds a check at an interval while the app stays in the foreground, and the block served decides it: whoever manages the configuration changes it, or turns it off, without publishing a new version of the app.
| Value | Effect |
|---|---|
absent, or 0 | No periodic check. It is the default. |
from 30 to 86400 | One check every so many seconds, only in the foreground: 300 is five minutes, 86400 one day. |
| any other | Publishing is blocked, with a message that gives the limits (page 5). |
The value is a whole number of seconds: 30.5 or "60" are refused as the wrong type.
Since it lives in the block, it holds for the audience of that block, chosen with the usual tools: app types, modes, versions, rules. The typical case: the mobile apps receive the push update and do not need to check at an interval, the web page receives no push updates and checks every five minutes.
"api": [
{
"serverMode": "path", "baseUrl": "https://api.example.com/", "apiVersion": "3.18",
"appTypes": ["web"], "appModes": ["all"], "min": "0000.00.00", "max": "9999.99.99",
"refreshInterval": 300
},
{
"serverMode": "path", "baseUrl": "https://api.example.com/", "apiVersion": "3.18",
"appTypes": ["ios", "android"], "appModes": ["all"], "min": "0000.00.00", "max": "9999.99.99"
}
]
Off by default. Without the field no app checks at an interval, whether it receives push updates or not. An app without push updates and without refreshInterval sees a new configuration only at the next opening or at the next return to the foreground: if it has to notice while it is open, its block must have the field.
The count of the calls. Every installation in the foreground makes one call every refreshInterval seconds, and the plan's limit of calls per minute holds per API key: 10,000 open installations with 30 make 20,000 calls a minute. Beyond the limit the data plane answers 429 and the apps stay on the configuration they have until the next attempt, so the value has to be chosen doing the count against your own plan.
What the app receives. The value arrives as refreshIntervalSeconds inside serverApi, and only if the block declares it: a block without the field answers exactly as before the field existed, fingerprint (configFingerprint) included, so no installation downloads again a configuration that has not changed. The apps with the SDK from 0.3.0 follow it; those with earlier versions do not read the field and carry on with the interval chosen by whoever developed them.
From the Form it is the Periodic check (seconds) field of each block: empty removes the field from the block. The Tester shows the frequency of the resolved block.
serverSettings
Free settings that the app reads or sends back to your server. The four keys are all required in every row: an incomplete row blocks publishing and, if it got through anyway, would make the whole API block be discarded as “not configured correctly”.
| Field | Meaning | Conventional values |
|---|---|---|
key | The setting's name | free (environment, analyticsEnabled, …) |
value | The value, always as a string | free |
type | How the app has to interpret value | string, int, double, bool |
action | What the app has to do with it | read, send, read/send |
Squiddy does not impose the values of type and action: they are an agreement between whoever writes the configuration and whoever develops the app. They have to be agreed and then respected.
The appUpdate and inFoPoint blocks
They have the same shape; the switch and the meaning change. In the Form they are the Force update and Maintenance sections, with the Add force-update block and Add maintenance block buttons.
| Field | Type | Required | Meaning |
|---|---|---|---|
required (appUpdate only) | boolean | no | In the Form, the Required switch. true = the app has to enforce the update; false = it offers it. |
halt (inFoPoint only) | boolean | no | In the Form, the Halt switch. true = the app blocks its use; false = it only shows the message. |
min / max | version string | yes | As for api. |
appTypes / appModes | array of strings | yes, in practice | As for api, including the empty one that matches nobody. |
msg | array of messages per language | yes | Title and text per language (in the Form, the Messages table; see below). |
They have no rules, segments or rollout. Force update and maintenance are aimed only at version, platform and mode: you cannot send a maintenance message to 10% of the users or to a segment.
msg
| Field | Meaning |
|---|---|
language | The language code, lowercase (it, en, …), or default (Language) |
title | The title the app shows (Title) |
message | The text the app shows (Message) |
Squiddy looks for the row of the app's language and, if there is none, uses the default row. The rows arrive exactly as they are saved, title and text always taken from the same row:
- a row in the app's language with an empty title and text arrives empty. The app still triggers the update or the maintenance (
requiredandhaltdecide that, not the text), only without text in that language. It is the way to leave a language without a message, and it also happens when a row is added in the Form and left empty; - only a language without a row falls back on
default, and thedefaultrow is used as it is, even empty.
Empty and absent are two different things, as in the translations (below). The default row is in fact required in every block that can match: if a block matches and has neither a row in the app's language nor a default row, the app's request fails with the 5001 error, it does not return the configuration without the message. A badly written maintenance block does not show one notice fewer: it breaks the app's start.
segments
A list name → rule sets, with exactly the same shape as rules: a filter on the customParams. It is used to define an audience once and call it from several blocks, instead of copying the same rules in three places and updating two of them.
"segments": {
"beta-testers": [["beta-user", "internal"]]
}
The rules of segments, checked at publishing:
- a segment must define at least one set of rules:
[]would match everybody, while in the block that calls it it reads as a filter, so it is refused; - an empty name is refused;
- names are compared literally:
beta-testersandBeta-Testersare two different segments; - they do not nest: a segment contains values of
customParams, not other segments, so there are no cycles; - a reference to a segment that is not defined blocks publishing: otherwise the block would never match anybody, without anything saying so;
- defining a segment that no block uses yet is legitimate.
languages
The translations delivered with the configuration, so that a text can be corrected without a new version of the app. In the Form it is the Translations section.
| Field | Type | Meaning |
|---|---|---|
defaultLang | string | The default language (Default language), the one the app falls back on. It must be one of the languages of langList[0], otherwise publishing is blocked. |
langList | array of dictionaries | The translations. Only the first element is used: langList[0] is an object language → list of {key: value} pairs. |
The nested shape ([{ "it": [{"k": "v"}, …] }]) is awkward to write by hand, and in the dashboard it is not needed: the Form's Translations section shows it as a grid — one column per language, one row per key — and writes it back in the correct shape. Two consequences of going through the grid:
- the grid is rectangular: every key is written in every language, and a cell left empty is written as an empty translation
"", not as an absent key; - the elements of
langListbeyond the first, if a pasted document has any, are not used and are lost if you save from the Form.
Empty and absent are two different things. Squiddy sends the translations exactly as they are saved:
- an empty translation (
{"key": ""}) arrives at the app empty, and the app shows an empty text. It is the way to leave a key without text in a language; - a key absent from a language does not arrive in that language, and the SDK shows the text of the default language.
With the grid every key is there in every language: an absent key can only be in JSON written by hand or in a dictionary saved when the grid removed the keys of empty cells. The grid shows it as an empty cell, and at the first save from the Form writes it as an empty translation. An empty text stays empty in the apps with the SDK from 0.4.0. Those with 0.3.0 or earlier still treat it as missing, and show the text of the default language.
Consistency checked at publishing: langList present without defaultLang is an error, and defaultLang filled in with an empty langList is an error. No translation at all, on the other hand, is a valid state.
And the rule that surprises everyone at least once: the translations are filtered by languagesSupported of the API block chosen for the app. If that block does not declare languagesSupported, or declares languages the dictionary does not have, the app receives no translations. The dictionary alone is not enough. The comparison is literal: "IT" in languagesSupported does not serve the dictionary's "it" language.
The languages served from the Form
Whoever works from the Form does not have to remember this rule: the grid and the API blocks stay aligned on the same document.
- Adding a language in the grid adds it to
languagesSupportedof every API block, even of a block that had narrowed its languages. A block that already lists it stays as it is. - Removing a language from the grid removes it from every block. If a block is left without languages, the field disappears (absent and
[]are the same thing for Squiddy). - Narrowing a block is done from its Languages served field, a multiple choice among the dictionary's languages. A language the block lists but the dictionary does not have stays visible among the choices, and can be removed; Squiddy ignores it.
- A new block, added from the Form, is born with every language of the dictionary.
- Without API blocks the grid changes only the dictionary: it does not create the
apifield.
One exception remains possible, and the editor points it out: if a language of the dictionary is served by no block (because it was removed from all of them with Languages served, or because the JSON was written by hand), the yellow warning Languages no API block serves appears under the editor, with the list. It does not block publishing: a translation prepared before switching it on is legitimate (page 5).
The Add language field refuses an empty code, one already there and one with spaces or control characters: the code is compared letter by letter with languagesSupported and with the app's language, so pt BR would never serve anybody. Add key refuses an empty key, one already there and one with a line break or a tab; spaces inside a key are allowed. The import from a file, below, applies the same rules.
Importing translations from a file
The Import from file button, at the top of the Translations section, loads a spreadsheet into the dictionary. It accepts XLSX (Excel, Numbers, Google Sheets), ODS (LibreOffice) and the CSV and TSV texts, recognized by the file's extension. The file is read in the browser and is not sent to Squiddy: what reaches Squiddy, as always, is the configuration when you save it.
The button opens the import window, which starts with How to fill in the file: the instructions below in short, and beside them the Download template button (see “The template to fill in”). Choose file opens the file picker; Cancel closes without touching anything.
The sheet has this shape:
| key | it | en | fr |
|---|---|---|---|
| greeting | Ciao | Hello | Bonjour |
| farewell | Arrivederci | Goodbye |
- The first row is the header. The first cell names the key column (the name is free:
key,chiave); the others are the language codes, written exactly as in the configuration:it, notITorItalian. - The first column holds the keys, one per row; every other cell is the translation of the key into the language of its column.
- Above the header, empty rows and rows with a single cell filled in are ignored, like the table title Numbers writes when exporting to XLSX. The header is therefore the first row with at least two cells filled in.
- Of a file with several sheets, the first sheet with a valid header is read: first cell filled in and at least one language code. A sheet of instructions can come first, as long as it has at most one cell filled in per row; the summary says which sheet was read.
- Empty rows are skipped, and so are empty columns. A column that has translations but no code in the header makes the file be refused.
- Keys and codes are read without the spaces at the start and at the end. Values are imported as they are, spaces included; a cell with only spaces counts as empty.
- A cell with a formula counts for the calculated value the application saved in the file: the formula is not recalculated. A formula without a saved value counts as an empty cell.
- In XLSX and ODS a number is read in the form
3.5, whatever the application's language, and a logical value asTRUEorFALSE. In a CSV the number is the text the application wrote (Numbers in Italian writes3,5). A numeric translation is safer written as text. - CSV. The separator is the comma or the semicolon, recognized from the header row: Excel and Numbers in Italian save with the semicolon. Quotes follow the common rule of CSV files: a cell in quotes can contain the separator and line breaks, and
""is one quote. The encoding is UTF-8, with or without BOM; a file that is not valid UTF-8 is read as Windows-1252, the encoding Excel for Windows saves a CSV in, and the summary points it out: check the accented letters. - TSV. Like the CSV, with the tab as separator.
- The apostrophe in front of a formula. In a CSV or a TSV a cell made of one or more apostrophes followed by
=,+,-,@, by a tab or by a line break loses one apostrophe:'=1+1is read=1+1,''=xis read'=x. It is the protection the export puts in front of those cells (see “Exporting translations to a file”); an apostrophe in front of any other text ('hello) stays. In XLSX and ODS nothing is removed.
Updating or replacing. By default the import updates:
- the cells filled in in the file overwrite those of the dictionary;
- the empty cells of the file delete nothing;
- keys and languages the file does not contain stay.
The Replace the whole dictionary switch, off by default, makes the dictionary exactly the content of the file: keys and languages the file does not contain are removed, and an empty cell of the file becomes an empty translation, as in the grid. When the replacement removes something, the Apply button is red.
The languages and the API blocks follow the rule of the grid: a new language brought by the file enters languagesSupported of every API block, and a language removed by the replacement leaves all of them. The import never changes the default language, like the grid: if the dictionary was empty it is still to be chosen, and if the replacement removes the default language another one has to be chosen. The summary says so, and until you do it publishing stays blocked.
The summary. Once the file is read, the window shows what would change, before touching anything: the keys added (and removed, if you replace), the values changed, the languages added and removed, the rows discarded with the reason (empty key, key with a line break). It also warns about a language that differs from one of the dictionary only in case (IT next to it would be a second language). Apply brings the result into the editor as an unsaved change: you save the draft, or discard it, like any other change.
When the file is refused, with a message and without changing anything:
- empty file, or without a valid header in any sheet;
- a key or a language that appears twice, with the rows or the columns;
- a language code that is not valid, or a column with translations but without a code;
- a format that is not recognized: an extension other than the four, a content that does not match the extension, a damaged file. An Excel 97-2003
.xlsor a password-protected file have to be saved as XLSX without a password; - a file over 5 MB, that once decompressed exceeds 32 MB, or with more than 10,000 rows or 100 columns. These are generous limits: a whole configuration can only be saved up to 1 MB, and no dictionary that fits in it comes close to these numbers.
The template to fill in
In the import window, next to How to fill in the file, the Download template button downloads an example file in the format you choose from the menu (XLSX, ODS, CSV or TSV), in the language of the dashboard. The file is created in the browser, like the export.
The example is the same for everyone and does not depend on the open configuration (to start from the dictionary you have, use Export): in the first row the key column, key (chiave in Italian), and three languages; below, three keys.
| key | it | en | fr |
|---|---|---|---|
| welcome_title | Benvenuto! | Welcome! | Bienvenue ! |
| login_button | Accedi | Sign in | Se connecter |
| goodbye_message | Arrivederci! | Goodbye! |
The French cell of goodbye_message is empty on purpose: importing the template as an update, the French of that key stays as it is.
- The name is
squiddy-translations-template.<format>(squiddy-modello-traduzioni.<format>in Italian). - XLSX and ODS have two sheets. The first, Instructions, carries the same sentences the window lists under How to fill in the file, one per row and all in column A; the second, Translations, is the example. The import skips the instructions sheet, because it has no rows with two cells filled in (see above), and reads the example: the sheet can stay in the file. The instructions column is wide and wraps, so the sentences can be read whole. Filled in in Numbers and saved as XLSX, the template can be imported again as it is; saved as CSV, Numbers creates a folder with one file per sheet, and you import the translations one.
- CSV and TSV have only the example, because a text has no sheets. The CSV uses the separator of the dashboard's language, like the export: the semicolon in Italian, the comma in English.
- The template can be imported again without errors, in every format: three keys and the languages
it,enandfr.
The instructions, in the window and in the sheet, give the rules of this page in short:
- the first row is the header, with the name of the key column and the language codes; below, one key per row in the first column;
- language codes are written exactly as in the configuration, case included, and without spaces;
- an empty cell changes nothing when the file updates, and becomes an empty translation with Replace the whole dictionary (the app shows an empty text); empty rows and columns are skipped;
- by default the file updates; with Replace the whole dictionary the dictionary becomes the file;
- a language added by the file is served by every API block, and one removed by the replacement leaves all of them;
- the CSV is separated by commas or semicolons, the TSV by tabs, and they are read as UTF-8 (otherwise as Windows-1252, and the summary says so);
- a formula counts for the value calculated and saved in the file;
- of a file with several sheets, the first one with a header is read;
- the file can be up to 5 MB, 10,000 rows and 100 columns.
Exporting translations to a file
The Export button, next to Import from file, downloads the dictionary as a spreadsheet, in the format you choose from the menu: XLSX (Excel, Numbers, Google Sheets), ODS (LibreOffice), CSV or TSV. The file is created in the browser: nothing goes through Squiddy.
- What it contains. The editor's dictionary as it is at that moment, including the unsaved changes made from the JSON tab or from the Form: the two tabs are the same document. The default language and the API blocks are not in the file.
- The shape is the import's: in the first row the key column (
Key, orChiavewith the dashboard in Italian) and the language codes, then one row per key, with languages and keys in the order of the grid. An empty translation is an empty cell. - The file's name is the
appIdfollowed by-translations(-traduzioniin Italian):com.example.app-translations.xlsx. The characters a file name cannot have (/ \ : * ? " < > |, the spaces) become_. - The CSV is in UTF-8 with BOM, so that Excel opens it with the right accented letters. The separator follows the dashboard's language: the comma in English; the semicolon in Italian, because Excel and Numbers in Italian use the comma for decimals and the semicolon to separate the columns (with the comma they would put everything in one column). The import recognizes both. The TSV has the BOM too.
- Formulas. A spreadsheet that opens a CSV or a TSV reads as a formula a cell that starts with
=,+,-or@(and some skip a tab or a line break first): a translation=1+1would be calculated, and one built on purpose could do worse. In the CSV and the TSV these cells therefore have an apostrophe in front ('=1+1), as recommended for CSV files; a value that already starts with apostrophes followed by one of those characters receives one more, so that the way back stays unambiguous. Importing the file again removes the apostrophe and the original value comes back. In XLSX and ODS it is not needed: every cell is written as text, and a text is never run. - The way back. Importing the exported file again, even with Replace the whole dictionary, changes nothing. The only exceptions are the import's: a translation made only of spaces comes back empty, a Windows line break (
\r\n) comes back as\n, and a key or a language code that the import would refuse (with spaces at the edges, with a line break) has to be corrected first. In ODS the control characters that XML cannot contain are lost.
With a dictionary without keys there is nothing to export: the button is disabled and under the section's title it says why. Whoever has read-only access sees the Form disabled, and with it Export too: the dictionary stays readable from the JSON tab.
Clearing the dictionary
The red Clear dictionary button, next to Export, removes in one go the whole dictionary: every language, every key with its values, and the default language. It is there to start again from scratch, for example before importing a file, without removing a column and a row at a time by hand.
- It asks for confirmation. The window lists the languages that are removed, how many keys and the default language. Cancel changes nothing.
- The API blocks. The removed languages also leave the Languages served of every block, as when a column is removed from the grid; a block left without languages loses the field. The languages a block served without their being in the dictionary stay.
- What is left. In the JSON the block becomes
"languages": {"defaultLang": "", "langList": []}, the shape that validation accepts and that Squiddy reads as “no translations”. The per-language messages ofappUpdateandinFoPointare not touched, nor the other fields of thelanguagesblock. - It still has to be saved. Like an import, clearing changes only the editor: the result is an unsaved change until you save the draft. If you need a copy of the dictionary, export it first.
With the dictionary already empty the button is disabled, and under the section's title it says why. Whoever has read-only access sees it disabled with the rest of the Form.
What you change from the Form and what only from the JSON
The editor has two tabs on the same document: JSON (the text editor, with the colors and the markers) and Form (the fields, section by section). They are two views of the same thing, and you switch from one to the other without saving, but the Form does not cover every field.
| Section | From the Form | Only from the JSON |
|---|---|---|
api blocks | apiVersion, serverMode, baseUrl, appTypes, appModes, min, max, refreshInterval, languagesSupported (Languages served), serverSettings, rules | activeDebug, segments, rollout |
appUpdate / inFoPoint | required / halt, min, max, appTypes, appModes, msg | — |
languages | defaultLang, languages, keys, values (grid); the whole dictionary from an XLSX, ODS, CSV or TSV file (Import from file, with the template to fill in from Download template) and to a file of the same formats (Export); clearing it in one go (Clear dictionary) | elements of langList beyond the first |
segments (dictionary) | — | everything |
configVersion | — (the line above the tabs shows it, and it updates itself when you publish) | everything |
The fields the Form does not show are not lost: every change from the Form rewrites only the fields it touches and leaves the others intact. A block with rollout and segments keeps its rollout and its segments even if you change its min from the Form.
The “i” icon of the sections. The Server APIs, Force update, Maintenance and Translations sections of the Form have an “i” icon beside their title. A click, or Enter when you reach it with Tab, opens a bubble that sums up in a few lines what the section does for the apps and the caveat to keep in mind, with the link Read more in the guide to the part of this page that describes it. It works for whoever has read-only access too, when the rest of the Form is disabled.
The Form opens only if the JSON is well written: on a broken document it says “Fix the JSON in the JSON tab before using the form.”, because the fields cannot edit a text that is not a JSON object. To work on the JSON for a long time there is the Full screen button at the end of the row of tabs (you leave it with Esc); Save draft and Publish stay within reach there too.