feat: chat layer tracer: bootstrap, channel list, messages, composer
- createChatClient: bearer auth, one refresh-and-retry on 401, 422 field errors
- useChat over useState: host bootstrap, open a channel, send
- ChatPage, ChatChannelList, ChatMessageList, ChatComposer
- runtime config chat.apiBase, public.chat.{apiBase,channelsApiBase,botsApiBase,hostApiBase}
This commit is contained in:
14
i18n/locales/en.json
Normal file
14
i18n/locales/en.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"chat": {
|
||||
"name": "Chat",
|
||||
"channels": "Channels",
|
||||
"messages": "Messages",
|
||||
"message": "Message",
|
||||
"send": "Send",
|
||||
"pickChannel": "Pick a channel to start.",
|
||||
"error": {
|
||||
"bootstrap": "The chat could not load. Check your connection and try again.",
|
||||
"send": "The message was not sent. Try again."
|
||||
}
|
||||
}
|
||||
}
|
||||
14
i18n/locales/pl.json
Normal file
14
i18n/locales/pl.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"chat": {
|
||||
"name": "Czat",
|
||||
"channels": "Kanały",
|
||||
"messages": "Wiadomości",
|
||||
"message": "Wiadomość",
|
||||
"send": "Wyślij",
|
||||
"pickChannel": "Wybierz kanał, aby zacząć.",
|
||||
"error": {
|
||||
"bootstrap": "Nie udało się wczytać czatu. Sprawdź połączenie i spróbuj ponownie.",
|
||||
"send": "Nie wysłano wiadomości. Spróbuj ponownie."
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user