Skip to content

Commit

Permalink
fix: use '-:-' instead of null as i18n namespace separator
Browse files Browse the repository at this point in the history
  • Loading branch information
mediremi committed Jul 20, 2021
1 parent 023f493 commit 8f9389b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2021-07-02T09:59:39.076Z\n"
"PO-Revision-Date: 2021-07-02T09:59:39.076Z\n"
"POT-Creation-Date: 2021-07-20T14:47:03.677Z\n"
"PO-Revision-Date: 2021-07-20T14:47:03.677Z\n"

msgid "Version {{version}} installed"
msgstr "Version {{version}} installed"
Expand Down
6 changes: 3 additions & 3 deletions src/components/AppDetails/ManageInstalledVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ export const ManageInstalledVersion = ({
message: canUpdate
? i18n.t('Failed to update app: {{errorMessage}}', {
errorMessage: error.message,
nsSeparator: null,
nsSeparator: '-:-',
})
: i18n.t('Failed to install app: {{errorMessage}}', {
errorMessage: error.message,
nsSeparator: null,
nsSeparator: '-:-',
}),
})
}
Expand All @@ -64,7 +64,7 @@ export const ManageInstalledVersion = ({
errorAlert.show({
message: i18n.t('Failed to uninstall app: {{errorMessage}}', {
errorMessage: error.message,
nsSeparator: null,
nsSeparator: '-:-',
}),
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/AppDetails/Versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const Versions = ({ installedVersion, versions, onVersionInstall }) => {
({ error }) =>
i18n.t('Failed to install app: {{errorMessage}}', {
errorMessage: error.message,
nsSeparator: null,
nsSeparator: '-:-',
}),
{ critical: true }
)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ManualInstall/ManualInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const UploadButton = () => {
({ error }) =>
i18n.t('Failed to install app: {{errorMessage}}', {
errorMessage: error.message,
nsSeparator: null,
nsSeparator: '-:-',
}),
{ critical: true }
)
Expand Down

0 comments on commit 8f9389b

Please sign in to comment.