Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

#5662: pt-BR for the demote strings; keep store.tsx within its pin

milind-soni24fb2f645392
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 626fb54d64..c7a2753bf4 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -6967,6 +6967,9 @@
"defaultBot.hide": "Ocultar da barra lateral",
"defaultBot.hideHint": "Ele continua funcionando. Mostre novamente em Configurações → Geral.",
"defaultBot.hidden": "{name} saiu da barra lateral. Mostre novamente em Configurações → Geral.",
+ "defaultBot.demote": "Tornar um bot comum",
+ "defaultBot.demoteHint": "Remove a proteção embutida: depois ele pode ser arquivado ou excluído como qualquer outro bot.",
+ "defaultBot.demoted": "{name} agora é um bot comum. Arquive ou exclua pelo menu dele.",
"defaultBot.show.title": "Mostrar {name} na barra lateral",
"defaultBot.show.subtitle": "Seu ajudante para tudo no app. Mesmo oculto, ele continua funcionando e aparece nas buscas.",
"teamMove.blockedDefault": "{name} fica aqui: cada pessoa da equipe tem o seu",
diff --git a/src/state/store.tsx b/src/state/store.tsx
index c3a4f4f27e..4e5d0f0349 100644
--- a/src/state/store.tsx
+++ b/src/state/store.tsx
@@ -1202,10 +1202,7 @@ export function reducer(state: AppState, action: Action): AppState {
hasMore: switchedThread ? undefined : b.hasMore,
}));
const demoted = Boolean(before.defaultBot) && !action.bot.defaultBot;
- const confirmed = demoted
- ? { ...patched, notice: { kind: "note" as const, botName: null, text: t("defaultBot.demoted", { name: action.bot.name }) } }
- : patched;
- return reconcileModelVariantSessions(confirmed);
+ return reconcileModelVariantSessions(demoted ? { ...patched, notice: { kind: "note" as const, botName: null, text: t("defaultBot.demoted", { name: action.bot.name }) } } : patched);
}
case "messageAdded": {
const bot = state.bots.find((b) => b.threadId === action.threadId);