Skip to content

Commit

Permalink
Ignore translation keys for specific files
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelgomesxyz committed May 25, 2021
1 parent f394175 commit bbafc5d
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 33 deletions.
9 changes: 4 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ module.exports = {
],
},
settings: {
'@rafaelgomesxyz/i18n-json/ignore-keys': [
'*.description',
'*.placeholders',
'serviceScrobble',
],
'@rafaelgomesxyz/i18n-json/ignore-keys': {
'**': ['*.description', '*.placeholders'],
'**/pt_BR/**': ['serviceScrobble'],
},
},
},
{
Expand Down
9 changes: 4 additions & 5 deletions .eslintrc.typed.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ module.exports = {
],
},
settings: {
'@rafaelgomesxyz/i18n-json/ignore-keys': [
'*.description',
'*.placeholders',
'serviceScrobble',
],
'@rafaelgomesxyz/i18n-json/ignore-keys': {
'**': ['*.description', '*.placeholders'],
'**/pt_BR/**': ['serviceScrobble'],
},
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@babel/preset-typescript": "^7.10.4",
"@babel/runtime": "^7.11.2",
"@octokit/rest": "^18.0.4",
"@rafaelgomesxyz/eslint-plugin-i18n-json": "^3.1.2",
"@rafaelgomesxyz/eslint-plugin-i18n-json": "^3.2.0",
"@svgr/webpack": "^5.4.0",
"@types/fs-extra": "^9.0.1",
"@types/gulp": "^4.0.6",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"addMissingWatchedDateFailed": {
"message": "Failed to add missing watched date."
},
"addWithReleaseDateName": {
"message": "Add with release date."
},
"addWithReleaseDateMissingName": {
"message": "Add with release date only for items that are missing the watched date."
},
"addWithReleaseDateName": {
"message": "Add with release date."
},
"allowRollbarDescription": {
"message": "With this option enabled, whenever a bug occurs, information about it will be collected and sent to us, so that we can fix it faster and improve the extension. This information includes: when the bug happened, the traceback of the bug, the name and version of your browser, and the name of your OS. This data is not shared with any other service."
},
Expand All @@ -32,15 +32,15 @@
"autoSync": {
"message": "Automatic Sync"
},
"autoSyncing": {
"message": "Automatically syncing..."
},
"autoSyncNotActivated": {
"message": "Automatic sync not activated. You need to sync manually in the history page first, so that the last sync date can be saved."
},
"autoSyncPageMessage": {
"message": "These are the items that were automatically synced or failed to automatically sync since the last review. If any corrections are needed, apply them, select the items that need to be corrected, and click the Sync button. When you do that, the cache will be deleted and these items will no longer appear on this page. If no corrections are needed, simply click the Clear Sync Cache button and the same thing will happen."
},
"autoSyncing": {
"message": "Automatically syncing..."
},
"cancel": {
"message": "Cancel"
},
Expand Down
12 changes: 6 additions & 6 deletions src/_locales/nb/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"addMissingWatchedDateFailed": {
"message": "Kunne ikke legge til manglende «sett dato»."
},
"addWithReleaseDateName": {
"message": "Legg til med utgivelsesdato."
},
"addWithReleaseDateMissingName": {
"message": "Legg til utgivelsesdato kun for elementer som mangler «sett dato»."
},
"addWithReleaseDateName": {
"message": "Legg til med utgivelsesdato."
},
"allowRollbarDescription": {
"message": "Dersom det oppstår en feil, kan utviklerne få informasjon om det, slik at det er enklere å feilsøke, fikse og forbedre utvidelsen. Informasjonen som sendes inkluderer: Når feilen inntraff, omstendinghetene rundt feilen, navn og versjonsnummeret på nettleseren, og navnet på operativsystemet. Dataene blir ikke delt videre med andre tjenester."
},
Expand All @@ -32,15 +32,15 @@
"autoSync": {
"message": "Automatisk synkronisering"
},
"autoSyncing": {
"message": "Synkroniserer automatisk..."
},
"autoSyncNotActivated": {
"message": "Automatisk synkronisering er ikke aktivert. Du er nødt til å synkronisere manuelt på historikksiden først, på denne måten kan «siste synkroniseringsdato» lagres."
},
"autoSyncPageMessage": {
"message": "Disse elementene ble automatisk synkronisert eller kunne ikke synkroniseres siden forrige gang. Dersom korreksjoner trengs, legg dem til, og velg elementene som krever endringer, og trykk på Synkroniser-knappen. Når du gjør det, slettes cachen og disse elementene vil ikke stå på denne siden lengre. Dersom ingen korreksjoner er nødvendige, kan du trykke på Fjern synkroniseringscache-knappen og det samme vil skje."
},
"autoSyncing": {
"message": "Synkroniserer automatisk..."
},
"cancel": {
"message": "Avbryt"
},
Expand Down
12 changes: 6 additions & 6 deletions src/_locales/pt_BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"addMissingWatchedDateFailed": {
"message": "Ocorreu um erro ao adicionar a data em que o item foi assistido."
},
"addWithReleaseDateName": {
"message": "Adicionar com data de lançamento."
},
"addWithReleaseDateMissingName": {
"message": "Adicionar com data de lançamento apenas para itens que estão faltando com a data em que foram assistidos."
},
"addWithReleaseDateName": {
"message": "Adicionar com data de lançamento."
},
"allowRollbarDescription": {
"message": "Com essa opção ativada, sempre que um erro acontecer, informações sobre ele serão coletadas e enviadas para nós, para que possamos consertá-lo mais rápido e melhorar a extensão. Essas informações incluem: quando o erro aconteceu, o traço do erro, o nome e a versão do neu navegador, e o nome do seu sistema operacional. Esses dados não são compartilhados com nenhum outro serviço."
},
Expand All @@ -32,15 +32,15 @@
"autoSync": {
"message": "Sincronização Automática"
},
"autoSyncing": {
"message": "Sincronizando automaticamente..."
},
"autoSyncNotActivated": {
"message": "Sincronização automática não ativada. Você precisa sincronizar manualmente na página de histórico primeiro, para que a data da última sincronização possa ser salva."
},
"autoSyncPageMessage": {
"message": "Esses são os itens que foram sincronizados automaticamente ou que falharam ao sincronizar automaticamente desde a última revisão. Se correções forem necessárias, aplique-as, selecione os itens que precisam ser corrigidos, e clique no botão Sincronizar. Quando você fizer isso, o cache será deletado e esses itens não aparecerão mais nessa página. Se nenhuma correção for necessária, simplesmente clique no botão Limpar Cache de Sincronização e o mesmo acontecerá."
},
"autoSyncing": {
"message": "Sincronizando automaticamente..."
},
"cancel": {
"message": "Cancelar"
},
Expand Down

0 comments on commit bbafc5d

Please sign in to comment.