Skip to content

Commit

Permalink
Merge pull request #205 from matribeiro15/main
Browse files Browse the repository at this point in the history
Add Brazilian Portuguese
  • Loading branch information
rajnandan1 authored Jan 21, 2025
2 parents ead68c9 + 57dc1e7 commit 3d38483
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/i18n/client.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @ts-nocheck

import { format, formatDistance, formatDistanceToNow, formatDuration } from "date-fns";
import { ru, enUS, hi, de, zhCN, vi, ja, nl, da, fr, ko } from "date-fns/locale";
import { ru, enUS, hi, de, zhCN, vi, ja, nl, da, fr, ko, ptBR } from "date-fns/locale";

const locales = { ru, en: enUS, hi, de, "zh-CN": zhCN, vi, ja, nl, dk: da, fr, ko };
const locales = { ru, en: enUS, hi, de, "zh-CN": zhCN, vi, ja, nl, dk: da, fr, ko, "pt-BR": ptBR };

const f = function (date, formatStr, locale) {
return format(date, formatStr, {
Expand Down
4 changes: 4 additions & 0 deletions src/lib/locales/locales.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@
{
"code": "ko",
"name": "한국어"
},
{
"code": "pt-BR",
"name": "Português Brasileiro"
}
]
55 changes: 55 additions & 0 deletions src/lib/locales/pt-BR.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"14 Days": "14 Dias",
"30 Days": "30 Dias",
"60 Days": "60 Dias",
"7 Days": "7 Dias",
"90 Days": "90 Dias",
"Availability per Component": "Disponibilidade por Componente",
"Back": "Voltar",
"Badge": "Emblema",
"Badge Copied": "Emblema Copiado",
"Code Copied": "Código Copiado",
"Copy Code": "Copiar Código",
"Copy Link": "Copiar Link",
"Dark": "Escuro",
"Days": "Dias",
"DEGRADED": "FALHA",
"DOWN": "INDISPONÍVEL",
"Embed": "Incorporar",
"Embed this monitor using &#x3C;script&#x3E; or &#x3C;iframe&#x3E; in your app.": "Incorporar este monitor ao seu aplicativo utilizando <script> ou <iframe>.",
"Get SVG badge for this monitor": "Obter emblema SVG deste monitor",
"Get a LIVE Status for this monitor": "Obter indicador de status AO VIVO",
"IDENTIFIED": "IDENTIFICADO",
"Incident Updates": "Atualizações do Incidente",
"INVESTIGATING": "INVESTIGANDO",
"Lasted for about %lastedFor": "Durou aproximadamente %lastedFor",
"Light": "Claro",
"Link Copied": "Link Copiado",
"LIVE Status": "Status AO VIVO",
"Mode": "Modo",
"MONITORING": "MONITORANDO",
"No Data": "Sem dados",
"No Incidents": "Sem Incidentes",
"No Incident On %date": "Nenhum incidente em %date",
"No Monitor Found": "Nenhum monitor encontrado",
"No Updates Yet": "Nenhuma atualização ainda",
"Ongoing Incidents": "Incidentes em Andamento",
"Pinging": "Animado",
"Recent Incidents": "Incidentes Recentes",
"RESOLVED": "RESOLVIDO",
"Share": "Compartilhar",
"Share this monitor using a link with others": "Compartilhar este monitor através do link",
"Standard": "Padrão",
"Started about %startedAt ago, lasted for about %lastedFor": "Iniciado há cerca de %startedAt e durou aproximadamente %lastedFor",
"Started about %startedAt ago, still ongoing": "Iniciado há cerca de %startedAt, ainda em andamento",
"Starts in %startedAt": "Inicia em %startedAt",
"Starts in %startedAt, will last for about %lastedFor": "Inícia em %startedAt, com duração de aproximadamente %lastedFor",
"Status": "Status",
"Status OK": "Status OK",
"Theme": "Tema",
"Today": "Hoje",
"UP": "OPERACIONAL",
"Updates": "Atualizações",
"Uptime": "Tempo de Atividade",
"%status for %duration": "%status por %duration"
}

0 comments on commit 3d38483

Please sign in to comment.