Compare commits

..

14 Commits

Author SHA1 Message Date
Quentin BEY 2a79655edb 🔖(patch) bump release to 0.0.3
Fixed

- 🚑️(web-search) fix missing argument in RAG backend #116
2025-10-21 23:54:59 +02:00
Quentin BEY ad4b5473aa 🚑️(web-search) fix missing argument in RAG backend
The wrong RAG backend (not the one used in production) was
updated in a previous commit...
2025-10-21 23:49:21 +02:00
qbey b8e6e32fed 🌐(i18n) update translated strings
Update translated files with new translations
2025-10-21 22:49:59 +02:00
Quentin BEY 0a5f71ef18 🔖(patch) bump release to 0.0.2
Added

- (front) add drag'n drop file
- (activation-codes) register users also on Brevo #98
- 📈(posthog) add `sub` field to tracking #95

Changed

- 🔧(front) change links feedback tchap + settings popup
- 🐛(front) code activation fix session end #93
- 💬(wording) error page wording #102
- ️(web-search) allow to override returned chunks #107
- 🐛(activation-codes) create contact in brevo before add to list #108
- ⚗️(summarization) add system prompt to handle tool #112
2025-10-21 22:45:32 +02:00
Quentin BEY 151914f55c ⚗️(summarization) add system prompt to handle tool
With these modifications, we expect the LLM to not sumarize the
summarization tool result.
2025-10-21 22:12:50 +02:00
elvoisin ab45eea736 🔧(front) update links feedback + popup settings (#111)
change tchap channel + change links in settings popup
2025-10-21 17:28:19 +02:00
elvoisin ef7c15507d (front) add drag'n drop file (#110)
add drag n drop in input chat on the entire screen
2025-10-21 16:04:07 +02:00
Quentin BEY ca0c3a0169 🐛(activation-codes) create contact in brevo before add to list
Brevo requires the contact to exist before being added to a list.
2025-10-21 14:18:25 +02:00
Quentin BEY 6b2327b0f1 ️(web-search) allow to override returned chunks
When using the document vector storage, we want to be able to
return more chunks.
2025-10-21 13:55:04 +02:00
Eléonore Voisin 9887d79bd5 💬(wording) error page wording
change error page wording 401 - 403
2025-10-21 13:21:11 +02:00
Arnaud Robin d1852d210c 📈(posthog) add sub field to tracking
This will allow to merge analytics from posthog and langfuse.
2025-10-21 13:12:59 +02:00
qbey 12a9488f30 🌐(i18n) update translated strings
Update translated files with new translations
2025-10-20 23:45:35 +02:00
Quentin BEY 15a84132b0 (activation-codes) register users also on Brevo
This provides a way to store the users on Brevo directly
for later product opening mail campaign.
2025-10-20 23:38:57 +02:00
elvoisin 8a52ae8608 🐛(front) code activation fix session end (#101)
add check auth in activation page
2025-10-20 18:45:56 +02:00
48 changed files with 2188 additions and 1002 deletions
+27 -1
View File
@@ -8,6 +8,30 @@ and this project adheres to
## [Unreleased]
## [0.0.3] - 2025-10-21
### Fixed
- 🚑️(web-search) fix missing argument in RAG backend #116
## [0.0.2] - 2025-10-21
### Added
- ✨(front) add drag'n drop file
- ✨(activation-codes) register users also on Brevo #98
- 📈(posthog) add `sub` field to tracking #95
### Changed
- 🔧(front) change links feedback tchap + settings popup
- 🐛(front) code activation fix session end #93
- 💬(wording) error page wording #102
- ⚡️(web-search) allow to override returned chunks #107
- 🐛(activation-codes) create contact in brevo before add to list #108
- ⚗️(summarization) add system prompt to handle tool #112
## [0.0.1] - 2025-10-19
### Changed
@@ -65,5 +89,7 @@ and this project adheres to
- 💄(chat) add code highlighting for LLM responses #67
[unreleased]: https://github.com/suitenumerique/conversations/compare/v0.0.1...main
[unreleased]: https://github.com/suitenumerique/conversations/compare/v0.0.3...main
[0.0.3]: https://github.com/suitenumerique/conversations/releases/v0.0.3
[0.0.2]: https://github.com/suitenumerique/conversations/releases/v0.0.2
[0.0.1]: https://github.com/suitenumerique/conversations/releases/v0.0.1
+61
View File
@@ -1,5 +1,6 @@
"""Admin classes for activation codes application."""
from django.conf import settings
from django.contrib import admin
from django.utils.html import format_html, format_html_join
from django.utils.translation import gettext_lazy as _
@@ -274,6 +275,8 @@ class UserRegistrationRequestAdmin(admin.ModelAdmin):
list_filter = ("created_at",)
actions = ["add_to_brevo_waiting_list", "remove_from_brevo_waiting_list"]
def user_display(self, obj):
"""Display user's full name."""
return obj.user.email or str(obj.user.pk)
@@ -286,3 +289,61 @@ class UserRegistrationRequestAdmin(admin.ModelAdmin):
has_user_activation.boolean = True
has_user_activation.short_description = _("Has used activation code")
@admin.action(description=_("Add selected users to Brevo waiting list"))
def add_to_brevo_waiting_list(self, request, queryset):
"""Add selected users to Brevo waiting list."""
# pylint: disable=import-outside-toplevel
from core.brevo import add_user_to_brevo_list # noqa: PLC0415
registration_to_send = queryset.filter(
user_activation__isnull=True,
)
_total_emails = 0
for i in range(0, registration_to_send.count(), 150):
batch = registration_to_send[i : i + 150]
emails = [reg.user.email for reg in batch if reg.user.email]
if emails:
add_user_to_brevo_list(emails, settings.BREVO_WAITING_LIST_ID)
_total_emails += len(emails)
if _total_emails:
self.message_user(
request,
_("Added %(count)d user(s) to Brevo waiting list.") % {"count": _total_emails},
)
else:
self.message_user(
request,
_("No valid email address found in selected registrations."),
level="warning",
)
@admin.action(description=_("Remove selected users from Brevo waiting list"))
def remove_from_brevo_waiting_list(self, request, queryset):
"""Remove selected users from Brevo waiting list."""
# pylint: disable=import-outside-toplevel
from core.brevo import remove_user_from_brevo_list # noqa: PLC0415
registration_to_send = queryset.filter(
user_activation__isnull=False,
)
_total_emails = 0
for i in range(0, registration_to_send.count(), 150):
batch = registration_to_send[i : i + 150]
emails = [reg.user.email for reg in batch if reg.user.email]
if emails:
remove_user_from_brevo_list(emails, settings.BREVO_WAITING_LIST_ID)
_total_emails += len(emails)
if _total_emails:
self.message_user(
request,
_("Removed %(count)d user(s) from Brevo waiting list.") % {"count": _total_emails},
)
else:
self.message_user(
request,
_("No valid email address found in selected registrations."),
level="warning",
)
+15 -1
View File
@@ -6,12 +6,14 @@ import logging
import secrets
import string
from django.conf import settings
from django.core.exceptions import ValidationError
from django.core.validators import RegexValidator
from django.db import IntegrityError, models, transaction
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from core.brevo import add_user_to_brevo_list, remove_user_from_brevo_list
from core.models import BaseModel, User
from activation_codes.exceptions import InvalidCodeError, UserAlreadyActivatedError
@@ -134,12 +136,24 @@ class ActivationCode(BaseModel):
_("You have already activated your account")
) from exc
UserRegistrationRequest.objects.filter(user=user).update(user_activation=activation)
existing_registration = bool(
UserRegistrationRequest.objects.filter(user=user).update(user_activation=activation)
)
if existing_registration:
transaction.on_commit(
lambda: remove_user_from_brevo_list(
[user.email], settings.BREVO_WAITING_LIST_ID
)
)
# Increment usage counter safely under the same lock.
locked_code.current_uses += 1
locked_code.save(update_fields=["current_uses", "updated_at"])
transaction.on_commit(
lambda: add_user_to_brevo_list([user.email], settings.BREVO_FOLLOWUP_LIST_ID)
)
if locked_code.max_uses > 0 and locked_code.current_uses >= locked_code.max_uses:
logger.warning("Activation code %s has reached its maximum uses", locked_code.code)
@@ -1,5 +1,6 @@
"""Tests for activation_codes models."""
import json
from datetime import timedelta
from django.core.exceptions import ValidationError
@@ -7,12 +8,18 @@ from django.db.models import ProtectedError
from django.utils import timezone
import pytest
import responses
from core.factories import UserFactory
from activation_codes.exceptions import InvalidCodeError, UserAlreadyActivatedError
from activation_codes.factories import ActivationCodeFactory, UserActivationFactory
from activation_codes.models import ActivationCode, UserActivation, generate_activation_code
from activation_codes.models import (
ActivationCode,
UserActivation,
UserRegistrationRequest,
generate_activation_code,
)
@pytest.mark.django_db
@@ -270,3 +277,52 @@ def test_user_activation_ordering():
activations = list(UserActivation.objects.all())
assert activations == [activation2, activation1]
@responses.activate
@pytest.mark.django_db(transaction=True)
def test_activation_code_use_success_notify_brevo(settings):
"""Test successfully using an activation code and notify Brevo."""
settings.BREVO_API_KEY = "test_brevo_api_key"
settings.BREVO_WAITING_LIST_ID = "test_waiting_list_id"
settings.BREVO_FOLLOWUP_LIST_ID = "test_followup_list_name"
brevo_remove_mock = responses.post(
"https://api.brevo.com/v3/contacts/lists/test_waiting_list_id/contacts/remove",
json={"message": "Contacts added successfully"},
status=201,
)
brevo_create_contact = responses.post(
"https://api.brevo.com/v3/contacts",
status=200,
)
brevo_add_mock = responses.post(
"https://api.brevo.com/v3/contacts/lists/test_followup_list_name/contacts/add",
json={"message": "Contacts added successfully"},
status=201,
)
user = UserFactory()
registration = UserRegistrationRequest.objects.create(user=user)
activation_code = ActivationCodeFactory()
activation = activation_code.use(user)
registration.refresh_from_db()
assert registration.user_activation == activation
assert len(brevo_remove_mock.calls) == 1
assert brevo_remove_mock.calls[0].request.headers["api-key"] == "test_brevo_api_key"
assert json.loads(brevo_remove_mock.calls[0].request.body) == {"emails": [user.email]}
assert len(brevo_create_contact.calls) == 1
assert brevo_create_contact.calls[0].request.headers["api-key"] == "test_brevo_api_key"
assert json.loads(brevo_create_contact.calls[0].request.body) == {
"email": user.email,
"updateEnabled": True,
}
assert len(brevo_add_mock.calls) == 1
assert brevo_add_mock.calls[0].request.headers["api-key"] == "test_brevo_api_key"
assert json.loads(brevo_add_mock.calls[0].request.body) == {"emails": [user.email]}
@@ -1,11 +1,13 @@
"""Tests for activation_codes viewsets."""
import json
from datetime import timedelta
from unittest.mock import patch
from django.utils import timezone
import pytest
import responses
from rest_framework import status
from core.factories import UserFactory
@@ -321,3 +323,89 @@ def test_validate_code_registered_user(api_client):
_registration.refresh_from_db()
assert _registration.user_activation.activation_code == activation_code
@responses.activate
@pytest.mark.django_db
def test_register_email_success_brevo(api_client, settings):
"""Test successfully registering an email and notify Brevo."""
settings.BREVO_API_KEY = "test_brevo_api_key"
settings.BREVO_WAITING_LIST_ID = "test_waiting_list_id"
brevo_create_contact = responses.post(
"https://api.brevo.com/v3/contacts",
status=200,
)
brevo_mock = responses.post(
"https://api.brevo.com/v3/contacts/lists/test_waiting_list_id/contacts/add",
json={"message": "Contacts added successfully"},
status=201,
)
user = UserFactory()
api_client.force_authenticate(user=user)
response = api_client.post(
"/api/v1.0/activation/register/",
{},
)
assert response.status_code == status.HTTP_201_CREATED
assert response.data["code"] == "registration-successful"
registration = UserRegistrationRequest.objects.get(user=user)
assert registration.user == user
assert len(brevo_create_contact.calls) == 1
assert brevo_create_contact.calls[0].request.headers["api-key"] == "test_brevo_api_key"
assert json.loads(brevo_create_contact.calls[0].request.body) == {
"email": user.email,
"updateEnabled": True,
}
assert len(brevo_mock.calls) == 1
assert brevo_mock.calls[0].request.headers["api-key"] == "test_brevo_api_key"
assert json.loads(brevo_mock.calls[0].request.body) == {"emails": [user.email]}
# Register again to test idempotency
response = api_client.post(
"/api/v1.0/activation/register/",
{},
)
assert response.status_code == status.HTTP_200_OK
assert response.data["code"] == "registration-successful"
assert len(brevo_mock.calls) == 1 # No new call made
@responses.activate
@pytest.mark.django_db
def test_register_email_success_brevo_fails(api_client, settings):
"""Test successfully registering an email, even if Brevo fails."""
settings.BREVO_API_KEY = "test_brevo_api_key"
settings.BREVO_WAITING_LIST_ID = "test_waiting_list_id"
_brevo_create_contact = responses.post(
"https://api.brevo.com/v3/contacts",
status=200,
)
brevo_mock = responses.post(
"https://api.brevo.com/v3/contacts/lists/test_waiting_list_id/contacts/add",
status=400,
)
user = UserFactory()
api_client.force_authenticate(user=user)
response = api_client.post(
"/api/v1.0/activation/register/",
{},
)
assert response.status_code == status.HTTP_201_CREATED
assert response.data["code"] == "registration-successful"
registration = UserRegistrationRequest.objects.get(user=user)
assert registration.user == user
assert len(brevo_mock.calls) == 1
+5
View File
@@ -10,6 +10,7 @@ from rest_framework import status, viewsets
from rest_framework.decorators import action
from rest_framework.response import Response
from core.brevo import add_user_to_brevo_list
from core.permissions import IsAuthenticated
from . import models, serializers
@@ -137,6 +138,10 @@ class ActivationViewSet(viewsets.GenericViewSet):
status=status.HTTP_200_OK,
)
add_user_to_brevo_list(
[serializer.validated_data["user"].email], settings.BREVO_WAITING_LIST_ID
)
logger.info(
"Registered email %s for activation notifications",
serializer.validated_data["user"].email,
@@ -150,12 +150,13 @@ class AlbertRagBackend(BaseRagBackend): # pylint: disable=too-many-instance-att
logger.debug(response.json())
response.raise_for_status()
def search(self, query) -> RAGWebResults:
def search(self, query, results_count: int = 4) -> RAGWebResults:
"""
Perform a search using the Albert API based on the provided query.
Args:
query (str): The search query.
results_count (int): The number of results to return.
Returns:
RAGWebResults: The search results.
@@ -167,6 +168,7 @@ class AlbertRagBackend(BaseRagBackend): # pylint: disable=too-many-instance-att
"collections": [int(self.collection_id)],
"prompt": query,
"score_threshold": 0.6,
"k": results_count, # Number of chunks to return from the search
},
timeout=settings.ALBERT_API_TIMEOUT,
)
@@ -75,7 +75,7 @@ class BaseRagBackend:
"""
raise NotImplementedError("Must be implemented in subclass.")
def search(self, query) -> RAGWebResults:
def search(self, query, results_count: int = 4) -> RAGWebResults:
"""
Search the collection for the given query.
"""
@@ -169,11 +169,12 @@ class AlbertRagDocumentSearch:
self._store_document(name, document_content)
return document_content
def search(self, query):
def search(self, query, results_count: int = 4) -> RAGWebResults:
"""
Perform a search using the Albert API based on the provided query.
:param query: The search query string.
:param results_count: The number of results to return.
:return: Search results from the Albert API.
"""
response = requests.post(
@@ -183,6 +184,7 @@ class AlbertRagDocumentSearch:
"collections": [self.collection_id],
"prompt": query,
"score_threshold": 0.6,
"k": results_count, # Number of chunks to return from the search
},
timeout=settings.ALBERT_API_TIMEOUT,
)
+6 -2
View File
@@ -37,8 +37,12 @@ def read_document_content(doc):
async def hand_off_to_summarization_agent(ctx: RunContext) -> ToolReturn:
"""
Summarize the documents for the user, only when asked for,
the documents are in my context.
Generate a complete, ready-to-use summary of the documents in context
(do not request the documents to the user).
Return this summary directly to the user WITHOUT any modification,
or additional summarization.
The summary is already optimized and MUST be presented as-is in the final response
or translated preserving the information.
"""
summarization_agent = SummarizationAgent()
+13
View File
@@ -480,6 +480,19 @@ class AIAgentService: # pylint: disable=too-many-instance-attributes
elif has_not_pdf_docs:
add_document_rag_search_tool(self.conversation_agent)
@self.conversation_agent.system_prompt
def summarization_system_prompt() -> str:
return (
"When you receive a result from the summarization tool, you MUST return it "
"directly to the user without any modification, paraphrasing, or additional "
"summarization."
"The tool already produces optimized summaries that should be presented "
"verbatim."
"You may translate the summary if required, but you MUST preserve all the "
"information from the original summary."
"You may add a follow-up question after the summary if needed."
)
@self.conversation_agent.tool
async def summarize(ctx) -> ToolReturn:
"""
@@ -375,6 +375,20 @@ def test_post_conversation_with_document_upload( # noqa: PLR0913 # pylint: disa
"part_kind": "system-prompt",
"timestamp": timezone_now,
},
{
"content": "When you receive a result from the summarization tool, "
"you MUST return it directly to the user without any "
"modification, paraphrasing, or additional "
"summarization.The tool already produces optimized "
"summaries that should be presented verbatim.You may "
"translate the summary if required, but you MUST "
"preserve all the information from the original "
"summary.You may add a follow-up question after the "
"summary if needed.",
"dynamic_ref": None,
"part_kind": "system-prompt",
"timestamp": timezone_now,
},
{
"content": ["What does the document say?"],
"part_kind": "user-prompt",
@@ -688,6 +702,20 @@ def test_post_conversation_with_document_upload_summarize( # pylint: disable=to
"part_kind": "system-prompt",
"timestamp": timezone_now,
},
{
"content": "When you receive a result from the summarization tool, "
"you MUST return it directly to the user without any "
"modification, paraphrasing, or additional "
"summarization.The tool already produces optimized "
"summaries that should be presented verbatim.You may "
"translate the summary if required, but you MUST "
"preserve all the information from the original "
"summary.You may add a follow-up question after the "
"summary if needed.",
"dynamic_ref": None,
"part_kind": "system-prompt",
"timestamp": timezone_now,
},
{
"content": ["Make a summary of this document."],
"part_kind": "user-prompt",
@@ -1,4 +1,5 @@
"""Unit tests for chat conversation actions with document URL."""
# pylint: disable=too-many-lines
from io import BytesIO
@@ -860,6 +861,19 @@ def test_post_conversation_with_local_not_pdf_document_url( # noqa: PLR0913 # p
),
timestamp=timezone.now(),
),
SystemPromptPart(
content=(
"When you receive a result from the summarization tool, you MUST "
"return it directly to the user without any modification, "
"paraphrasing, or additional summarization."
"The tool already produces optimized summaries that should "
"be presented verbatim."
"You may translate the summary if required, but you MUST preserve "
"all the information from the original summary."
"You may add a follow-up question after the summary if needed."
),
timestamp=timezone.now(),
),
UserPromptPart(
content=[
"What is in this document?",
@@ -962,6 +976,20 @@ def test_post_conversation_with_local_not_pdf_document_url( # noqa: PLR0913 # p
"part_kind": "system-prompt",
"timestamp": timestamp,
},
{
"content": "When you receive a result from the summarization "
"tool, you MUST return it directly to the user without "
"any modification, paraphrasing, or additional "
"summarization.The tool already produces optimized "
"summaries that should be presented verbatim.You may "
"translate the summary if required, but you MUST "
"preserve all the information from the original "
"summary.You may add a follow-up question after the "
"summary if needed.",
"dynamic_ref": None,
"part_kind": "system-prompt",
"timestamp": timestamp,
},
{
"content": [
"What is in this document?",
+4 -1
View File
@@ -210,7 +210,10 @@ def web_search_brave_with_document_backend(ctx: RunContext, query: str) -> ToolR
except Exception as e: # pylint: disable=broad-except
logger.exception("Error fetching/storing document: %s", e)
rag_results = document_store.search(query)
rag_results = document_store.search(
query,
results_count=settings.BRAVE_RAG_WEB_SEARCH_CHUNK_NUMBER,
)
ctx.usage += RunUsage(
input_tokens=rag_results.usage.prompt_tokens,
@@ -23,6 +23,13 @@ class BraveSettings:
environ_prefix=None,
)
# For web_search_brave_with_document_backend: number of chunks to retrieve RAG search
BRAVE_RAG_WEB_SEARCH_CHUNK_NUMBER = values.IntegerValue(
default=10,
environ_name="BRAVE_RAG_WEB_SEARCH_CHUNK_NUMBER",
environ_prefix=None,
)
# For optimal performance, BRAVE_MAX_WORKERS should be equal to BRAVE_MAX_RESULTS
# also considering the number of concurrent requests your server can handle.
BRAVE_MAX_WORKERS = values.IntegerValue(
+16
View File
@@ -602,6 +602,22 @@ class Base(BraveSettings, Configuration):
default=False, environ_name="ACTIVATION_REQUIRED", environ_prefix=None
)
BREVO_API_KEY = values.Value(
default=None,
environ_name="BREVO_API_KEY",
environ_prefix=None,
)
BREVO_FOLLOWUP_LIST_ID = values.Value(
default=None,
environ_name="BREVO_FOLLOWUP_LIST_ID",
environ_prefix=None,
)
BREVO_WAITING_LIST_ID = values.Value(
default=None,
environ_name="BREVO_WAITING_LIST_ID",
environ_prefix=None,
)
# AI service
_llm_configuration_file_path = values.Value(
os.path.join(BASE_DIR, "conversations/configuration/llm/default.json"),
+2 -1
View File
@@ -17,8 +17,9 @@ class UserSerializer(serializers.ModelSerializer):
"full_name",
"short_name",
"language",
"sub",
]
read_only_fields = ["id", "email", "full_name", "short_name"]
read_only_fields = ["id", "email", "full_name", "short_name", "sub"]
class UserLightSerializer(UserSerializer):
@@ -10,6 +10,7 @@ from lasuite.oidc_login.backends import (
OIDCAuthenticationBackend as LaSuiteOIDCAuthenticationBackend,
)
from core.brevo import add_user_to_brevo_list
from core.models import DuplicateEmailError
logger = logging.getLogger(__name__)
@@ -70,3 +71,12 @@ class OIDCAuthenticationBackend(LaSuiteOIDCAuthenticationBackend):
return super().create_user(
claims | {"allow_conversation_analytics": settings.DEFAULT_ALLOW_CONVERSATION_ANALYTICS}
)
def authenticate(self, request, **kwargs):
"""Authenticate user and add they to Brevo list if activation not required."""
user = super().authenticate(request, **kwargs)
if user and not settings.ACTIVATION_REQUIRED and settings.BREVO_FOLLOWUP_LIST_ID:
add_user_to_brevo_list([user.email], settings.BREVO_FOLLOWUP_LIST_ID)
return user
+135
View File
@@ -0,0 +1,135 @@
"""Functions for interacting with Brevo API to manage contacts in a waiting list."""
import logging
from typing import List, Optional
from django.conf import settings
import requests
logger = logging.getLogger(__name__)
def create_contact_in_brevo(email: str) -> bool:
"""
Create a contact in Brevo.
Args:
email (str): The email address of the user.
"""
api_key = settings.BREVO_API_KEY
if not api_key:
logger.info("Brevo API key not configured: skipping creating contact")
return False
url = "https://api.brevo.com/v3/contacts"
headers = {
"accept": "application/json",
"api-key": api_key,
"content-type": "application/json",
}
payload = {
"email": email,
"updateEnabled": True,
}
try:
response = requests.post(url, json=payload, headers=headers, timeout=5)
except requests.RequestException as e:
logger.exception(e)
return False
if not response.ok:
logger.error(
"Error creating contact in Brevo %s: (%s) %s",
email,
response.status_code,
response.text,
)
return False
return True
def add_user_to_brevo_list(emails: List[str], list_id: Optional[str]) -> None:
"""
Add email list to a Brevo list.
Args:
emails (List[str]): The email address(es) of the user(s).
list_id (str): The Brevo waiting list ID, can be None if not configured.
"""
api_key = settings.BREVO_API_KEY
if not api_key or not list_id:
logger.info("Brevo API key or list ID not configured: skipping adding contact")
return
for email in emails:
# Ensure the contact exists before adding to the list
# `emails` contains several emails only when used from the admin interface bulk action
if not create_contact_in_brevo(email):
logger.error("Failed to create contact %s in Brevo, skipping adding to list", email)
return
url = f"https://api.brevo.com/v3/contacts/lists/{list_id}/contacts/add"
headers = {
"accept": "application/json",
"api-key": api_key,
"content-type": "application/json",
}
payload = {
"emails": emails,
}
try:
response = requests.post(url, json=payload, headers=headers, timeout=5)
except requests.RequestException as e:
logger.exception(e)
return
if response.status_code != 201:
logger.error(
"Error adding contacts to Brevo (%s) %s: (%s) %s",
list_id,
emails,
response.status_code,
response.text,
)
def remove_user_from_brevo_list(emails: List[str], list_id: Optional[str]) -> None:
"""
Remove email list from a Brevo list.
Args:
emails (List[str]): The email address(es) of the user(s).
list_id (str): The Brevo waiting list ID, can be None if not configured.
"""
api_key = settings.BREVO_API_KEY
if not api_key or not list_id:
logger.info("Brevo API key or list ID not configured: skipping removing contact")
return
url = f"https://api.brevo.com/v3/contacts/lists/{list_id}/contacts/remove"
headers = {
"accept": "application/json",
"api-key": api_key,
"content-type": "application/json",
}
payload = {
"emails": emails,
}
try:
response = requests.post(url, json=payload, headers=headers, timeout=5)
except requests.RequestException as e:
logger.exception(e)
return
if response.status_code != 201:
logger.error(
"Error removing contacts from Brevo (%s) %s: (%s) %s",
list_id,
emails,
response.status_code,
response.text,
)
@@ -1,5 +1,6 @@
"""Unit tests for the Authentication Backends."""
import json
import random
import re
@@ -491,3 +492,82 @@ def test_authentication_session_tokens(django_assert_num_queries, monkeypatch, r
assert user is not None
assert request.session["oidc_access_token"] == "test-access-token"
assert get_oidc_refresh_token(request.session) == "test-refresh-token"
@responses.activate
def test_authentication_user_added_to_brevo(monkeypatch, rf, settings):
"""
Test that a user is added to the Brevo follow-up list upon authentication.
"""
settings.OIDC_OP_TOKEN_ENDPOINT = "http://oidc.endpoint.test/token"
settings.OIDC_OP_USER_ENDPOINT = "http://oidc.endpoint.test/userinfo"
settings.OIDC_OP_JWKS_ENDPOINT = "http://oidc.endpoint.test/jwks"
settings.BREVO_API_KEY = "test-api-key"
settings.BREVO_FOLLOWUP_LIST_ID = "follow-up-list-id"
settings.ACTIVATION_REQUIRED = False
brevo_create_contact = responses.post(
"https://api.brevo.com/v3/contacts",
status=200,
)
brevo_add_to_list = responses.post(
"https://api.brevo.com/v3/contacts/lists/follow-up-list-id/contacts/add",
status=400,
)
klass = OIDCAuthenticationBackend()
request = rf.get("/some-url", {"state": "test-state", "code": "test-code"})
request.session = {}
def verify_token_mocked(*args, **kwargs):
return {"sub": "123", "email": "test@example.com"}
monkeypatch.setattr(OIDCAuthenticationBackend, "verify_token", verify_token_mocked)
responses.add(
responses.POST,
re.compile(settings.OIDC_OP_TOKEN_ENDPOINT),
json={
"access_token": "test-access-token",
"refresh_token": "test-refresh-token",
},
status=200,
)
responses.add(
responses.GET,
re.compile(settings.OIDC_OP_USER_ENDPOINT),
json={"sub": "123", "email": "test@example.com"},
status=200,
)
user = klass.authenticate(
request,
code="test-code",
nonce="test-nonce",
code_verifier="test-code-verifier",
)
assert len(brevo_create_contact.calls) == 1
assert brevo_create_contact.calls[0].request.headers["api-key"] == "test-api-key"
assert json.loads(brevo_create_contact.calls[0].request.body) == {
"email": user.email,
"updateEnabled": True,
}
assert len(brevo_add_to_list.calls) == 1
assert brevo_add_to_list.calls[0].request.headers["api-key"] == "test-api-key"
assert json.loads(brevo_add_to_list.calls[0].request.body) == {"emails": [user.email]}
# Now test when activation is required: user should not be added to Brevo list
settings.ACTIVATION_REQUIRED = True
klass.authenticate(
request,
code="test-code",
nonce="test-nonce",
code_verifier="test-code-verifier",
)
assert len(brevo_create_contact.calls) == 1 # No new call made
assert len(brevo_add_to_list.calls) == 1 # No new call made
+1
View File
@@ -229,6 +229,7 @@ def test_api_users_retrieve_me_authenticated():
"full_name": user.full_name,
"language": user.language,
"short_name": user.short_name,
"sub": user.sub,
}
+118 -89
View File
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: la-suite-conversations\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-10-19 21:49+0000\n"
"PO-Revision-Date: 2025-10-19 21:25\n"
"POT-Creation-Date: 2025-10-20 21:48+0000\n"
"PO-Revision-Date: 2025-10-21 20:46\n"
"Last-Translator: \n"
"Language-Team: German\n"
"Language: de_DE\n"
@@ -17,298 +17,328 @@ msgstr ""
"X-Crowdin-File: backend-conversations.pot\n"
"X-Crowdin-File-ID: 26\n"
#: activation_codes/admin.py:54
#: activation_codes/admin.py:55 build/lib/activation_codes/admin.py:55
msgid "Configuration"
msgstr ""
#: activation_codes/admin.py:65
#: activation_codes/admin.py:66 build/lib/activation_codes/admin.py:66
msgid "Usage details"
msgstr ""
#: activation_codes/admin.py:69 activation_codes/admin.py:225
#: activation_codes/admin.py:70 activation_codes/admin.py:226
#: build/lib/activation_codes/admin.py:70
#: build/lib/activation_codes/admin.py:226
msgid "Timestamps"
msgstr ""
#: activation_codes/admin.py:108
#: activation_codes/admin.py:109 build/lib/activation_codes/admin.py:109
msgid "Usage"
msgstr ""
#: activation_codes/admin.py:116
#: activation_codes/admin.py:117 build/lib/activation_codes/admin.py:117
msgid "Description"
msgstr ""
#: activation_codes/admin.py:123
#: activation_codes/admin.py:124 build/lib/activation_codes/admin.py:124
msgid "No users have used this code yet"
msgstr ""
#: activation_codes/admin.py:134
#: activation_codes/admin.py:135 build/lib/activation_codes/admin.py:135
msgid "Name"
msgstr ""
#: activation_codes/admin.py:135 activation_codes/admin.py:245
#: activation_codes/admin.py:136 activation_codes/admin.py:246
#: build/lib/activation_codes/admin.py:136
#: build/lib/activation_codes/admin.py:246
msgid "Email"
msgstr ""
#: activation_codes/admin.py:136
#: activation_codes/admin.py:137 build/lib/activation_codes/admin.py:137
msgid "Date"
msgstr ""
#: activation_codes/admin.py:160
#: activation_codes/admin.py:161 build/lib/activation_codes/admin.py:161
msgid "Users who used this code"
msgstr ""
#: activation_codes/admin.py:162
#: activation_codes/admin.py:163 build/lib/activation_codes/admin.py:163
msgid "Recompute current uses from related activations"
msgstr ""
#: activation_codes/admin.py:176
#: activation_codes/admin.py:177 build/lib/activation_codes/admin.py:177
msgid "All selected activation codes already have correct usage counts."
msgstr ""
#: activation_codes/admin.py:181
#: activation_codes/admin.py:182 build/lib/activation_codes/admin.py:182
#, python-format
msgid "Successfully recomputed usage counts for %(count)d activation code(s)."
msgstr ""
#: activation_codes/admin.py:239 activation_codes/admin.py:281
#: activation_codes/admin.py:240 activation_codes/admin.py:284
#: build/lib/activation_codes/admin.py:240
#: build/lib/activation_codes/admin.py:284
msgid "User"
msgstr ""
#: activation_codes/admin.py:288
#: activation_codes/admin.py:291 build/lib/activation_codes/admin.py:291
msgid "Has used activation code"
msgstr ""
#: activation_codes/models.py:36 activation_codes/models.py:83
#: activation_codes/models.py:164
#: activation_codes/admin.py:293 build/lib/activation_codes/admin.py:293
msgid "Add selected users to Brevo waiting list"
msgstr ""
#: activation_codes/admin.py:314 build/lib/activation_codes/admin.py:314
#, python-format
msgid "Added %(count)d user(s) to Brevo waiting list."
msgstr ""
#: activation_codes/admin.py:319 activation_codes/admin.py:347
#: build/lib/activation_codes/admin.py:319
#: build/lib/activation_codes/admin.py:347
msgid "No valid email address found in selected registrations."
msgstr ""
#: activation_codes/admin.py:323 build/lib/activation_codes/admin.py:323
msgid "Remove selected users from Brevo waiting list"
msgstr ""
#: activation_codes/admin.py:342 build/lib/activation_codes/admin.py:342
#, python-format
msgid "Removed %(count)d user(s) from Brevo waiting list."
msgstr ""
#: activation_codes/models.py:38 activation_codes/models.py:85
#: activation_codes/models.py:178 build/lib/activation_codes/models.py:38
#: build/lib/activation_codes/models.py:85
#: build/lib/activation_codes/models.py:178
msgid "activation code"
msgstr ""
#: activation_codes/models.py:37
#: activation_codes/models.py:39 build/lib/activation_codes/models.py:39
msgid "The activation code that users will enter"
msgstr ""
#: activation_codes/models.py:44
#: activation_codes/models.py:46 build/lib/activation_codes/models.py:46
msgid "Code must be alphanumeric and contain no spaces or special characters"
msgstr ""
#: activation_codes/models.py:50
#: activation_codes/models.py:52 build/lib/activation_codes/models.py:52
msgid "maximum uses"
msgstr ""
#: activation_codes/models.py:51
#: activation_codes/models.py:53 build/lib/activation_codes/models.py:53
msgid "Maximum number of times this code can be used. 0 means unlimited."
msgstr ""
#: activation_codes/models.py:56
#: activation_codes/models.py:58 build/lib/activation_codes/models.py:58
msgid "current uses"
msgstr ""
#: activation_codes/models.py:57
#: activation_codes/models.py:59 build/lib/activation_codes/models.py:59
msgid "Number of times this code has been used"
msgstr ""
#: activation_codes/models.py:63 core/models.py:151
#: activation_codes/models.py:65 build/lib/activation_codes/models.py:65
#: build/lib/core/models.py:151 core/models.py:151
msgid "active"
msgstr ""
#: activation_codes/models.py:64
#: activation_codes/models.py:66 build/lib/activation_codes/models.py:66
msgid "Whether this code can still be used"
msgstr ""
#: activation_codes/models.py:69
#: activation_codes/models.py:71 build/lib/activation_codes/models.py:71
msgid "expires at"
msgstr ""
#: activation_codes/models.py:70
#: activation_codes/models.py:72 build/lib/activation_codes/models.py:72
msgid "Date and time when this code expires"
msgstr ""
#: activation_codes/models.py:76
#: activation_codes/models.py:78 build/lib/activation_codes/models.py:78
msgid "description"
msgstr ""
#: activation_codes/models.py:77
#: activation_codes/models.py:79 build/lib/activation_codes/models.py:79
msgid "Internal description or notes about this code"
msgstr ""
#: activation_codes/models.py:84
#: activation_codes/models.py:86 build/lib/activation_codes/models.py:86
msgid "activation codes"
msgstr ""
#: activation_codes/models.py:126
#: activation_codes/models.py:128 build/lib/activation_codes/models.py:128
msgid "This activation code is no longer valid"
msgstr ""
#: activation_codes/models.py:134
#: activation_codes/models.py:136 build/lib/activation_codes/models.py:136
msgid "You have already activated your account"
msgstr ""
#: activation_codes/models.py:156 activation_codes/models.py:188
#: activation_codes/models.py:170 activation_codes/models.py:202
#: build/lib/activation_codes/models.py:170
#: build/lib/activation_codes/models.py:202 build/lib/core/models.py:173
#: core/models.py:173
msgid "user"
msgstr ""
#: activation_codes/models.py:157
#: activation_codes/models.py:171 build/lib/activation_codes/models.py:171
msgid "The user who used the activation code"
msgstr ""
#: activation_codes/models.py:165
#: activation_codes/models.py:179 build/lib/activation_codes/models.py:179
msgid "The activation code that was used"
msgstr ""
#: activation_codes/models.py:172 activation_codes/models.py:196
#: activation_codes/models.py:186 activation_codes/models.py:210
#: build/lib/activation_codes/models.py:186
#: build/lib/activation_codes/models.py:210
msgid "user activation"
msgstr ""
#: activation_codes/models.py:173
#: activation_codes/models.py:187 build/lib/activation_codes/models.py:187
msgid "user activations"
msgstr ""
#: activation_codes/models.py:189
#: activation_codes/models.py:203 build/lib/activation_codes/models.py:203
msgid "The user who made the registration request"
msgstr ""
#: activation_codes/models.py:197
#: activation_codes/models.py:211 build/lib/activation_codes/models.py:211
msgid "Store if the user received an activation code and used it"
msgstr ""
#: activation_codes/models.py:206
#: activation_codes/models.py:220 build/lib/activation_codes/models.py:220
msgid "user registration request"
msgstr ""
#: activation_codes/models.py:207
#: activation_codes/models.py:221 build/lib/activation_codes/models.py:221
msgid "user registration requests"
msgstr ""
#: activation_codes/serializers.py:14
#: build/lib/activation_codes/serializers.py:14
msgid "The activation code to validate"
msgstr ""
#: activation_codes/viewsets.py:106
#: activation_codes/viewsets.py:107 build/lib/activation_codes/viewsets.py:107
msgid "Your account has been successfully activated"
msgstr ""
#: chat/apps.py:12
#: build/lib/chat/apps.py:12 chat/apps.py:12
msgid "chat application"
msgstr ""
#: core/admin.py:26
#: build/lib/core/admin.py:26 core/admin.py:26
msgid "Personal info"
msgstr ""
#: core/admin.py:40
#: build/lib/core/admin.py:40 core/admin.py:40
msgid "Permissions"
msgstr ""
#: core/admin.py:52
#: build/lib/core/admin.py:52 core/admin.py:52
msgid "Important dates"
msgstr ""
#: core/models.py:39
#: build/lib/core/models.py:39 core/models.py:39
msgid "id"
msgstr ""
msgstr "id"
#: core/models.py:40
#: build/lib/core/models.py:40 core/models.py:40
msgid "primary key for the record as UUID"
msgstr ""
#: core/models.py:46
#: build/lib/core/models.py:46 core/models.py:46
msgid "created on"
msgstr ""
#: core/models.py:47
#: build/lib/core/models.py:47 core/models.py:47
msgid "date and time at which a record was created"
msgstr ""
#: core/models.py:52
#: build/lib/core/models.py:52 core/models.py:52
msgid "updated on"
msgstr ""
#: core/models.py:53
#: build/lib/core/models.py:53 core/models.py:53
msgid "date and time at which a record was last updated"
msgstr ""
#: core/models.py:86
msgid ""
"We couldn't find a user with this sub but the email is already associated "
"with a registered user."
#: build/lib/core/models.py:86 core/models.py:86
msgid "We couldn't find a user with this sub but the email is already associated with a registered user."
msgstr ""
#: core/models.py:99
msgid ""
"Enter a valid sub. This value may contain only letters, numbers, and @/./+/-/"
"_/: characters."
#: build/lib/core/models.py:99 core/models.py:99
msgid "Enter a valid sub. This value may contain only letters, numbers, and @/./+/-/_/: characters."
msgstr ""
#: core/models.py:105
#: build/lib/core/models.py:105 core/models.py:105
msgid "sub"
msgstr ""
#: core/models.py:107
msgid ""
"Required. 255 characters or fewer. Letters, numbers, and @/./+/-/_/: "
"characters only."
#: build/lib/core/models.py:107 core/models.py:107
msgid "Required. 255 characters or fewer. Letters, numbers, and @/./+/-/_/: characters only."
msgstr ""
#: core/models.py:116
#: build/lib/core/models.py:116 core/models.py:116
msgid "full name"
msgstr ""
#: core/models.py:117
#: build/lib/core/models.py:117 core/models.py:117
msgid "short name"
msgstr ""
#: core/models.py:119
#: build/lib/core/models.py:119 core/models.py:119
msgid "identity email address"
msgstr ""
#: core/models.py:123
#: build/lib/core/models.py:123 core/models.py:123
msgid "admin email address"
msgstr ""
#: core/models.py:129
#: build/lib/core/models.py:129 core/models.py:129
msgid "language"
msgstr ""
#: core/models.py:130
#: build/lib/core/models.py:130 core/models.py:130
msgid "The language in which the user wants to see the interface."
msgstr ""
#: core/models.py:138
#: build/lib/core/models.py:138 core/models.py:138
msgid "The timezone in which the user wants to see times."
msgstr ""
#: core/models.py:141
#: build/lib/core/models.py:141 core/models.py:141
msgid "device"
msgstr ""
#: core/models.py:143
#: build/lib/core/models.py:143 core/models.py:143
msgid "Whether the user is a device or a real user."
msgstr ""
#: core/models.py:146
#: build/lib/core/models.py:146 core/models.py:146
msgid "staff status"
msgstr ""
#: core/models.py:148
#: build/lib/core/models.py:148 core/models.py:148
msgid "Whether the user can log into this admin site."
msgstr ""
#: core/models.py:154
msgid ""
"Whether this user should be treated as active. Unselect this instead of "
"deleting accounts."
#: build/lib/core/models.py:154 core/models.py:154
msgid "Whether this user should be treated as active. Unselect this instead of deleting accounts."
msgstr ""
#: core/models.py:161
#: build/lib/core/models.py:161 core/models.py:161
msgid "allow conversation analytics"
msgstr ""
#: core/models.py:163
#: build/lib/core/models.py:163 core/models.py:163
msgid "Whether the user allows to use their conversations for analytics."
msgstr ""
#: core/models.py:174
#: build/lib/core/models.py:174 core/models.py:174
msgid "users"
msgstr ""
@@ -324,9 +354,7 @@ msgstr ""
#: core/templates/mail/html/invitation.html:226
#: core/templates/mail/text/invitation.txt:14
msgid ""
" Docs, your new essential tool for organizing, sharing and collaborating on "
"your documents as a team. "
msgid " Docs, your new essential tool for organizing, sharing and collaborating on your documents as a team. "
msgstr ""
#: core/templates/mail/html/invitation.html:233
@@ -334,3 +362,4 @@ msgstr ""
#, python-format
msgid " Brought to you by %(brandname)s "
msgstr ""
+117 -88
View File
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: la-suite-conversations\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-10-19 21:49+0000\n"
"PO-Revision-Date: 2025-10-19 21:25\n"
"POT-Creation-Date: 2025-10-20 21:48+0000\n"
"PO-Revision-Date: 2025-10-21 20:46\n"
"Last-Translator: \n"
"Language-Team: English\n"
"Language: en_US\n"
@@ -17,298 +17,328 @@ msgstr ""
"X-Crowdin-File: backend-conversations.pot\n"
"X-Crowdin-File-ID: 26\n"
#: activation_codes/admin.py:54
#: activation_codes/admin.py:55 build/lib/activation_codes/admin.py:55
msgid "Configuration"
msgstr ""
#: activation_codes/admin.py:65
#: activation_codes/admin.py:66 build/lib/activation_codes/admin.py:66
msgid "Usage details"
msgstr ""
#: activation_codes/admin.py:69 activation_codes/admin.py:225
#: activation_codes/admin.py:70 activation_codes/admin.py:226
#: build/lib/activation_codes/admin.py:70
#: build/lib/activation_codes/admin.py:226
msgid "Timestamps"
msgstr ""
#: activation_codes/admin.py:108
#: activation_codes/admin.py:109 build/lib/activation_codes/admin.py:109
msgid "Usage"
msgstr ""
#: activation_codes/admin.py:116
#: activation_codes/admin.py:117 build/lib/activation_codes/admin.py:117
msgid "Description"
msgstr ""
#: activation_codes/admin.py:123
#: activation_codes/admin.py:124 build/lib/activation_codes/admin.py:124
msgid "No users have used this code yet"
msgstr ""
#: activation_codes/admin.py:134
#: activation_codes/admin.py:135 build/lib/activation_codes/admin.py:135
msgid "Name"
msgstr ""
#: activation_codes/admin.py:135 activation_codes/admin.py:245
#: activation_codes/admin.py:136 activation_codes/admin.py:246
#: build/lib/activation_codes/admin.py:136
#: build/lib/activation_codes/admin.py:246
msgid "Email"
msgstr ""
#: activation_codes/admin.py:136
#: activation_codes/admin.py:137 build/lib/activation_codes/admin.py:137
msgid "Date"
msgstr ""
#: activation_codes/admin.py:160
#: activation_codes/admin.py:161 build/lib/activation_codes/admin.py:161
msgid "Users who used this code"
msgstr ""
#: activation_codes/admin.py:162
#: activation_codes/admin.py:163 build/lib/activation_codes/admin.py:163
msgid "Recompute current uses from related activations"
msgstr ""
#: activation_codes/admin.py:176
#: activation_codes/admin.py:177 build/lib/activation_codes/admin.py:177
msgid "All selected activation codes already have correct usage counts."
msgstr ""
#: activation_codes/admin.py:181
#: activation_codes/admin.py:182 build/lib/activation_codes/admin.py:182
#, python-format
msgid "Successfully recomputed usage counts for %(count)d activation code(s)."
msgstr ""
#: activation_codes/admin.py:239 activation_codes/admin.py:281
#: activation_codes/admin.py:240 activation_codes/admin.py:284
#: build/lib/activation_codes/admin.py:240
#: build/lib/activation_codes/admin.py:284
msgid "User"
msgstr ""
#: activation_codes/admin.py:288
#: activation_codes/admin.py:291 build/lib/activation_codes/admin.py:291
msgid "Has used activation code"
msgstr ""
#: activation_codes/models.py:36 activation_codes/models.py:83
#: activation_codes/models.py:164
#: activation_codes/admin.py:293 build/lib/activation_codes/admin.py:293
msgid "Add selected users to Brevo waiting list"
msgstr ""
#: activation_codes/admin.py:314 build/lib/activation_codes/admin.py:314
#, python-format
msgid "Added %(count)d user(s) to Brevo waiting list."
msgstr ""
#: activation_codes/admin.py:319 activation_codes/admin.py:347
#: build/lib/activation_codes/admin.py:319
#: build/lib/activation_codes/admin.py:347
msgid "No valid email address found in selected registrations."
msgstr ""
#: activation_codes/admin.py:323 build/lib/activation_codes/admin.py:323
msgid "Remove selected users from Brevo waiting list"
msgstr ""
#: activation_codes/admin.py:342 build/lib/activation_codes/admin.py:342
#, python-format
msgid "Removed %(count)d user(s) from Brevo waiting list."
msgstr ""
#: activation_codes/models.py:38 activation_codes/models.py:85
#: activation_codes/models.py:178 build/lib/activation_codes/models.py:38
#: build/lib/activation_codes/models.py:85
#: build/lib/activation_codes/models.py:178
msgid "activation code"
msgstr ""
#: activation_codes/models.py:37
#: activation_codes/models.py:39 build/lib/activation_codes/models.py:39
msgid "The activation code that users will enter"
msgstr ""
#: activation_codes/models.py:44
#: activation_codes/models.py:46 build/lib/activation_codes/models.py:46
msgid "Code must be alphanumeric and contain no spaces or special characters"
msgstr ""
#: activation_codes/models.py:50
#: activation_codes/models.py:52 build/lib/activation_codes/models.py:52
msgid "maximum uses"
msgstr ""
#: activation_codes/models.py:51
#: activation_codes/models.py:53 build/lib/activation_codes/models.py:53
msgid "Maximum number of times this code can be used. 0 means unlimited."
msgstr ""
#: activation_codes/models.py:56
#: activation_codes/models.py:58 build/lib/activation_codes/models.py:58
msgid "current uses"
msgstr ""
#: activation_codes/models.py:57
#: activation_codes/models.py:59 build/lib/activation_codes/models.py:59
msgid "Number of times this code has been used"
msgstr ""
#: activation_codes/models.py:63 core/models.py:151
#: activation_codes/models.py:65 build/lib/activation_codes/models.py:65
#: build/lib/core/models.py:151 core/models.py:151
msgid "active"
msgstr ""
#: activation_codes/models.py:64
#: activation_codes/models.py:66 build/lib/activation_codes/models.py:66
msgid "Whether this code can still be used"
msgstr ""
#: activation_codes/models.py:69
#: activation_codes/models.py:71 build/lib/activation_codes/models.py:71
msgid "expires at"
msgstr ""
#: activation_codes/models.py:70
#: activation_codes/models.py:72 build/lib/activation_codes/models.py:72
msgid "Date and time when this code expires"
msgstr ""
#: activation_codes/models.py:76
#: activation_codes/models.py:78 build/lib/activation_codes/models.py:78
msgid "description"
msgstr ""
#: activation_codes/models.py:77
#: activation_codes/models.py:79 build/lib/activation_codes/models.py:79
msgid "Internal description or notes about this code"
msgstr ""
#: activation_codes/models.py:84
#: activation_codes/models.py:86 build/lib/activation_codes/models.py:86
msgid "activation codes"
msgstr ""
#: activation_codes/models.py:126
#: activation_codes/models.py:128 build/lib/activation_codes/models.py:128
msgid "This activation code is no longer valid"
msgstr ""
#: activation_codes/models.py:134
#: activation_codes/models.py:136 build/lib/activation_codes/models.py:136
msgid "You have already activated your account"
msgstr ""
#: activation_codes/models.py:156 activation_codes/models.py:188
#: activation_codes/models.py:170 activation_codes/models.py:202
#: build/lib/activation_codes/models.py:170
#: build/lib/activation_codes/models.py:202 build/lib/core/models.py:173
#: core/models.py:173
msgid "user"
msgstr ""
#: activation_codes/models.py:157
#: activation_codes/models.py:171 build/lib/activation_codes/models.py:171
msgid "The user who used the activation code"
msgstr ""
#: activation_codes/models.py:165
#: activation_codes/models.py:179 build/lib/activation_codes/models.py:179
msgid "The activation code that was used"
msgstr ""
#: activation_codes/models.py:172 activation_codes/models.py:196
#: activation_codes/models.py:186 activation_codes/models.py:210
#: build/lib/activation_codes/models.py:186
#: build/lib/activation_codes/models.py:210
msgid "user activation"
msgstr ""
#: activation_codes/models.py:173
#: activation_codes/models.py:187 build/lib/activation_codes/models.py:187
msgid "user activations"
msgstr ""
#: activation_codes/models.py:189
#: activation_codes/models.py:203 build/lib/activation_codes/models.py:203
msgid "The user who made the registration request"
msgstr ""
#: activation_codes/models.py:197
#: activation_codes/models.py:211 build/lib/activation_codes/models.py:211
msgid "Store if the user received an activation code and used it"
msgstr ""
#: activation_codes/models.py:206
#: activation_codes/models.py:220 build/lib/activation_codes/models.py:220
msgid "user registration request"
msgstr ""
#: activation_codes/models.py:207
#: activation_codes/models.py:221 build/lib/activation_codes/models.py:221
msgid "user registration requests"
msgstr ""
#: activation_codes/serializers.py:14
#: build/lib/activation_codes/serializers.py:14
msgid "The activation code to validate"
msgstr ""
#: activation_codes/viewsets.py:106
#: activation_codes/viewsets.py:107 build/lib/activation_codes/viewsets.py:107
msgid "Your account has been successfully activated"
msgstr ""
#: chat/apps.py:12
#: build/lib/chat/apps.py:12 chat/apps.py:12
msgid "chat application"
msgstr ""
#: core/admin.py:26
#: build/lib/core/admin.py:26 core/admin.py:26
msgid "Personal info"
msgstr ""
#: core/admin.py:40
#: build/lib/core/admin.py:40 core/admin.py:40
msgid "Permissions"
msgstr ""
#: core/admin.py:52
#: build/lib/core/admin.py:52 core/admin.py:52
msgid "Important dates"
msgstr ""
#: core/models.py:39
#: build/lib/core/models.py:39 core/models.py:39
msgid "id"
msgstr ""
#: core/models.py:40
#: build/lib/core/models.py:40 core/models.py:40
msgid "primary key for the record as UUID"
msgstr ""
#: core/models.py:46
#: build/lib/core/models.py:46 core/models.py:46
msgid "created on"
msgstr ""
#: core/models.py:47
#: build/lib/core/models.py:47 core/models.py:47
msgid "date and time at which a record was created"
msgstr ""
#: core/models.py:52
#: build/lib/core/models.py:52 core/models.py:52
msgid "updated on"
msgstr ""
#: core/models.py:53
#: build/lib/core/models.py:53 core/models.py:53
msgid "date and time at which a record was last updated"
msgstr ""
#: core/models.py:86
msgid ""
"We couldn't find a user with this sub but the email is already associated "
"with a registered user."
#: build/lib/core/models.py:86 core/models.py:86
msgid "We couldn't find a user with this sub but the email is already associated with a registered user."
msgstr ""
#: core/models.py:99
msgid ""
"Enter a valid sub. This value may contain only letters, numbers, and @/./+/-/"
"_/: characters."
#: build/lib/core/models.py:99 core/models.py:99
msgid "Enter a valid sub. This value may contain only letters, numbers, and @/./+/-/_/: characters."
msgstr ""
#: core/models.py:105
#: build/lib/core/models.py:105 core/models.py:105
msgid "sub"
msgstr ""
#: core/models.py:107
msgid ""
"Required. 255 characters or fewer. Letters, numbers, and @/./+/-/_/: "
"characters only."
#: build/lib/core/models.py:107 core/models.py:107
msgid "Required. 255 characters or fewer. Letters, numbers, and @/./+/-/_/: characters only."
msgstr ""
#: core/models.py:116
#: build/lib/core/models.py:116 core/models.py:116
msgid "full name"
msgstr ""
#: core/models.py:117
#: build/lib/core/models.py:117 core/models.py:117
msgid "short name"
msgstr ""
#: core/models.py:119
#: build/lib/core/models.py:119 core/models.py:119
msgid "identity email address"
msgstr ""
#: core/models.py:123
#: build/lib/core/models.py:123 core/models.py:123
msgid "admin email address"
msgstr ""
#: core/models.py:129
#: build/lib/core/models.py:129 core/models.py:129
msgid "language"
msgstr ""
#: core/models.py:130
#: build/lib/core/models.py:130 core/models.py:130
msgid "The language in which the user wants to see the interface."
msgstr ""
#: core/models.py:138
#: build/lib/core/models.py:138 core/models.py:138
msgid "The timezone in which the user wants to see times."
msgstr ""
#: core/models.py:141
#: build/lib/core/models.py:141 core/models.py:141
msgid "device"
msgstr ""
#: core/models.py:143
#: build/lib/core/models.py:143 core/models.py:143
msgid "Whether the user is a device or a real user."
msgstr ""
#: core/models.py:146
#: build/lib/core/models.py:146 core/models.py:146
msgid "staff status"
msgstr ""
#: core/models.py:148
#: build/lib/core/models.py:148 core/models.py:148
msgid "Whether the user can log into this admin site."
msgstr ""
#: core/models.py:154
msgid ""
"Whether this user should be treated as active. Unselect this instead of "
"deleting accounts."
#: build/lib/core/models.py:154 core/models.py:154
msgid "Whether this user should be treated as active. Unselect this instead of deleting accounts."
msgstr ""
#: core/models.py:161
#: build/lib/core/models.py:161 core/models.py:161
msgid "allow conversation analytics"
msgstr ""
#: core/models.py:163
#: build/lib/core/models.py:163 core/models.py:163
msgid "Whether the user allows to use their conversations for analytics."
msgstr ""
#: core/models.py:174
#: build/lib/core/models.py:174 core/models.py:174
msgid "users"
msgstr ""
@@ -324,9 +354,7 @@ msgstr ""
#: core/templates/mail/html/invitation.html:226
#: core/templates/mail/text/invitation.txt:14
msgid ""
" Docs, your new essential tool for organizing, sharing and collaborating on "
"your documents as a team. "
msgid " Docs, your new essential tool for organizing, sharing and collaborating on your documents as a team. "
msgstr ""
#: core/templates/mail/html/invitation.html:233
@@ -334,3 +362,4 @@ msgstr ""
#, python-format
msgid " Brought to you by %(brandname)s "
msgstr ""
+127 -116
View File
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: la-suite-conversations\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-10-19 21:49+0000\n"
"PO-Revision-Date: 2025-10-19 21:25\n"
"POT-Creation-Date: 2025-10-20 21:48+0000\n"
"PO-Revision-Date: 2025-10-21 20:46\n"
"Last-Translator: \n"
"Language-Team: French\n"
"Language: fr_FR\n"
@@ -17,314 +17,328 @@ msgstr ""
"X-Crowdin-File: backend-conversations.pot\n"
"X-Crowdin-File-ID: 26\n"
#: activation_codes/admin.py:54
#: activation_codes/admin.py:55 build/lib/activation_codes/admin.py:55
msgid "Configuration"
msgstr "Configuration"
#: activation_codes/admin.py:65
#: activation_codes/admin.py:66 build/lib/activation_codes/admin.py:66
msgid "Usage details"
msgstr "Détails d'utilisation"
#: activation_codes/admin.py:69 activation_codes/admin.py:225
#: activation_codes/admin.py:70 activation_codes/admin.py:226
#: build/lib/activation_codes/admin.py:70
#: build/lib/activation_codes/admin.py:226
msgid "Timestamps"
msgstr "Horodatages"
#: activation_codes/admin.py:108
#: activation_codes/admin.py:109 build/lib/activation_codes/admin.py:109
msgid "Usage"
msgstr "Utilisation"
#: activation_codes/admin.py:116
#: activation_codes/admin.py:117 build/lib/activation_codes/admin.py:117
msgid "Description"
msgstr "Description"
#: activation_codes/admin.py:123
#: activation_codes/admin.py:124 build/lib/activation_codes/admin.py:124
msgid "No users have used this code yet"
msgstr "Aucun utilisateur n'a encore utilisé ce code"
#: activation_codes/admin.py:134
#: activation_codes/admin.py:135 build/lib/activation_codes/admin.py:135
msgid "Name"
msgstr "Nom"
#: activation_codes/admin.py:135 activation_codes/admin.py:245
#: activation_codes/admin.py:136 activation_codes/admin.py:246
#: build/lib/activation_codes/admin.py:136
#: build/lib/activation_codes/admin.py:246
msgid "Email"
msgstr "E-mail"
#: activation_codes/admin.py:136
#: activation_codes/admin.py:137 build/lib/activation_codes/admin.py:137
msgid "Date"
msgstr "Date"
#: activation_codes/admin.py:160
#: activation_codes/admin.py:161 build/lib/activation_codes/admin.py:161
msgid "Users who used this code"
msgstr "Utilisateurs qui ont utilisé ce code"
#: activation_codes/admin.py:162
#: activation_codes/admin.py:163 build/lib/activation_codes/admin.py:163
msgid "Recompute current uses from related activations"
msgstr "Recalculer les utilisations actuelles à partir des activations liées"
#: activation_codes/admin.py:176
#: activation_codes/admin.py:177 build/lib/activation_codes/admin.py:177
msgid "All selected activation codes already have correct usage counts."
msgstr ""
"Tous les codes d'activation sélectionnés ont déjà un nombre correct "
"d'utilisations."
msgstr "Tous les codes d'activation sélectionnés ont déjà un nombre correct d'utilisations."
#: activation_codes/admin.py:181
#: activation_codes/admin.py:182 build/lib/activation_codes/admin.py:182
#, python-format
msgid "Successfully recomputed usage counts for %(count)d activation code(s)."
msgstr ""
"Utilisation recalculée avec succès pour %(count)d code(s) d'activation."
msgstr "Utilisation recalculée avec succès pour %(count)d code(s) d'activation."
#: activation_codes/admin.py:239 activation_codes/admin.py:281
#: activation_codes/admin.py:240 activation_codes/admin.py:284
#: build/lib/activation_codes/admin.py:240
#: build/lib/activation_codes/admin.py:284
msgid "User"
msgstr "Utilisateur"
#: activation_codes/admin.py:288
#: activation_codes/admin.py:291 build/lib/activation_codes/admin.py:291
msgid "Has used activation code"
msgstr "A utilisé le code d'activation"
#: activation_codes/models.py:36 activation_codes/models.py:83
#: activation_codes/models.py:164
#: activation_codes/admin.py:293 build/lib/activation_codes/admin.py:293
msgid "Add selected users to Brevo waiting list"
msgstr "Ajouter les utilisateurs sélectionnés à la liste d'attente de Brevo"
#: activation_codes/admin.py:314 build/lib/activation_codes/admin.py:314
#, python-format
msgid "Added %(count)d user(s) to Brevo waiting list."
msgstr "%(count)d utilisateur(s) ajoutés à la liste d'attente Brevo."
#: activation_codes/admin.py:319 activation_codes/admin.py:347
#: build/lib/activation_codes/admin.py:319
#: build/lib/activation_codes/admin.py:347
msgid "No valid email address found in selected registrations."
msgstr "Aucune adresse e-mail valide trouvée dans les inscriptions sélectionnées."
#: activation_codes/admin.py:323 build/lib/activation_codes/admin.py:323
msgid "Remove selected users from Brevo waiting list"
msgstr "Supprimer les utilisateurs sélectionnés de la liste d'attente Brevo"
#: activation_codes/admin.py:342 build/lib/activation_codes/admin.py:342
#, python-format
msgid "Removed %(count)d user(s) from Brevo waiting list."
msgstr "Suppression de %(count)d utilisateur(s) de la liste d'attente Brevo."
#: activation_codes/models.py:38 activation_codes/models.py:85
#: activation_codes/models.py:178 build/lib/activation_codes/models.py:38
#: build/lib/activation_codes/models.py:85
#: build/lib/activation_codes/models.py:178
msgid "activation code"
msgstr "code d'activation"
#: activation_codes/models.py:37
#: activation_codes/models.py:39 build/lib/activation_codes/models.py:39
msgid "The activation code that users will enter"
msgstr "Le code d'activation que les utilisateurs entreront"
#: activation_codes/models.py:44
#: activation_codes/models.py:46 build/lib/activation_codes/models.py:46
msgid "Code must be alphanumeric and contain no spaces or special characters"
msgstr ""
"Le code doit être alphanumérique et ne contenir ni espaces ni caractères "
"spéciaux"
msgstr "Le code doit être alphanumérique et ne contenir ni espaces ni caractères spéciaux"
#: activation_codes/models.py:50
#: activation_codes/models.py:52 build/lib/activation_codes/models.py:52
msgid "maximum uses"
msgstr "utilisations maximales"
#: activation_codes/models.py:51
#: activation_codes/models.py:53 build/lib/activation_codes/models.py:53
msgid "Maximum number of times this code can be used. 0 means unlimited."
msgstr "Nombre maximum d'utilisation de ce code. 0 signifie illimité."
#: activation_codes/models.py:56
#: activation_codes/models.py:58 build/lib/activation_codes/models.py:58
msgid "current uses"
msgstr "utilisations actuelles"
#: activation_codes/models.py:57
#: activation_codes/models.py:59 build/lib/activation_codes/models.py:59
msgid "Number of times this code has been used"
msgstr "Nombre de fois où ce code a été utilisé"
#: activation_codes/models.py:63 core/models.py:151
#: activation_codes/models.py:65 build/lib/activation_codes/models.py:65
#: build/lib/core/models.py:151 core/models.py:151
msgid "active"
msgstr "actif"
#: activation_codes/models.py:64
#: activation_codes/models.py:66 build/lib/activation_codes/models.py:66
msgid "Whether this code can still be used"
msgstr "Si ce code peut encore être utilisé"
#: activation_codes/models.py:69
#: activation_codes/models.py:71 build/lib/activation_codes/models.py:71
msgid "expires at"
msgstr "expiration"
#: activation_codes/models.py:70
#: activation_codes/models.py:72 build/lib/activation_codes/models.py:72
msgid "Date and time when this code expires"
msgstr "Date et heure d'expiration de ce code"
#: activation_codes/models.py:76
#: activation_codes/models.py:78 build/lib/activation_codes/models.py:78
msgid "description"
msgstr "description"
#: activation_codes/models.py:77
#: activation_codes/models.py:79 build/lib/activation_codes/models.py:79
msgid "Internal description or notes about this code"
msgstr "Description interne ou notes à propos de ce code"
#: activation_codes/models.py:84
#: activation_codes/models.py:86 build/lib/activation_codes/models.py:86
msgid "activation codes"
msgstr "codes d'activation"
#: activation_codes/models.py:126
#: activation_codes/models.py:128 build/lib/activation_codes/models.py:128
msgid "This activation code is no longer valid"
msgstr "Ce code d'activation n'est plus valide"
#: activation_codes/models.py:134
#: activation_codes/models.py:136 build/lib/activation_codes/models.py:136
msgid "You have already activated your account"
msgstr "Vous avez déjà activé votre compte"
#: activation_codes/models.py:156 activation_codes/models.py:188
#: activation_codes/models.py:170 activation_codes/models.py:202
#: build/lib/activation_codes/models.py:170
#: build/lib/activation_codes/models.py:202 build/lib/core/models.py:173
#: core/models.py:173
msgid "user"
msgstr "utilisateur"
#: activation_codes/models.py:157
#: activation_codes/models.py:171 build/lib/activation_codes/models.py:171
msgid "The user who used the activation code"
msgstr "L'utilisateur qui a utilisé le code d'activation"
#: activation_codes/models.py:165
#: activation_codes/models.py:179 build/lib/activation_codes/models.py:179
msgid "The activation code that was used"
msgstr "Le code d'activation qui a été utilisé"
#: activation_codes/models.py:172 activation_codes/models.py:196
#: activation_codes/models.py:186 activation_codes/models.py:210
#: build/lib/activation_codes/models.py:186
#: build/lib/activation_codes/models.py:210
msgid "user activation"
msgstr "activation d'utilisateur"
#: activation_codes/models.py:173
#: activation_codes/models.py:187 build/lib/activation_codes/models.py:187
msgid "user activations"
msgstr "activations d'utilisateurs"
#: activation_codes/models.py:189
#: activation_codes/models.py:203 build/lib/activation_codes/models.py:203
msgid "The user who made the registration request"
msgstr "L'utilisateur qui a fait la demande d'enregistrement"
#: activation_codes/models.py:197
#: activation_codes/models.py:211 build/lib/activation_codes/models.py:211
msgid "Store if the user received an activation code and used it"
msgstr ""
"Enregistrer si l'utilisateur a reçu un code d'activation et l'a utilisé"
msgstr "Enregistrer si l'utilisateur a reçu un code d'activation et l'a utilisé"
#: activation_codes/models.py:206
#: activation_codes/models.py:220 build/lib/activation_codes/models.py:220
msgid "user registration request"
msgstr "demande d'inscription d'utilisateur"
#: activation_codes/models.py:207
#: activation_codes/models.py:221 build/lib/activation_codes/models.py:221
msgid "user registration requests"
msgstr "demandes d'inscription d'utilisateur"
#: activation_codes/serializers.py:14
#: build/lib/activation_codes/serializers.py:14
msgid "The activation code to validate"
msgstr "Le code d'activation à valider"
#: activation_codes/viewsets.py:106
#: activation_codes/viewsets.py:107 build/lib/activation_codes/viewsets.py:107
msgid "Your account has been successfully activated"
msgstr "Votre compte a été activé avec succès"
#: chat/apps.py:12
#: build/lib/chat/apps.py:12 chat/apps.py:12
msgid "chat application"
msgstr "application de chat"
#: core/admin.py:26
#: build/lib/core/admin.py:26 core/admin.py:26
msgid "Personal info"
msgstr "Informations personnelles"
#: core/admin.py:40
#: build/lib/core/admin.py:40 core/admin.py:40
msgid "Permissions"
msgstr "Permissions"
#: core/admin.py:52
#: build/lib/core/admin.py:52 core/admin.py:52
msgid "Important dates"
msgstr "Dates importantes"
#: core/models.py:39
#: build/lib/core/models.py:39 core/models.py:39
msgid "id"
msgstr "id"
#: core/models.py:40
#: build/lib/core/models.py:40 core/models.py:40
msgid "primary key for the record as UUID"
msgstr "clé primaire pour l'enregistrement en tant que UUID"
#: core/models.py:46
#: build/lib/core/models.py:46 core/models.py:46
msgid "created on"
msgstr "créé le"
#: core/models.py:47
#: build/lib/core/models.py:47 core/models.py:47
msgid "date and time at which a record was created"
msgstr "date et heure de création de l'enregistrement"
#: core/models.py:52
#: build/lib/core/models.py:52 core/models.py:52
msgid "updated on"
msgstr "mis à jour le"
#: core/models.py:53
#: build/lib/core/models.py:53 core/models.py:53
msgid "date and time at which a record was last updated"
msgstr "date et heure de la dernière mise à jour de l'enregistrement"
#: core/models.py:86
msgid ""
"We couldn't find a user with this sub but the email is already associated "
"with a registered user."
msgstr ""
"Nous n'avons pas pu trouver un utilisateur avec ce sous-groupe mais l'e-mail "
"est déjà associé à un utilisateur enregistré."
#: build/lib/core/models.py:86 core/models.py:86
msgid "We couldn't find a user with this sub but the email is already associated with a registered user."
msgstr "Nous n'avons pas pu trouver un utilisateur avec ce sous-groupe mais l'e-mail est déjà associé à un utilisateur enregistré."
#: core/models.py:99
msgid ""
"Enter a valid sub. This value may contain only letters, numbers, and @/./+/-/"
"_/: characters."
msgstr ""
"Saisissez un sous-groupe valide. Cette valeur ne peut contenir que des "
"lettres, des chiffres et les caractères @/./+/-/_/: uniquement."
#: build/lib/core/models.py:99 core/models.py:99
msgid "Enter a valid sub. This value may contain only letters, numbers, and @/./+/-/_/: characters."
msgstr "Saisissez un sous-groupe valide. Cette valeur ne peut contenir que des lettres, des chiffres et les caractères @/./+/-/_/: uniquement."
#: core/models.py:105
#: build/lib/core/models.py:105 core/models.py:105
msgid "sub"
msgstr "sub"
#: core/models.py:107
msgid ""
"Required. 255 characters or fewer. Letters, numbers, and @/./+/-/_/: "
"characters only."
msgstr ""
"Obligatoire. 255 caractères ou moins. Lettres, chiffres et caractères @/./"
"+/-/_/: uniquement."
#: build/lib/core/models.py:107 core/models.py:107
msgid "Required. 255 characters or fewer. Letters, numbers, and @/./+/-/_/: characters only."
msgstr "Obligatoire. 255 caractères ou moins. Lettres, chiffres et caractères @/./+/-/_/: uniquement."
#: core/models.py:116
#: build/lib/core/models.py:116 core/models.py:116
msgid "full name"
msgstr "nom complet"
#: core/models.py:117
#: build/lib/core/models.py:117 core/models.py:117
msgid "short name"
msgstr "nom court"
#: core/models.py:119
#: build/lib/core/models.py:119 core/models.py:119
msgid "identity email address"
msgstr "adresse e-mail d'identité"
#: core/models.py:123
#: build/lib/core/models.py:123 core/models.py:123
msgid "admin email address"
msgstr "adresse e-mail de l'administrateur"
#: core/models.py:129
#: build/lib/core/models.py:129 core/models.py:129
msgid "language"
msgstr "langue"
#: core/models.py:130
#: build/lib/core/models.py:130 core/models.py:130
msgid "The language in which the user wants to see the interface."
msgstr "La langue dans laquelle l'utilisateur veut voir l'interface."
#: core/models.py:138
#: build/lib/core/models.py:138 core/models.py:138
msgid "The timezone in which the user wants to see times."
msgstr "Le fuseau horaire dans lequel l'utilisateur souhaite voir les heures."
#: core/models.py:141
#: build/lib/core/models.py:141 core/models.py:141
msgid "device"
msgstr "appareil"
#: core/models.py:143
#: build/lib/core/models.py:143 core/models.py:143
msgid "Whether the user is a device or a real user."
msgstr "Si l'utilisateur est un appareil ou un utilisateur réel."
#: core/models.py:146
#: build/lib/core/models.py:146 core/models.py:146
msgid "staff status"
msgstr "statut d'équipe"
#: core/models.py:148
#: build/lib/core/models.py:148 core/models.py:148
msgid "Whether the user can log into this admin site."
msgstr "Si l'utilisateur peut se connecter à ce site d'administration."
#: core/models.py:154
msgid ""
"Whether this user should be treated as active. Unselect this instead of "
"deleting accounts."
msgstr ""
"Si cet utilisateur doit être traité comme actif. Désélectionnez ceci au lieu "
"de supprimer des comptes."
#: build/lib/core/models.py:154 core/models.py:154
msgid "Whether this user should be treated as active. Unselect this instead of deleting accounts."
msgstr "Si cet utilisateur doit être traité comme actif. Désélectionnez ceci au lieu de supprimer des comptes."
#: core/models.py:161
#: build/lib/core/models.py:161 core/models.py:161
msgid "allow conversation analytics"
msgstr "autoriser les analyses de conversation"
#: core/models.py:163
#: build/lib/core/models.py:163 core/models.py:163
msgid "Whether the user allows to use their conversations for analytics."
msgstr ""
"Si l'utilisateur autorise l'utilisation de ses conversations pour des "
"analyses."
msgstr "Si l'utilisateur autorise l'utilisation de ses conversations pour des analyses."
#: core/models.py:174
#: build/lib/core/models.py:174 core/models.py:174
msgid "users"
msgstr "utilisateurs"
@@ -340,15 +354,12 @@ msgstr "Ouvrir"
#: core/templates/mail/html/invitation.html:226
#: core/templates/mail/text/invitation.txt:14
msgid ""
" Docs, your new essential tool for organizing, sharing and collaborating on "
"your documents as a team. "
msgstr ""
" Docs, votre nouvel outil incontournable pour organiser, partager et "
"collaborer sur vos documents en équipe. "
msgid " Docs, your new essential tool for organizing, sharing and collaborating on your documents as a team. "
msgstr " Docs, votre nouvel outil incontournable pour organiser, partager et collaborer sur vos documents en équipe. "
#: core/templates/mail/html/invitation.html:233
#: core/templates/mail/text/invitation.txt:16
#, python-format
msgid " Brought to you by %(brandname)s "
msgstr " Proposé par %(brandname)s "
+118 -89
View File
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: la-suite-conversations\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-10-19 21:49+0000\n"
"PO-Revision-Date: 2025-10-19 21:25\n"
"POT-Creation-Date: 2025-10-20 21:48+0000\n"
"PO-Revision-Date: 2025-10-21 20:46\n"
"Last-Translator: \n"
"Language-Team: Dutch\n"
"Language: nl_NL\n"
@@ -17,298 +17,328 @@ msgstr ""
"X-Crowdin-File: backend-conversations.pot\n"
"X-Crowdin-File-ID: 26\n"
#: activation_codes/admin.py:54
#: activation_codes/admin.py:55 build/lib/activation_codes/admin.py:55
msgid "Configuration"
msgstr ""
#: activation_codes/admin.py:65
#: activation_codes/admin.py:66 build/lib/activation_codes/admin.py:66
msgid "Usage details"
msgstr ""
#: activation_codes/admin.py:69 activation_codes/admin.py:225
#: activation_codes/admin.py:70 activation_codes/admin.py:226
#: build/lib/activation_codes/admin.py:70
#: build/lib/activation_codes/admin.py:226
msgid "Timestamps"
msgstr ""
#: activation_codes/admin.py:108
#: activation_codes/admin.py:109 build/lib/activation_codes/admin.py:109
msgid "Usage"
msgstr ""
#: activation_codes/admin.py:116
#: activation_codes/admin.py:117 build/lib/activation_codes/admin.py:117
msgid "Description"
msgstr ""
#: activation_codes/admin.py:123
#: activation_codes/admin.py:124 build/lib/activation_codes/admin.py:124
msgid "No users have used this code yet"
msgstr ""
#: activation_codes/admin.py:134
#: activation_codes/admin.py:135 build/lib/activation_codes/admin.py:135
msgid "Name"
msgstr ""
#: activation_codes/admin.py:135 activation_codes/admin.py:245
#: activation_codes/admin.py:136 activation_codes/admin.py:246
#: build/lib/activation_codes/admin.py:136
#: build/lib/activation_codes/admin.py:246
msgid "Email"
msgstr ""
#: activation_codes/admin.py:136
#: activation_codes/admin.py:137 build/lib/activation_codes/admin.py:137
msgid "Date"
msgstr ""
#: activation_codes/admin.py:160
#: activation_codes/admin.py:161 build/lib/activation_codes/admin.py:161
msgid "Users who used this code"
msgstr ""
#: activation_codes/admin.py:162
#: activation_codes/admin.py:163 build/lib/activation_codes/admin.py:163
msgid "Recompute current uses from related activations"
msgstr ""
#: activation_codes/admin.py:176
#: activation_codes/admin.py:177 build/lib/activation_codes/admin.py:177
msgid "All selected activation codes already have correct usage counts."
msgstr ""
#: activation_codes/admin.py:181
#: activation_codes/admin.py:182 build/lib/activation_codes/admin.py:182
#, python-format
msgid "Successfully recomputed usage counts for %(count)d activation code(s)."
msgstr ""
#: activation_codes/admin.py:239 activation_codes/admin.py:281
#: activation_codes/admin.py:240 activation_codes/admin.py:284
#: build/lib/activation_codes/admin.py:240
#: build/lib/activation_codes/admin.py:284
msgid "User"
msgstr ""
#: activation_codes/admin.py:288
#: activation_codes/admin.py:291 build/lib/activation_codes/admin.py:291
msgid "Has used activation code"
msgstr ""
#: activation_codes/models.py:36 activation_codes/models.py:83
#: activation_codes/models.py:164
#: activation_codes/admin.py:293 build/lib/activation_codes/admin.py:293
msgid "Add selected users to Brevo waiting list"
msgstr ""
#: activation_codes/admin.py:314 build/lib/activation_codes/admin.py:314
#, python-format
msgid "Added %(count)d user(s) to Brevo waiting list."
msgstr ""
#: activation_codes/admin.py:319 activation_codes/admin.py:347
#: build/lib/activation_codes/admin.py:319
#: build/lib/activation_codes/admin.py:347
msgid "No valid email address found in selected registrations."
msgstr ""
#: activation_codes/admin.py:323 build/lib/activation_codes/admin.py:323
msgid "Remove selected users from Brevo waiting list"
msgstr ""
#: activation_codes/admin.py:342 build/lib/activation_codes/admin.py:342
#, python-format
msgid "Removed %(count)d user(s) from Brevo waiting list."
msgstr ""
#: activation_codes/models.py:38 activation_codes/models.py:85
#: activation_codes/models.py:178 build/lib/activation_codes/models.py:38
#: build/lib/activation_codes/models.py:85
#: build/lib/activation_codes/models.py:178
msgid "activation code"
msgstr ""
#: activation_codes/models.py:37
#: activation_codes/models.py:39 build/lib/activation_codes/models.py:39
msgid "The activation code that users will enter"
msgstr ""
#: activation_codes/models.py:44
#: activation_codes/models.py:46 build/lib/activation_codes/models.py:46
msgid "Code must be alphanumeric and contain no spaces or special characters"
msgstr ""
#: activation_codes/models.py:50
#: activation_codes/models.py:52 build/lib/activation_codes/models.py:52
msgid "maximum uses"
msgstr ""
#: activation_codes/models.py:51
#: activation_codes/models.py:53 build/lib/activation_codes/models.py:53
msgid "Maximum number of times this code can be used. 0 means unlimited."
msgstr ""
#: activation_codes/models.py:56
#: activation_codes/models.py:58 build/lib/activation_codes/models.py:58
msgid "current uses"
msgstr ""
#: activation_codes/models.py:57
#: activation_codes/models.py:59 build/lib/activation_codes/models.py:59
msgid "Number of times this code has been used"
msgstr ""
#: activation_codes/models.py:63 core/models.py:151
#: activation_codes/models.py:65 build/lib/activation_codes/models.py:65
#: build/lib/core/models.py:151 core/models.py:151
msgid "active"
msgstr ""
#: activation_codes/models.py:64
#: activation_codes/models.py:66 build/lib/activation_codes/models.py:66
msgid "Whether this code can still be used"
msgstr ""
#: activation_codes/models.py:69
#: activation_codes/models.py:71 build/lib/activation_codes/models.py:71
msgid "expires at"
msgstr ""
#: activation_codes/models.py:70
#: activation_codes/models.py:72 build/lib/activation_codes/models.py:72
msgid "Date and time when this code expires"
msgstr ""
#: activation_codes/models.py:76
#: activation_codes/models.py:78 build/lib/activation_codes/models.py:78
msgid "description"
msgstr ""
#: activation_codes/models.py:77
#: activation_codes/models.py:79 build/lib/activation_codes/models.py:79
msgid "Internal description or notes about this code"
msgstr ""
#: activation_codes/models.py:84
#: activation_codes/models.py:86 build/lib/activation_codes/models.py:86
msgid "activation codes"
msgstr ""
#: activation_codes/models.py:126
#: activation_codes/models.py:128 build/lib/activation_codes/models.py:128
msgid "This activation code is no longer valid"
msgstr ""
#: activation_codes/models.py:134
#: activation_codes/models.py:136 build/lib/activation_codes/models.py:136
msgid "You have already activated your account"
msgstr ""
#: activation_codes/models.py:156 activation_codes/models.py:188
#: activation_codes/models.py:170 activation_codes/models.py:202
#: build/lib/activation_codes/models.py:170
#: build/lib/activation_codes/models.py:202 build/lib/core/models.py:173
#: core/models.py:173
msgid "user"
msgstr ""
#: activation_codes/models.py:157
#: activation_codes/models.py:171 build/lib/activation_codes/models.py:171
msgid "The user who used the activation code"
msgstr ""
#: activation_codes/models.py:165
#: activation_codes/models.py:179 build/lib/activation_codes/models.py:179
msgid "The activation code that was used"
msgstr ""
#: activation_codes/models.py:172 activation_codes/models.py:196
#: activation_codes/models.py:186 activation_codes/models.py:210
#: build/lib/activation_codes/models.py:186
#: build/lib/activation_codes/models.py:210
msgid "user activation"
msgstr ""
#: activation_codes/models.py:173
#: activation_codes/models.py:187 build/lib/activation_codes/models.py:187
msgid "user activations"
msgstr ""
#: activation_codes/models.py:189
#: activation_codes/models.py:203 build/lib/activation_codes/models.py:203
msgid "The user who made the registration request"
msgstr ""
#: activation_codes/models.py:197
#: activation_codes/models.py:211 build/lib/activation_codes/models.py:211
msgid "Store if the user received an activation code and used it"
msgstr ""
#: activation_codes/models.py:206
#: activation_codes/models.py:220 build/lib/activation_codes/models.py:220
msgid "user registration request"
msgstr ""
#: activation_codes/models.py:207
#: activation_codes/models.py:221 build/lib/activation_codes/models.py:221
msgid "user registration requests"
msgstr ""
#: activation_codes/serializers.py:14
#: build/lib/activation_codes/serializers.py:14
msgid "The activation code to validate"
msgstr ""
#: activation_codes/viewsets.py:106
#: activation_codes/viewsets.py:107 build/lib/activation_codes/viewsets.py:107
msgid "Your account has been successfully activated"
msgstr ""
#: chat/apps.py:12
#: build/lib/chat/apps.py:12 chat/apps.py:12
msgid "chat application"
msgstr ""
#: core/admin.py:26
#: build/lib/core/admin.py:26 core/admin.py:26
msgid "Personal info"
msgstr ""
#: core/admin.py:40
#: build/lib/core/admin.py:40 core/admin.py:40
msgid "Permissions"
msgstr ""
#: core/admin.py:52
#: build/lib/core/admin.py:52 core/admin.py:52
msgid "Important dates"
msgstr ""
#: core/models.py:39
#: build/lib/core/models.py:39 core/models.py:39
msgid "id"
msgstr ""
msgstr "id"
#: core/models.py:40
#: build/lib/core/models.py:40 core/models.py:40
msgid "primary key for the record as UUID"
msgstr ""
#: core/models.py:46
#: build/lib/core/models.py:46 core/models.py:46
msgid "created on"
msgstr ""
#: core/models.py:47
#: build/lib/core/models.py:47 core/models.py:47
msgid "date and time at which a record was created"
msgstr ""
#: core/models.py:52
#: build/lib/core/models.py:52 core/models.py:52
msgid "updated on"
msgstr ""
#: core/models.py:53
#: build/lib/core/models.py:53 core/models.py:53
msgid "date and time at which a record was last updated"
msgstr ""
#: core/models.py:86
msgid ""
"We couldn't find a user with this sub but the email is already associated "
"with a registered user."
#: build/lib/core/models.py:86 core/models.py:86
msgid "We couldn't find a user with this sub but the email is already associated with a registered user."
msgstr ""
#: core/models.py:99
msgid ""
"Enter a valid sub. This value may contain only letters, numbers, and @/./+/-/"
"_/: characters."
#: build/lib/core/models.py:99 core/models.py:99
msgid "Enter a valid sub. This value may contain only letters, numbers, and @/./+/-/_/: characters."
msgstr ""
#: core/models.py:105
#: build/lib/core/models.py:105 core/models.py:105
msgid "sub"
msgstr ""
#: core/models.py:107
msgid ""
"Required. 255 characters or fewer. Letters, numbers, and @/./+/-/_/: "
"characters only."
#: build/lib/core/models.py:107 core/models.py:107
msgid "Required. 255 characters or fewer. Letters, numbers, and @/./+/-/_/: characters only."
msgstr ""
#: core/models.py:116
#: build/lib/core/models.py:116 core/models.py:116
msgid "full name"
msgstr ""
#: core/models.py:117
#: build/lib/core/models.py:117 core/models.py:117
msgid "short name"
msgstr ""
#: core/models.py:119
#: build/lib/core/models.py:119 core/models.py:119
msgid "identity email address"
msgstr ""
#: core/models.py:123
#: build/lib/core/models.py:123 core/models.py:123
msgid "admin email address"
msgstr ""
#: core/models.py:129
#: build/lib/core/models.py:129 core/models.py:129
msgid "language"
msgstr ""
#: core/models.py:130
#: build/lib/core/models.py:130 core/models.py:130
msgid "The language in which the user wants to see the interface."
msgstr ""
#: core/models.py:138
#: build/lib/core/models.py:138 core/models.py:138
msgid "The timezone in which the user wants to see times."
msgstr ""
#: core/models.py:141
#: build/lib/core/models.py:141 core/models.py:141
msgid "device"
msgstr ""
#: core/models.py:143
#: build/lib/core/models.py:143 core/models.py:143
msgid "Whether the user is a device or a real user."
msgstr ""
#: core/models.py:146
#: build/lib/core/models.py:146 core/models.py:146
msgid "staff status"
msgstr ""
#: core/models.py:148
#: build/lib/core/models.py:148 core/models.py:148
msgid "Whether the user can log into this admin site."
msgstr ""
#: core/models.py:154
msgid ""
"Whether this user should be treated as active. Unselect this instead of "
"deleting accounts."
#: build/lib/core/models.py:154 core/models.py:154
msgid "Whether this user should be treated as active. Unselect this instead of deleting accounts."
msgstr ""
#: core/models.py:161
#: build/lib/core/models.py:161 core/models.py:161
msgid "allow conversation analytics"
msgstr ""
#: core/models.py:163
#: build/lib/core/models.py:163 core/models.py:163
msgid "Whether the user allows to use their conversations for analytics."
msgstr ""
#: core/models.py:174
#: build/lib/core/models.py:174 core/models.py:174
msgid "users"
msgstr ""
@@ -324,9 +354,7 @@ msgstr ""
#: core/templates/mail/html/invitation.html:226
#: core/templates/mail/text/invitation.txt:14
msgid ""
" Docs, your new essential tool for organizing, sharing and collaborating on "
"your documents as a team. "
msgid " Docs, your new essential tool for organizing, sharing and collaborating on your documents as a team. "
msgstr ""
#: core/templates/mail/html/invitation.html:233
@@ -334,3 +362,4 @@ msgstr ""
#, python-format
msgid " Brought to you by %(brandname)s "
msgstr ""
+132 -120
View File
@@ -2,328 +2,343 @@ msgid ""
msgstr ""
"Project-Id-Version: la-suite-conversations\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-10-19 21:49+0000\n"
"PO-Revision-Date: 2025-10-19 21:25\n"
"POT-Creation-Date: 2025-10-20 21:48+0000\n"
"PO-Revision-Date: 2025-10-21 20:46\n"
"Last-Translator: \n"
"Language-Team: Russian\n"
"Language: ru_RU\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=((n%10==1 && n%100!=11) ? 0 : ((n%10 >= 2 "
"&& n%10 <=4 && (n%100 < 12 || n%100 > 14)) ? 1 : ((n%10 == 0 || (n%10 >= 5 "
"&& n%10 <=9)) || (n%100 >= 11 && n%100 <= 14)) ? 2 : 3));\n"
"Plural-Forms: nplurals=4; plural=((n%10==1 && n%100!=11) ? 0 : ((n%10 >= 2 && n%10 <=4 && (n%100 < 12 || n%100 > 14)) ? 1 : ((n%10 == 0 || (n%10 >= 5 && n%10 <=9)) || (n%100 >= 11 && n%100 <= 14)) ? 2 : 3));\n"
"X-Crowdin-Project: la-suite-conversations\n"
"X-Crowdin-Project-ID: 810876\n"
"X-Crowdin-Language: ru\n"
"X-Crowdin-File: backend-conversations.pot\n"
"X-Crowdin-File-ID: 26\n"
#: activation_codes/admin.py:54
#: activation_codes/admin.py:55 build/lib/activation_codes/admin.py:55
msgid "Configuration"
msgstr "Настройки"
#: activation_codes/admin.py:65
#: activation_codes/admin.py:66 build/lib/activation_codes/admin.py:66
msgid "Usage details"
msgstr "Сведения об использовании"
#: activation_codes/admin.py:69 activation_codes/admin.py:225
#: activation_codes/admin.py:70 activation_codes/admin.py:226
#: build/lib/activation_codes/admin.py:70
#: build/lib/activation_codes/admin.py:226
msgid "Timestamps"
msgstr "Временные метки"
#: activation_codes/admin.py:108
#: activation_codes/admin.py:109 build/lib/activation_codes/admin.py:109
msgid "Usage"
msgstr "Использование"
#: activation_codes/admin.py:116
#: activation_codes/admin.py:117 build/lib/activation_codes/admin.py:117
msgid "Description"
msgstr "Описание"
#: activation_codes/admin.py:123
#: activation_codes/admin.py:124 build/lib/activation_codes/admin.py:124
msgid "No users have used this code yet"
msgstr "Пока нет пользователей с этим кодом"
msgstr "Пока нет пользователей, использовавших этот код"
#: activation_codes/admin.py:134
#: activation_codes/admin.py:135 build/lib/activation_codes/admin.py:135
msgid "Name"
msgstr "Имя"
#: activation_codes/admin.py:135 activation_codes/admin.py:245
#: activation_codes/admin.py:136 activation_codes/admin.py:246
#: build/lib/activation_codes/admin.py:136
#: build/lib/activation_codes/admin.py:246
msgid "Email"
msgstr "Эл. почта"
#: activation_codes/admin.py:136
#: activation_codes/admin.py:137 build/lib/activation_codes/admin.py:137
msgid "Date"
msgstr "Дата"
#: activation_codes/admin.py:160
#: activation_codes/admin.py:161 build/lib/activation_codes/admin.py:161
msgid "Users who used this code"
msgstr "Пользователи, использующие этот код"
#: activation_codes/admin.py:162
#: activation_codes/admin.py:163 build/lib/activation_codes/admin.py:163
msgid "Recompute current uses from related activations"
msgstr "Обновить данные использования связанных активаций"
#: activation_codes/admin.py:176
#: activation_codes/admin.py:177 build/lib/activation_codes/admin.py:177
msgid "All selected activation codes already have correct usage counts."
msgstr ""
"Все выбранные коды активации уже имеют правильное количество использований."
msgstr "Все выбранные коды активации уже имеют правильное количество использований."
#: activation_codes/admin.py:181
#: activation_codes/admin.py:182 build/lib/activation_codes/admin.py:182
#, python-format
msgid "Successfully recomputed usage counts for %(count)d activation code(s)."
msgstr ""
"Количество использованных кодов активации (%(count)d) успешно пересчитано."
msgstr "Количество использованных кодов активации (%(count)d) успешно пересчитано."
#: activation_codes/admin.py:239 activation_codes/admin.py:281
#: activation_codes/admin.py:240 activation_codes/admin.py:284
#: build/lib/activation_codes/admin.py:240
#: build/lib/activation_codes/admin.py:284
msgid "User"
msgstr "Пользователь"
#: activation_codes/admin.py:288
#: activation_codes/admin.py:291 build/lib/activation_codes/admin.py:291
msgid "Has used activation code"
msgstr "Использует код активации"
#: activation_codes/models.py:36 activation_codes/models.py:83
#: activation_codes/models.py:164
#: activation_codes/admin.py:293 build/lib/activation_codes/admin.py:293
msgid "Add selected users to Brevo waiting list"
msgstr "Добавить выбранных пользователей в список ожидания Brevo"
#: activation_codes/admin.py:314 build/lib/activation_codes/admin.py:314
#, python-format
msgid "Added %(count)d user(s) to Brevo waiting list."
msgstr "В список ожидания Brevo добавлено пользователей: %(count)d."
#: activation_codes/admin.py:319 activation_codes/admin.py:347
#: build/lib/activation_codes/admin.py:319
#: build/lib/activation_codes/admin.py:347
msgid "No valid email address found in selected registrations."
msgstr "В выбранных регистрациях не найден действительный адрес электронной почты."
#: activation_codes/admin.py:323 build/lib/activation_codes/admin.py:323
msgid "Remove selected users from Brevo waiting list"
msgstr "Удалить выбранных пользователей из списка ожидания Brevo"
#: activation_codes/admin.py:342 build/lib/activation_codes/admin.py:342
#, python-format
msgid "Removed %(count)d user(s) from Brevo waiting list."
msgstr "Из списка ожидания Brevo удалено пользователей: %(count)d."
#: activation_codes/models.py:38 activation_codes/models.py:85
#: activation_codes/models.py:178 build/lib/activation_codes/models.py:38
#: build/lib/activation_codes/models.py:85
#: build/lib/activation_codes/models.py:178
msgid "activation code"
msgstr "код активации"
#: activation_codes/models.py:37
#: activation_codes/models.py:39 build/lib/activation_codes/models.py:39
msgid "The activation code that users will enter"
msgstr "Код активации, который будут вводить пользователи"
#: activation_codes/models.py:44
#: activation_codes/models.py:46 build/lib/activation_codes/models.py:46
msgid "Code must be alphanumeric and contain no spaces or special characters"
msgstr ""
"Код должен быть буквенно-цифровым и не содержать пробелов или специальных "
"символов"
msgstr "Код должен быть буквенно-цифровым и не содержать пробелов или специальных символов"
#: activation_codes/models.py:50
#: activation_codes/models.py:52 build/lib/activation_codes/models.py:52
msgid "maximum uses"
msgstr "максимум использования"
msgstr "максимум использований"
#: activation_codes/models.py:51
#: activation_codes/models.py:53 build/lib/activation_codes/models.py:53
msgid "Maximum number of times this code can be used. 0 means unlimited."
msgstr ""
"Максимальное количество раз, когда этот код может быть использован. 0 "
"означает неограниченно."
msgstr "Сколько раз можно использовать этот код. 0 означает неограниченно."
#: activation_codes/models.py:56
#: activation_codes/models.py:58 build/lib/activation_codes/models.py:58
msgid "current uses"
msgstr "текущее использование"
msgstr "использовано"
#: activation_codes/models.py:57
#: activation_codes/models.py:59 build/lib/activation_codes/models.py:59
msgid "Number of times this code has been used"
msgstr "Сколько раз этот код был использован"
#: activation_codes/models.py:63 core/models.py:151
#: activation_codes/models.py:65 build/lib/activation_codes/models.py:65
#: build/lib/core/models.py:151 core/models.py:151
msgid "active"
msgstr "активный"
#: activation_codes/models.py:64
#: activation_codes/models.py:66 build/lib/activation_codes/models.py:66
msgid "Whether this code can still be used"
msgstr "Можно ли использовать этот код"
msgstr "Можно ли ещё использовать этот код"
#: activation_codes/models.py:69
#: activation_codes/models.py:71 build/lib/activation_codes/models.py:71
msgid "expires at"
msgstr "истекает в"
msgstr "действителен до"
#: activation_codes/models.py:70
#: activation_codes/models.py:72 build/lib/activation_codes/models.py:72
msgid "Date and time when this code expires"
msgstr "Дата и время окончания действия этого кода"
#: activation_codes/models.py:76
#: activation_codes/models.py:78 build/lib/activation_codes/models.py:78
msgid "description"
msgstr "описание"
#: activation_codes/models.py:77
#: activation_codes/models.py:79 build/lib/activation_codes/models.py:79
msgid "Internal description or notes about this code"
msgstr "Внутреннее описание или примечания об этом коде"
#: activation_codes/models.py:84
#: activation_codes/models.py:86 build/lib/activation_codes/models.py:86
msgid "activation codes"
msgstr "коды активации"
#: activation_codes/models.py:126
#: activation_codes/models.py:128 build/lib/activation_codes/models.py:128
msgid "This activation code is no longer valid"
msgstr "Этот код активации больше не действителен"
#: activation_codes/models.py:134
#: activation_codes/models.py:136 build/lib/activation_codes/models.py:136
msgid "You have already activated your account"
msgstr "Вы уже активировали свою учётную запись"
#: activation_codes/models.py:156 activation_codes/models.py:188
#: activation_codes/models.py:170 activation_codes/models.py:202
#: build/lib/activation_codes/models.py:170
#: build/lib/activation_codes/models.py:202 build/lib/core/models.py:173
#: core/models.py:173
msgid "user"
msgstr "пользователь"
#: activation_codes/models.py:157
#: activation_codes/models.py:171 build/lib/activation_codes/models.py:171
msgid "The user who used the activation code"
msgstr "Пользователь, использовавший код активации"
#: activation_codes/models.py:165
#: activation_codes/models.py:179 build/lib/activation_codes/models.py:179
msgid "The activation code that was used"
msgstr "Использованный код активации"
#: activation_codes/models.py:172 activation_codes/models.py:196
#: activation_codes/models.py:186 activation_codes/models.py:210
#: build/lib/activation_codes/models.py:186
#: build/lib/activation_codes/models.py:210
msgid "user activation"
msgstr "активация пользователя"
#: activation_codes/models.py:173
#: activation_codes/models.py:187 build/lib/activation_codes/models.py:187
msgid "user activations"
msgstr "активации пользователя"
#: activation_codes/models.py:189
#: activation_codes/models.py:203 build/lib/activation_codes/models.py:203
msgid "The user who made the registration request"
msgstr "Пользователь, который сделал запрос на регистрацию"
#: activation_codes/models.py:197
#: activation_codes/models.py:211 build/lib/activation_codes/models.py:211
msgid "Store if the user received an activation code and used it"
msgstr "Сохранить, если пользователь получил код активации и использовал его"
#: activation_codes/models.py:206
#: activation_codes/models.py:220 build/lib/activation_codes/models.py:220
msgid "user registration request"
msgstr "запрос на регистрацию пользователя"
#: activation_codes/models.py:207
#: activation_codes/models.py:221 build/lib/activation_codes/models.py:221
msgid "user registration requests"
msgstr "запросы на регистрацию пользователя"
#: activation_codes/serializers.py:14
#: build/lib/activation_codes/serializers.py:14
msgid "The activation code to validate"
msgstr "Код активации для проверки"
#: activation_codes/viewsets.py:106
#: activation_codes/viewsets.py:107 build/lib/activation_codes/viewsets.py:107
msgid "Your account has been successfully activated"
msgstr "Ваша учётная запись успешно активирована"
#: chat/apps.py:12
#: build/lib/chat/apps.py:12 chat/apps.py:12
msgid "chat application"
msgstr "приложение чата"
#: core/admin.py:26
#: build/lib/core/admin.py:26 core/admin.py:26
msgid "Personal info"
msgstr "Личные данные"
#: core/admin.py:40
#: build/lib/core/admin.py:40 core/admin.py:40
msgid "Permissions"
msgstr "Разрешения"
#: core/admin.py:52
#: build/lib/core/admin.py:52 core/admin.py:52
msgid "Important dates"
msgstr "Важные даты"
#: core/models.py:39
#: build/lib/core/models.py:39 core/models.py:39
msgid "id"
msgstr "id"
#: core/models.py:40
#: build/lib/core/models.py:40 core/models.py:40
msgid "primary key for the record as UUID"
msgstr "первичный ключ для записи как UUID"
#: core/models.py:46
#: build/lib/core/models.py:46 core/models.py:46
msgid "created on"
msgstr "создано"
#: core/models.py:47
#: build/lib/core/models.py:47 core/models.py:47
msgid "date and time at which a record was created"
msgstr "дата и время создания записи"
#: core/models.py:52
#: build/lib/core/models.py:52 core/models.py:52
msgid "updated on"
msgstr "обновлено"
#: core/models.py:53
#: build/lib/core/models.py:53 core/models.py:53
msgid "date and time at which a record was last updated"
msgstr "дата и время последнего обновления записи"
#: core/models.py:86
msgid ""
"We couldn't find a user with this sub but the email is already associated "
"with a registered user."
msgstr ""
"Мы не смогли найти пользователя с этими данными, но этот адрес уже связан с "
"зарегистрированным пользователем."
#: build/lib/core/models.py:86 core/models.py:86
msgid "We couldn't find a user with this sub but the email is already associated with a registered user."
msgstr "Мы не смогли найти пользователя с этими данными, но этот адрес уже связан с зарегистрированным пользователем."
#: core/models.py:99
msgid ""
"Enter a valid sub. This value may contain only letters, numbers, and @/./+/-/"
"_/: characters."
msgstr ""
"Введите правильный префикс. Он может содержать только буквы, цифры и символы "
"@/./+/-/_/."
#: build/lib/core/models.py:99 core/models.py:99
msgid "Enter a valid sub. This value may contain only letters, numbers, and @/./+/-/_/: characters."
msgstr "Введите правильный префикс. Он может содержать только буквы, цифры и символы @/./+/-/_/."
#: core/models.py:105
#: build/lib/core/models.py:105 core/models.py:105
msgid "sub"
msgstr "префикс"
#: core/models.py:107
msgid ""
"Required. 255 characters or fewer. Letters, numbers, and @/./+/-/_/: "
"characters only."
msgstr ""
"Обязательно. 255 символов или меньше. Только буквы, цифры и @/./+/-/_/: /."
#: build/lib/core/models.py:107 core/models.py:107
msgid "Required. 255 characters or fewer. Letters, numbers, and @/./+/-/_/: characters only."
msgstr "Обязательно. 255 символов или меньше. Только буквы, цифры и @/./+/-/_/: /."
#: core/models.py:116
#: build/lib/core/models.py:116 core/models.py:116
msgid "full name"
msgstr "полное имя"
#: core/models.py:117
#: build/lib/core/models.py:117 core/models.py:117
msgid "short name"
msgstr "короткое имя"
#: core/models.py:119
#: build/lib/core/models.py:119 core/models.py:119
msgid "identity email address"
msgstr "личный адрес электронной почты"
#: core/models.py:123
#: build/lib/core/models.py:123 core/models.py:123
msgid "admin email address"
msgstr "e-mail администратора"
#: core/models.py:129
#: build/lib/core/models.py:129 core/models.py:129
msgid "language"
msgstr "язык"
#: core/models.py:130
#: build/lib/core/models.py:130 core/models.py:130
msgid "The language in which the user wants to see the interface."
msgstr "Язык, на котором пользователь хочет видеть интерфейс."
#: core/models.py:138
#: build/lib/core/models.py:138 core/models.py:138
msgid "The timezone in which the user wants to see times."
msgstr "Часовой пояс, в котором пользователь хочет видеть время."
#: core/models.py:141
#: build/lib/core/models.py:141 core/models.py:141
msgid "device"
msgstr "устройство"
#: core/models.py:143
#: build/lib/core/models.py:143 core/models.py:143
msgid "Whether the user is a device or a real user."
msgstr "Пользователь является устройством или человеком."
#: core/models.py:146
#: build/lib/core/models.py:146 core/models.py:146
msgid "staff status"
msgstr "статус сотрудника"
#: core/models.py:148
#: build/lib/core/models.py:148 core/models.py:148
msgid "Whether the user can log into this admin site."
msgstr "Может ли пользователь войти на этот административный сайт."
#: core/models.py:154
msgid ""
"Whether this user should be treated as active. Unselect this instead of "
"deleting accounts."
msgstr ""
"Должен ли пользователь рассматриваться как активный. Альтернатива удалению "
"учётных записей."
#: build/lib/core/models.py:154 core/models.py:154
msgid "Whether this user should be treated as active. Unselect this instead of deleting accounts."
msgstr "Должен ли пользователь рассматриваться как активный. Альтернатива удалению учётных записей."
#: core/models.py:161
#: build/lib/core/models.py:161 core/models.py:161
msgid "allow conversation analytics"
msgstr "разрешить аналитику для беседы"
#: core/models.py:163
#: build/lib/core/models.py:163 core/models.py:163
msgid "Whether the user allows to use their conversations for analytics."
msgstr "Разрешает ли пользователь использовать свои беседы для аналитики."
#: core/models.py:174
#: build/lib/core/models.py:174 core/models.py:174
msgid "users"
msgstr "пользователи"
@@ -339,15 +354,12 @@ msgstr "Открыть"
#: core/templates/mail/html/invitation.html:226
#: core/templates/mail/text/invitation.txt:14
msgid ""
" Docs, your new essential tool for organizing, sharing and collaborating on "
"your documents as a team. "
msgstr ""
" Docs, ваш новый инструмент для организации и совместного использования "
"документов в вашей команде. "
msgid " Docs, your new essential tool for organizing, sharing and collaborating on your documents as a team. "
msgstr " Docs, ваш новый инструмент для организации и совместного использования документов в вашей команде. "
#: core/templates/mail/html/invitation.html:233
#: core/templates/mail/text/invitation.txt:16
#, python-format
msgid " Brought to you by %(brandname)s "
msgstr " Доступ получен от %(brandname)s "
+193 -166
View File
@@ -2,337 +2,364 @@ msgid ""
msgstr ""
"Project-Id-Version: la-suite-conversations\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-10-19 21:49+0000\n"
"PO-Revision-Date: 2025-10-19 21:25\n"
"POT-Creation-Date: 2025-10-20 21:48+0000\n"
"PO-Revision-Date: 2025-10-21 20:46\n"
"Last-Translator: \n"
"Language-Team: Ukrainian\n"
"Language: uk_UA\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=((n%10==1 && n%100!=11) ? 0 : ((n%10 >= 2 "
"&& n%10 <=4 && (n%100 < 12 || n%100 > 14)) ? 1 : ((n%10 == 0 || (n%10 >= 5 "
"&& n%10 <=9)) || (n%100 >= 11 && n%100 <= 14)) ? 2 : 3));\n"
"Plural-Forms: nplurals=4; plural=((n%10==1 && n%100!=11) ? 0 : ((n%10 >= 2 && n%10 <=4 && (n%100 < 12 || n%100 > 14)) ? 1 : ((n%10 == 0 || (n%10 >= 5 && n%10 <=9)) || (n%100 >= 11 && n%100 <= 14)) ? 2 : 3));\n"
"X-Crowdin-Project: la-suite-conversations\n"
"X-Crowdin-Project-ID: 810876\n"
"X-Crowdin-Language: uk\n"
"X-Crowdin-File: backend-conversations.pot\n"
"X-Crowdin-File-ID: 26\n"
#: activation_codes/admin.py:54
#: activation_codes/admin.py:55 build/lib/activation_codes/admin.py:55
msgid "Configuration"
msgstr ""
msgstr "Налаштування"
#: activation_codes/admin.py:65
#: activation_codes/admin.py:66 build/lib/activation_codes/admin.py:66
msgid "Usage details"
msgstr ""
msgstr "Відомості про використання"
#: activation_codes/admin.py:69 activation_codes/admin.py:225
#: activation_codes/admin.py:70 activation_codes/admin.py:226
#: build/lib/activation_codes/admin.py:70
#: build/lib/activation_codes/admin.py:226
msgid "Timestamps"
msgstr ""
msgstr "Відмітки часу"
#: activation_codes/admin.py:108
#: activation_codes/admin.py:109 build/lib/activation_codes/admin.py:109
msgid "Usage"
msgstr ""
msgstr "Використання"
#: activation_codes/admin.py:116
#: activation_codes/admin.py:117 build/lib/activation_codes/admin.py:117
msgid "Description"
msgstr ""
msgstr "Опис"
#: activation_codes/admin.py:123
#: activation_codes/admin.py:124 build/lib/activation_codes/admin.py:124
msgid "No users have used this code yet"
msgstr ""
msgstr "Користувачі ще не використовували цей код"
#: activation_codes/admin.py:134
#: activation_codes/admin.py:135 build/lib/activation_codes/admin.py:135
msgid "Name"
msgstr ""
msgstr "Ім’я"
#: activation_codes/admin.py:135 activation_codes/admin.py:245
#: activation_codes/admin.py:136 activation_codes/admin.py:246
#: build/lib/activation_codes/admin.py:136
#: build/lib/activation_codes/admin.py:246
msgid "Email"
msgstr ""
msgstr "Ел. пошта"
#: activation_codes/admin.py:136
#: activation_codes/admin.py:137 build/lib/activation_codes/admin.py:137
msgid "Date"
msgstr ""
msgstr "Дата"
#: activation_codes/admin.py:160
#: activation_codes/admin.py:161 build/lib/activation_codes/admin.py:161
msgid "Users who used this code"
msgstr ""
msgstr "Користувачі, що використовували цей код"
#: activation_codes/admin.py:162
#: activation_codes/admin.py:163 build/lib/activation_codes/admin.py:163
msgid "Recompute current uses from related activations"
msgstr ""
msgstr "Перерахувати поточні використання пов'язаних ресурсів"
#: activation_codes/admin.py:176
#: activation_codes/admin.py:177 build/lib/activation_codes/admin.py:177
msgid "All selected activation codes already have correct usage counts."
msgstr ""
msgstr "Усі обрані коди активації вже мають коректні лічильники використання."
#: activation_codes/admin.py:181
#: activation_codes/admin.py:182 build/lib/activation_codes/admin.py:182
#, python-format
msgid "Successfully recomputed usage counts for %(count)d activation code(s)."
msgstr ""
msgstr "Успішно переобчислено використання коду активації %(count)d."
#: activation_codes/admin.py:239 activation_codes/admin.py:281
#: activation_codes/admin.py:240 activation_codes/admin.py:284
#: build/lib/activation_codes/admin.py:240
#: build/lib/activation_codes/admin.py:284
msgid "User"
msgstr ""
msgstr "Користувач"
#: activation_codes/admin.py:288
#: activation_codes/admin.py:291 build/lib/activation_codes/admin.py:291
msgid "Has used activation code"
msgstr ""
msgstr "Використано код активації"
#: activation_codes/models.py:36 activation_codes/models.py:83
#: activation_codes/models.py:164
#: activation_codes/admin.py:293 build/lib/activation_codes/admin.py:293
msgid "Add selected users to Brevo waiting list"
msgstr "Додати обраних користувачів до списку очікування Brevo"
#: activation_codes/admin.py:314 build/lib/activation_codes/admin.py:314
#, python-format
msgid "Added %(count)d user(s) to Brevo waiting list."
msgstr "До списку очікування Brevo додано користувачів: %(count)d."
#: activation_codes/admin.py:319 activation_codes/admin.py:347
#: build/lib/activation_codes/admin.py:319
#: build/lib/activation_codes/admin.py:347
msgid "No valid email address found in selected registrations."
msgstr "Серед обраних реєстрацій не знайдено дійсної адреси електронної пошти."
#: activation_codes/admin.py:323 build/lib/activation_codes/admin.py:323
msgid "Remove selected users from Brevo waiting list"
msgstr "Видалити обраних користувачів зі списку очікування Brevo"
#: activation_codes/admin.py:342 build/lib/activation_codes/admin.py:342
#, python-format
msgid "Removed %(count)d user(s) from Brevo waiting list."
msgstr "Зі списку очікування Brevo видалено користувачів: %(count)d"
#: activation_codes/models.py:38 activation_codes/models.py:85
#: activation_codes/models.py:178 build/lib/activation_codes/models.py:38
#: build/lib/activation_codes/models.py:85
#: build/lib/activation_codes/models.py:178
msgid "activation code"
msgstr ""
msgstr "код активації"
#: activation_codes/models.py:37
#: activation_codes/models.py:39 build/lib/activation_codes/models.py:39
msgid "The activation code that users will enter"
msgstr ""
msgstr "Код активації, що буде введений користувачами"
#: activation_codes/models.py:44
#: activation_codes/models.py:46 build/lib/activation_codes/models.py:46
msgid "Code must be alphanumeric and contain no spaces or special characters"
msgstr ""
msgstr "Код має бути буквено-цифровим, без пробілів або спеціальних символів"
#: activation_codes/models.py:50
#: activation_codes/models.py:52 build/lib/activation_codes/models.py:52
msgid "maximum uses"
msgstr ""
msgstr "максимум використань"
#: activation_codes/models.py:51
#: activation_codes/models.py:53 build/lib/activation_codes/models.py:53
msgid "Maximum number of times this code can be used. 0 means unlimited."
msgstr ""
msgstr "Максимальна кількість разів використання для цього коду. 0 - необмежена."
#: activation_codes/models.py:56
#: activation_codes/models.py:58 build/lib/activation_codes/models.py:58
msgid "current uses"
msgstr ""
msgstr "використано"
#: activation_codes/models.py:57
#: activation_codes/models.py:59 build/lib/activation_codes/models.py:59
msgid "Number of times this code has been used"
msgstr ""
msgstr "Кількість разів використання цього коду"
#: activation_codes/models.py:63 core/models.py:151
#: activation_codes/models.py:65 build/lib/activation_codes/models.py:65
#: build/lib/core/models.py:151 core/models.py:151
msgid "active"
msgstr ""
msgstr "активний"
#: activation_codes/models.py:64
#: activation_codes/models.py:66 build/lib/activation_codes/models.py:66
msgid "Whether this code can still be used"
msgstr ""
msgstr "Чи цей код все ще може бути використаний"
#: activation_codes/models.py:69
#: activation_codes/models.py:71 build/lib/activation_codes/models.py:71
msgid "expires at"
msgstr ""
msgstr "дійсний до"
#: activation_codes/models.py:70
#: activation_codes/models.py:72 build/lib/activation_codes/models.py:72
msgid "Date and time when this code expires"
msgstr ""
msgstr "Дата та час, коли закінчується дія цього коду"
#: activation_codes/models.py:76
#: activation_codes/models.py:78 build/lib/activation_codes/models.py:78
msgid "description"
msgstr ""
msgstr "опис"
#: activation_codes/models.py:77
#: activation_codes/models.py:79 build/lib/activation_codes/models.py:79
msgid "Internal description or notes about this code"
msgstr ""
msgstr "Внутрішній опис або нотатки про цей код"
#: activation_codes/models.py:84
#: activation_codes/models.py:86 build/lib/activation_codes/models.py:86
msgid "activation codes"
msgstr ""
msgstr "коди активації"
#: activation_codes/models.py:126
#: activation_codes/models.py:128 build/lib/activation_codes/models.py:128
msgid "This activation code is no longer valid"
msgstr ""
msgstr "Цей код активації вже не дійсний"
#: activation_codes/models.py:134
#: activation_codes/models.py:136 build/lib/activation_codes/models.py:136
msgid "You have already activated your account"
msgstr ""
msgstr "Ви вже активували свій обліковий запис"
#: activation_codes/models.py:156 activation_codes/models.py:188
#: activation_codes/models.py:170 activation_codes/models.py:202
#: build/lib/activation_codes/models.py:170
#: build/lib/activation_codes/models.py:202 build/lib/core/models.py:173
#: core/models.py:173
msgid "user"
msgstr ""
msgstr "користувач"
#: activation_codes/models.py:157
#: activation_codes/models.py:171 build/lib/activation_codes/models.py:171
msgid "The user who used the activation code"
msgstr ""
msgstr "Користувач, який користувався кодом активації"
#: activation_codes/models.py:165
#: activation_codes/models.py:179 build/lib/activation_codes/models.py:179
msgid "The activation code that was used"
msgstr ""
msgstr "Використаний код активації"
#: activation_codes/models.py:172 activation_codes/models.py:196
#: activation_codes/models.py:186 activation_codes/models.py:210
#: build/lib/activation_codes/models.py:186
#: build/lib/activation_codes/models.py:210
msgid "user activation"
msgstr ""
msgstr "активація користувача"
#: activation_codes/models.py:173
#: activation_codes/models.py:187 build/lib/activation_codes/models.py:187
msgid "user activations"
msgstr ""
msgstr "активації користувача"
#: activation_codes/models.py:189
#: activation_codes/models.py:203 build/lib/activation_codes/models.py:203
msgid "The user who made the registration request"
msgstr ""
msgstr "Користувач, що зробив запит на реєстрацію"
#: activation_codes/models.py:197
#: activation_codes/models.py:211 build/lib/activation_codes/models.py:211
msgid "Store if the user received an activation code and used it"
msgstr ""
msgstr "Зберегти, якщо користувач отримав код активації та використав його"
#: activation_codes/models.py:206
#: activation_codes/models.py:220 build/lib/activation_codes/models.py:220
msgid "user registration request"
msgstr ""
msgstr "запит на реєстрацію користувача"
#: activation_codes/models.py:207
#: activation_codes/models.py:221 build/lib/activation_codes/models.py:221
msgid "user registration requests"
msgstr ""
msgstr "запити на реєстрацію користувачів"
#: activation_codes/serializers.py:14
#: build/lib/activation_codes/serializers.py:14
msgid "The activation code to validate"
msgstr ""
msgstr "Код активації для перевірки"
#: activation_codes/viewsets.py:106
#: activation_codes/viewsets.py:107 build/lib/activation_codes/viewsets.py:107
msgid "Your account has been successfully activated"
msgstr ""
msgstr "Ваш обліковий запис успішно активовано"
#: chat/apps.py:12
#: build/lib/chat/apps.py:12 chat/apps.py:12
msgid "chat application"
msgstr ""
msgstr "чат-застосунок"
#: core/admin.py:26
#: build/lib/core/admin.py:26 core/admin.py:26
msgid "Personal info"
msgstr ""
msgstr "Особисті дані"
#: core/admin.py:40
#: build/lib/core/admin.py:40 core/admin.py:40
msgid "Permissions"
msgstr ""
msgstr "Дозволи"
#: core/admin.py:52
#: build/lib/core/admin.py:52 core/admin.py:52
msgid "Important dates"
msgstr ""
msgstr "Важливі дати"
#: core/models.py:39
#: build/lib/core/models.py:39 core/models.py:39
msgid "id"
msgstr ""
msgstr "id"
#: core/models.py:40
#: build/lib/core/models.py:40 core/models.py:40
msgid "primary key for the record as UUID"
msgstr ""
msgstr "первинний ключ для запису як UUID"
#: core/models.py:46
#: build/lib/core/models.py:46 core/models.py:46
msgid "created on"
msgstr ""
msgstr "створено"
#: core/models.py:47
#: build/lib/core/models.py:47 core/models.py:47
msgid "date and time at which a record was created"
msgstr ""
msgstr "дата і час, коли запис було створено"
#: core/models.py:52
#: build/lib/core/models.py:52 core/models.py:52
msgid "updated on"
msgstr ""
msgstr "оновлено"
#: core/models.py:53
#: build/lib/core/models.py:53 core/models.py:53
msgid "date and time at which a record was last updated"
msgstr ""
msgstr "дата і час, коли запис був востаннє оновлений"
#: core/models.py:86
msgid ""
"We couldn't find a user with this sub but the email is already associated "
"with a registered user."
msgstr ""
#: build/lib/core/models.py:86 core/models.py:86
msgid "We couldn't find a user with this sub but the email is already associated with a registered user."
msgstr "Ми не змогли знайти користувача з цими даними, але адреса вже пов'язана з зареєстрованим користувачем."
#: core/models.py:99
msgid ""
"Enter a valid sub. This value may contain only letters, numbers, and @/./+/-/"
"_/: characters."
msgstr ""
#: build/lib/core/models.py:99 core/models.py:99
msgid "Enter a valid sub. This value may contain only letters, numbers, and @/./+/-/_/: characters."
msgstr "Введіть правильний префікс. Це значення може містити лише літери, цифри та символи @/./+/-/_/."
#: core/models.py:105
#: build/lib/core/models.py:105 core/models.py:105
msgid "sub"
msgstr ""
msgstr "префікс"
#: core/models.py:107
msgid ""
"Required. 255 characters or fewer. Letters, numbers, and @/./+/-/_/: "
"characters only."
msgstr ""
#: build/lib/core/models.py:107 core/models.py:107
msgid "Required. 255 characters or fewer. Letters, numbers, and @/./+/-/_/: characters only."
msgstr "Обов'язково. 255 символів або менше. Лише літери, цифри та символи @/./+/-/_/."
#: core/models.py:116
#: build/lib/core/models.py:116 core/models.py:116
msgid "full name"
msgstr ""
msgstr "повне ім'я"
#: core/models.py:117
#: build/lib/core/models.py:117 core/models.py:117
msgid "short name"
msgstr ""
msgstr "коротке ім'я"
#: core/models.py:119
#: build/lib/core/models.py:119 core/models.py:119
msgid "identity email address"
msgstr ""
msgstr "адреса електронної пошти особи"
#: core/models.py:123
#: build/lib/core/models.py:123 core/models.py:123
msgid "admin email address"
msgstr ""
msgstr "електронна адреса адміністратора"
#: core/models.py:129
#: build/lib/core/models.py:129 core/models.py:129
msgid "language"
msgstr ""
msgstr "мова"
#: core/models.py:130
#: build/lib/core/models.py:130 core/models.py:130
msgid "The language in which the user wants to see the interface."
msgstr ""
msgstr "Мова, якою користувач хоче бачити інтерфейс."
#: core/models.py:138
#: build/lib/core/models.py:138 core/models.py:138
msgid "The timezone in which the user wants to see times."
msgstr ""
msgstr "Часовий пояс, в якому користувач хоче бачити час."
#: core/models.py:141
#: build/lib/core/models.py:141 core/models.py:141
msgid "device"
msgstr ""
msgstr "пристрій"
#: core/models.py:143
#: build/lib/core/models.py:143 core/models.py:143
msgid "Whether the user is a device or a real user."
msgstr ""
msgstr "Чи є користувач пристроєм чи реальним користувачем."
#: core/models.py:146
#: build/lib/core/models.py:146 core/models.py:146
msgid "staff status"
msgstr ""
msgstr "статус співробітника"
#: core/models.py:148
#: build/lib/core/models.py:148 core/models.py:148
msgid "Whether the user can log into this admin site."
msgstr ""
msgstr "Чи може користувач увійти на цей сайт адміністратора."
#: core/models.py:154
msgid ""
"Whether this user should be treated as active. Unselect this instead of "
"deleting accounts."
msgstr ""
#: build/lib/core/models.py:154 core/models.py:154
msgid "Whether this user should be treated as active. Unselect this instead of deleting accounts."
msgstr "Чи слід ставитися до цього користувача як до активного. Зніміть вибір замість видалення облікового запису."
#: core/models.py:161
#: build/lib/core/models.py:161 core/models.py:161
msgid "allow conversation analytics"
msgstr ""
msgstr "дозволити аналітику бесіди"
#: core/models.py:163
#: build/lib/core/models.py:163 core/models.py:163
msgid "Whether the user allows to use their conversations for analytics."
msgstr ""
msgstr "Чи дозволяє користувач використовувати свої розмови для аналітики."
#: core/models.py:174
#: build/lib/core/models.py:174 core/models.py:174
msgid "users"
msgstr ""
msgstr "користувачі"
#: core/templates/mail/html/invitation.html:162
#: core/templates/mail/text/invitation.txt:3
msgid "Logo email"
msgstr ""
msgstr "Логотип email"
#: core/templates/mail/html/invitation.html:209
#: core/templates/mail/text/invitation.txt:10
msgid "Open"
msgstr ""
msgstr "Відкрити"
#: core/templates/mail/html/invitation.html:226
#: core/templates/mail/text/invitation.txt:14
msgid ""
" Docs, your new essential tool for organizing, sharing and collaborating on "
"your documents as a team. "
msgstr ""
msgid " Docs, your new essential tool for organizing, sharing and collaborating on your documents as a team. "
msgstr " Docs, ваш новий важливий інструмент для організації, обміну та командної співпраці над вашими документами. "
#: core/templates/mail/html/invitation.html:233
#: core/templates/mail/text/invitation.txt:16
#, python-format
msgid " Brought to you by %(brandname)s "
msgstr ""
msgstr " Запрошення отримане від %(brandname)s "
+1 -1
View File
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "conversations"
version = "0.0.1"
version = "0.0.3"
authors = [{ "name" = "DINUM", "email" = "dev@mail.numerique.gouv.fr" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "app-conversations",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"scripts": {
"dev": "next dev",
@@ -5,6 +5,7 @@
* @property {string} email - The email of the user.
* @property {string} name - The name of the user.
* @property {string} language - The language of the user. e.g. 'en-us', 'fr-fr', 'de-de'.
* @property {string} sub - The identity provider sub.
*/
export interface User {
id: string;
@@ -13,4 +14,5 @@ export interface User {
short_name: string;
language?: string;
allow_conversation_analytics: boolean;
sub?: string;
}
@@ -87,6 +87,12 @@ export const ActivationPage = () => {
e.preventDefault();
setError(null);
// Verify user is still authenticated before submitting
if (!authenticated) {
void router.push('/');
return;
}
if (!code.trim()) {
setError(t('Please enter an activation code'));
return;
@@ -135,6 +141,12 @@ export const ActivationPage = () => {
};
const handleNotificationRegister = () => {
// Verify user is still authenticated before registering
if (!authenticated) {
void router.push('/');
return;
}
void registerNotification(undefined, {
onSuccess: () => {
showToast('success', t('You will be notified!'));
@@ -39,7 +39,7 @@ jest.mock('next/router', () => ({
}),
}));
const dummyUser = { id: '123', email: 'test@example.com' };
const dummyUser = { id: '123', email: 'test@example.com', sub: 'test-sub' };
describe('useAuth hook - trackEvent effect', () => {
beforeEach(() => {
@@ -63,6 +63,7 @@ describe('useAuth hook - trackEvent effect', () => {
eventName: 'user',
id: dummyUser.id,
email: dummyUser.email,
sub: dummyUser.sub,
});
});
});
@@ -31,6 +31,7 @@ export const useAuth = () => {
eventName: 'user',
id: user?.id || '',
email: user?.email || '',
sub: user?.sub,
});
setHasTracked(true);
}
@@ -0,0 +1,88 @@
<svg width="118" height="86" viewBox="0 0 118 86" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_d_13649_715)">
<g filter="url(#filter1_d_13649_715)">
<g clip-path="url(#clip0_13649_715)">
<rect x="67.1685" y="17.71" width="37.9734" height="30.9413" rx="4.96294" transform="rotate(15.4037 67.1685 17.71)" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M70.7995 26.0047C70.9944 25.2975 71.7257 24.8821 72.4329 25.0769L83.2801 28.0655C83.9874 28.2604 84.4027 28.9917 84.2079 29.6989C84.013 30.4062 83.2817 30.8215 82.5745 30.6267L71.7273 27.6381C71.02 27.4432 70.6047 26.7119 70.7995 26.0047Z" fill="#AE6257"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M70.7995 26.0047C70.9944 25.2975 71.7257 24.8821 72.4329 25.0769L83.2801 28.0655C83.9874 28.2604 84.4027 28.9917 84.2079 29.6989C84.013 30.4062 83.2817 30.8215 82.5745 30.6267L71.7273 27.6381C71.02 27.4432 70.6047 26.7119 70.7995 26.0047Z" fill="#F6F8F9" fill-opacity="0.15"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M69.3049 31.428C69.4998 30.7208 70.231 30.3054 70.9383 30.5003L93.9886 36.851C94.6958 37.0459 95.1112 37.7772 94.9164 38.4844C94.7215 39.1916 93.9902 39.607 93.283 39.4122L70.2327 33.0614C69.5254 32.8666 69.11 32.1353 69.3049 31.428Z" fill="#AE6257"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M69.3049 31.428C69.4998 30.7208 70.231 30.3054 70.9383 30.5003L93.9886 36.851C94.6958 37.0459 95.1112 37.7772 94.9164 38.4844C94.7215 39.1916 93.9902 39.607 93.283 39.4122L70.2327 33.0614C69.5254 32.8666 69.11 32.1353 69.3049 31.428Z" fill="#F6F8F9" fill-opacity="0.8"/>
</g>
<rect x="67.4896" y="18.2754" width="37.0538" height="30.0217" rx="4.50314" transform="rotate(15.4037 67.4896 18.2754)" stroke="#AE6257" stroke-width="0.919604"/>
<rect x="67.4896" y="18.2754" width="37.0538" height="30.0217" rx="4.50314" transform="rotate(15.4037 67.4896 18.2754)" stroke="#F6F8F9" stroke-opacity="0.8" stroke-width="0.919604"/>
</g>
<g filter="url(#filter2_d_13649_715)">
<g clip-path="url(#clip1_13649_715)">
<rect x="13.6865" y="22.7539" width="30.5799" height="40.7732" rx="4.44697" transform="rotate(-15.6072 13.6865 22.7539)" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.5742 30.4375C20.406 29.8351 20.7579 29.2102 21.3604 29.042L31.1778 26.2995C31.7803 26.1312 32.4051 26.4832 32.5734 27.0857C32.7417 27.6881 32.3897 28.3129 31.7873 28.4812L21.9698 31.2236C21.3673 31.3919 20.7425 31.04 20.5742 30.4375Z" fill="#3677CC"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.5742 30.4375C20.406 29.8351 20.7579 29.2102 21.3604 29.042L31.1778 26.2995C31.7803 26.1312 32.4051 26.4832 32.5734 27.0857C32.7417 27.6881 32.3897 28.3129 31.7873 28.4812L21.9698 31.2236C21.3673 31.3919 20.7425 31.04 20.5742 30.4375Z" fill="#F6F8F9" fill-opacity="0.15"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.6045 34.127C21.4362 33.5245 21.7882 32.8997 22.3906 32.7314L40.8655 27.5706C41.468 27.4023 42.0928 27.7543 42.261 28.3567C42.4293 28.9592 42.0774 29.584 41.4749 29.7523L23.0001 34.9131C22.3976 35.0814 21.7728 34.7294 21.6045 34.127ZM22.5187 37.3995C22.3504 36.797 22.7023 36.1722 23.3048 36.0039L41.7796 30.8431C42.3821 30.6748 43.0069 31.0268 43.1752 31.6292C43.3435 32.2317 42.9915 32.8565 42.3891 33.0248L23.9142 38.1856C23.3118 38.3539 22.6869 38.0019 22.5187 37.3995ZM23.4328 40.6719C23.2645 40.0695 23.6165 39.4447 24.2189 39.2764L42.6938 34.1156C43.2962 33.9473 43.921 34.2993 44.0893 34.9017C44.2576 35.5042 43.9057 36.129 43.3032 36.2973L24.8283 41.4581C24.2259 41.6263 23.6011 41.2744 23.4328 40.6719ZM24.3469 43.9444C24.1787 43.342 24.5306 42.7172 25.1331 42.5489L43.6079 37.3881C44.2104 37.2198 44.8352 37.5718 45.0035 38.1742C45.1718 38.7767 44.8198 39.4015 44.2174 39.5698L25.7425 44.7305C25.14 44.8988 24.5152 44.5469 24.3469 43.9444Z" fill="#3677CC"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.6045 34.127C21.4362 33.5245 21.7882 32.8997 22.3906 32.7314L40.8655 27.5706C41.468 27.4023 42.0928 27.7543 42.261 28.3567C42.4293 28.9592 42.0774 29.584 41.4749 29.7523L23.0001 34.9131C22.3976 35.0814 21.7728 34.7294 21.6045 34.127ZM22.5187 37.3995C22.3504 36.797 22.7023 36.1722 23.3048 36.0039L41.7796 30.8431C42.3821 30.6748 43.0069 31.0268 43.1752 31.6292C43.3435 32.2317 42.9915 32.8565 42.3891 33.0248L23.9142 38.1856C23.3118 38.3539 22.6869 38.0019 22.5187 37.3995ZM23.4328 40.6719C23.2645 40.0695 23.6165 39.4447 24.2189 39.2764L42.6938 34.1156C43.2962 33.9473 43.921 34.2993 44.0893 34.9017C44.2576 35.5042 43.9057 36.129 43.3032 36.2973L24.8283 41.4581C24.2259 41.6263 23.6011 41.2744 23.4328 40.6719ZM24.3469 43.9444C24.1787 43.342 24.5306 42.7172 25.1331 42.5489L43.6079 37.3881C44.2104 37.2198 44.8352 37.5718 45.0035 38.1742C45.1718 38.7767 44.8198 39.4015 44.2174 39.5698L25.7425 44.7305C25.14 44.8988 24.5152 44.5469 24.3469 43.9444Z" fill="#F6F8F9" fill-opacity="0.8"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M25.2719 47.2555C25.1036 46.653 25.4555 46.0282 26.058 45.86L44.5328 40.6992C45.1353 40.5309 45.7601 40.8828 45.9284 41.4853C46.0967 42.0877 45.7447 42.7125 45.1423 42.8808L26.6674 48.0416C26.065 48.2099 25.4401 47.8579 25.2719 47.2555ZM26.186 50.528C26.0177 49.9255 26.3697 49.3007 26.9721 49.1324L45.447 43.9716C46.0494 43.8034 46.6742 44.1553 46.8425 44.7578C47.0108 45.3602 46.6589 45.985 46.0564 46.1533L27.5815 51.3141C26.9791 51.4824 26.3543 51.1304 26.186 50.528ZM27.1001 53.8005C26.9319 53.198 27.2838 52.5732 27.8863 52.4049L46.3611 47.2441C46.9636 47.0759 47.5884 47.4278 47.7567 48.0303C47.925 48.6327 47.573 49.2575 46.9706 49.4258L28.4957 54.5866C27.8932 54.7549 27.2684 54.4029 27.1001 53.8005ZM28.0143 57.073C27.846 56.4705 28.1979 55.8457 28.8004 55.6774L47.2753 50.5166C47.8777 50.3483 48.5025 50.7003 48.6708 51.3027C48.8391 51.9052 48.4871 52.53 47.8847 52.6983L29.4098 57.8591C28.8074 58.0274 28.1826 57.6754 28.0143 57.073Z" fill="#3677CC"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M25.2719 47.2555C25.1036 46.653 25.4555 46.0282 26.058 45.86L44.5328 40.6992C45.1353 40.5309 45.7601 40.8828 45.9284 41.4853C46.0967 42.0877 45.7447 42.7125 45.1423 42.8808L26.6674 48.0416C26.065 48.2099 25.4401 47.8579 25.2719 47.2555ZM26.186 50.528C26.0177 49.9255 26.3697 49.3007 26.9721 49.1324L45.447 43.9716C46.0494 43.8034 46.6742 44.1553 46.8425 44.7578C47.0108 45.3602 46.6589 45.985 46.0564 46.1533L27.5815 51.3141C26.9791 51.4824 26.3543 51.1304 26.186 50.528ZM27.1001 53.8005C26.9319 53.198 27.2838 52.5732 27.8863 52.4049L46.3611 47.2441C46.9636 47.0759 47.5884 47.4278 47.7567 48.0303C47.925 48.6327 47.573 49.2575 46.9706 49.4258L28.4957 54.5866C27.8932 54.7549 27.2684 54.4029 27.1001 53.8005ZM28.0143 57.073C27.846 56.4705 28.1979 55.8457 28.8004 55.6774L47.2753 50.5166C47.8777 50.3483 48.5025 50.7003 48.6708 51.3027C48.8391 51.9052 48.4871 52.53 47.8847 52.6983L29.4098 57.8591C28.8074 58.0274 28.1826 57.6754 28.0143 57.073Z" fill="#F6F8F9" fill-opacity="0.8"/>
</g>
<rect x="14.2259" y="23.0577" width="29.7044" height="39.8977" rx="4.00923" transform="rotate(-15.6072 14.2259 23.0577)" stroke="#3677CC" stroke-width="0.875498"/>
<rect x="14.2259" y="23.0577" width="29.7044" height="39.8977" rx="4.00923" transform="rotate(-15.6072 14.2259 23.0577)" stroke="#F6F8F9" stroke-opacity="0.8" stroke-width="0.875498"/>
</g>
<g filter="url(#filter3_d_13649_715)">
<rect x="38.4051" y="37.3387" width="39.5447" height="32.0173" rx="5.40236" fill="#6D778C"/>
<rect x="38.4051" y="37.3387" width="39.5447" height="32.0173" rx="5.40236" fill="#F6F8F9" fill-opacity="0.975"/>
<rect x="38.4051" y="37.3387" width="39.5447" height="32.0173" rx="5.40236" stroke="#6D778C" stroke-width="1.10324"/>
<rect x="38.4051" y="37.3387" width="39.5447" height="32.0173" rx="5.40236" stroke="#F6F8F9" stroke-opacity="0.8" stroke-width="1.10324"/>
<path d="M50.8763 49.2972C51.4755 49.6412 52.1356 49.8131 52.8568 49.8131C53.5779 49.8131 54.2325 49.6412 54.8206 49.2972C55.4086 48.9422 55.8801 48.4651 56.2351 47.866C56.5902 47.2669 56.7677 46.6067 56.7677 45.8856C56.7677 45.1755 56.5902 44.5209 56.2351 43.9218C55.8801 43.3227 55.4086 42.8456 54.8206 42.4906C54.2325 42.1355 53.5779 41.958 52.8568 41.958C52.1356 41.958 51.4755 42.1355 50.8763 42.4906C50.2883 42.8456 49.8168 43.3227 49.4618 43.9218C49.1067 44.5209 48.9292 45.1755 48.9292 45.8856C48.9292 46.6067 49.1067 47.2669 49.4618 47.866C49.8168 48.4651 50.2883 48.9422 50.8763 49.2972Z" fill="#9B6F02"/>
<path d="M50.8763 49.2972C51.4755 49.6412 52.1356 49.8131 52.8568 49.8131C53.5779 49.8131 54.2325 49.6412 54.8206 49.2972C55.4086 48.9422 55.8801 48.4651 56.2351 47.866C56.5902 47.2669 56.7677 46.6067 56.7677 45.8856C56.7677 45.1755 56.5902 44.5209 56.2351 43.9218C55.8801 43.3227 55.4086 42.8456 54.8206 42.4906C54.2325 42.1355 53.5779 41.958 52.8568 41.958C52.1356 41.958 51.4755 42.1355 50.8763 42.4906C50.2883 42.8456 49.8168 43.3227 49.4618 43.9218C49.1067 44.5209 48.9292 45.1755 48.9292 45.8856C48.9292 46.6067 49.1067 47.2669 49.4618 47.866C49.8168 48.4651 50.2883 48.9422 50.8763 49.2972Z" fill="#F6F8F9" fill-opacity="0.15"/>
<path d="M47.5929 55.7846C48.3745 54.6792 48.7652 54.1265 49.2447 53.929C49.6647 53.7561 50.1308 53.7561 50.5507 53.929C51.0302 54.1265 51.4209 54.6792 52.2025 55.7846L55.0263 59.7786C56.1326 61.3434 56.6858 62.1258 56.6721 62.7805C56.6602 63.3502 56.407 63.8842 55.9822 64.2353C55.4941 64.6388 54.5699 64.6388 52.7215 64.6388H47.0739C45.2255 64.6388 44.3013 64.6388 43.8132 64.2353C43.3884 63.8842 43.1352 63.3502 43.1233 62.7805C43.1096 62.1258 43.6628 61.3434 44.7691 59.7786L47.5929 55.7846Z" fill="#5A8228"/>
<path d="M47.5929 55.7846C48.3745 54.6792 48.7652 54.1265 49.2447 53.929C49.6647 53.7561 50.1308 53.7561 50.5507 53.929C51.0302 54.1265 51.4209 54.6792 52.2025 55.7846L55.0263 59.7786C56.1326 61.3434 56.6858 62.1258 56.6721 62.7805C56.6602 63.3502 56.407 63.8842 55.9822 64.2353C55.4941 64.6388 54.5699 64.6388 52.7215 64.6388H47.0739C45.2255 64.6388 44.3013 64.6388 43.8132 64.2353C43.3884 63.8842 43.1352 63.3502 43.1233 62.7805C43.1096 62.1258 43.6628 61.3434 44.7691 59.7786L47.5929 55.7846Z" fill="#F6F8F9" fill-opacity="0.55"/>
<path d="M60.0205 49.0171C60.8418 47.6462 61.2525 46.9607 61.7796 46.7263C62.2398 46.5216 62.7614 46.5216 63.2216 46.7263C63.7487 46.9607 64.1594 47.6462 64.9807 49.0171L71.586 60.0431C72.4852 61.5441 72.9348 62.2945 72.8846 62.9134C72.8409 63.4528 72.5744 63.9468 72.153 64.2689C71.6697 64.6385 70.8151 64.6385 69.106 64.6385H55.8952C54.1861 64.6385 53.3315 64.6385 52.8482 64.2689C52.4268 63.9468 52.1603 63.4528 52.1166 62.9134C52.0664 62.2945 52.516 61.5441 53.4152 60.0431L60.0205 49.0171Z" fill="#5A8228"/>
</g>
</g>
<defs>
<filter id="filter0_d_13649_715" x="0.0778322" y="0.618848" width="117.844" height="84.7633" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset/>
<feGaussianBlur stdDeviation="4.35"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.243137 0 0 0 0 0.364706 0 0 0 0 0.905882 0 0 0 0.1 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_13649_715"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_13649_715" result="shape"/>
</filter>
<filter id="filter1_d_13649_715" x="48.6245" y="6.69141" width="65.8525" height="65.853" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="2.62744"/>
<feGaussianBlur stdDeviation="2.62744"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.0941176 0 0 0 0 0.105882 0 0 0 0 0.141176 0 0 0 0.05 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_13649_715"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_13649_715" result="shape"/>
</filter>
<filter id="filter2_d_13649_715" x="3.77499" y="10.6539" width="60.2454" height="60.2454" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="2.50142"/>
<feGaussianBlur stdDeviation="2.50142"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.0941176 0 0 0 0 0.105882 0 0 0 0 0.141176 0 0 0 0.05 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_13649_715"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_13649_715" result="shape"/>
</filter>
<filter id="filter3_d_13649_715" x="27.7856" y="25.3547" width="60.7837" height="60.7837" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="3.15211"/>
<feGaussianBlur stdDeviation="3.15211"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.0941176 0 0 0 0 0.105882 0 0 0 0 0.141176 0 0 0 0.05 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_13649_715"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_13649_715" result="shape"/>
</filter>
<clipPath id="clip0_13649_715">
<rect x="67.1685" y="17.71" width="37.9734" height="30.9413" rx="4.96294" transform="rotate(15.4037 67.1685 17.71)" fill="white"/>
</clipPath>
<clipPath id="clip1_13649_715">
<rect x="13.6865" y="22.7539" width="30.5799" height="40.7732" rx="4.44697" transform="rotate(-15.6072 13.6865 22.7539)" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 14 KiB

@@ -8,6 +8,8 @@ import { LLMModel } from '@/features/chat/api/useLLMConfiguration';
import { useAnalytics } from '@/libs';
import { useResponsiveStore } from '@/stores';
import FilesIcon from '../assets/files.svg';
import { AttachmentList } from './AttachmentList';
import { ModelSelector } from './ModelSelector';
import { ScrollDown } from './ScrollDown';
@@ -128,157 +130,243 @@ export const InputChat = ({
}
}, [status, input]);
useEffect(() => {
if (!fileUploadEnabled) {
return;
}
const handleDragEnter = (e: DragEvent) => {
e.preventDefault();
if (e.dataTransfer?.types.includes('Files')) {
setIsDragActive(true);
}
};
const handleDragLeave = (e: DragEvent) => {
e.preventDefault();
// Only hide when leaving the window completely
if (!e.relatedTarget) {
setIsDragActive(false);
}
};
const handleDragOver = (e: DragEvent) => {
e.preventDefault();
};
const handleDrop = (e: DragEvent) => {
e.preventDefault();
setIsDragActive(false);
if (!fileUploadEnabled) {
return;
}
const droppedFiles = e.dataTransfer?.files;
if (droppedFiles && droppedFiles.length > 0) {
setFiles((prev) => {
const dt = new DataTransfer();
if (prev) {
Array.from(prev).forEach((f) => dt.items.add(f));
}
Array.from(droppedFiles).forEach((f) => {
if (
!Array.from(prev || []).some(
(pf) =>
pf.name === f.name &&
pf.size === f.size &&
pf.lastModified === f.lastModified,
)
) {
dt.items.add(f);
}
});
return dt.files;
});
}
};
window.addEventListener('dragenter', handleDragEnter);
window.addEventListener('dragleave', handleDragLeave);
window.addEventListener('dragover', handleDragOver);
window.addEventListener('drop', handleDrop);
return () => {
window.removeEventListener('dragenter', handleDragEnter);
window.removeEventListener('dragleave', handleDragLeave);
window.removeEventListener('dragover', handleDragOver);
window.removeEventListener('drop', handleDrop);
};
}, [fileUploadEnabled, setFiles]);
const isInputDisabled = status !== 'ready' || isUploadingFiles;
return (
<Box
$css={`
display: block;
position: relative;
opacity: ${status === 'error' ? '0.5' : '1'};
margin: auto;
width: 100%;
padding: ${isDesktop ? '0' : '0 10px'};
max-width: 750px;
`}
>
{/* Bouton de scroll vers le bas */}
{messagesLength > 1 &&
status !== 'streaming' &&
status !== 'submitted' &&
containerRef &&
onScrollToBottom && (
<Box
$css={`
<>
{isDragActive && (
<Box
$position="fixed"
$css={`
top: 0;
left: 0;
width: 100vw;
height: 100vh;
animation: fadeIn 0.3s;
z-index: 999;
background-color: rgba(255, 255, 255, 0.5);
pointer-events: all;
`}
/>
)}
<Box
$css={`
display: block;
position: relative;
opacity: ${status === 'error' ? '0.5' : '1'};
margin: auto;
width: 100%;
padding: ${isDesktop ? '0' : '0 10px'};
max-width: 750px;
`}
>
{/* Bouton de scroll vers le bas */}
{messagesLength > 1 &&
status !== 'streaming' &&
status !== 'submitted' &&
containerRef &&
onScrollToBottom && (
<Box
$css={`
position: relative;
height: 0;
width: 100%;
margin: auto;
max-width: 750px;
`}
>
<ScrollDown
onClick={onScrollToBottom}
containerRef={containerRef}
/>
</Box>
)}
{/* Message de bienvenue */}
{messagesLength === 0 && (
<Box
$padding={{ all: 'base', bottom: 'md' }}
$align="center"
$margin={{ horizontal: 'base', bottom: 'md', top: '-105px' }}
>
<ScrollDown
onClick={onScrollToBottom}
containerRef={containerRef}
/>
<Text as="h2" $size="xl" $weight="600" $margin={{ all: '0' }}>
{t('What is on your mind?')}
</Text>
</Box>
)}
{/* Message de bienvenue */}
{messagesLength === 0 && (
<Box
$padding={{ all: 'base', bottom: 'md' }}
$align="center"
$margin={{ horizontal: 'base', bottom: 'md', top: '-105px' }}
>
<Text as="h2" $size="xl" $weight="600" $margin={{ all: '0' }}>
{t('What is on your mind?')}
</Text>
</Box>
)}
<form
onSubmit={handleSubmit}
onDragOver={(e) => {
e.preventDefault();
setIsDragActive(fileUploadEnabled);
}}
onDragLeave={(e) => {
e.preventDefault();
setIsDragActive(false);
}}
onDrop={(e) => {
e.preventDefault();
setIsDragActive(false);
if (!fileUploadEnabled) {
return;
}
if (e.dataTransfer.files?.length) {
setFiles((prev) => {
const dt = new DataTransfer();
if (prev) {
Array.from(prev).forEach((f) => dt.items.add(f));
}
Array.from(e.dataTransfer.files).forEach((f) => {
if (
!Array.from(prev || []).some(
(pf) =>
pf.name === f.name &&
pf.size === f.size &&
pf.lastModified === f.lastModified,
)
) {
dt.items.add(f);
}
});
return dt.files;
});
}
}}
style={{ width: '100%' }}
>
<Box $padding={{ bottom: `${isDesktop ? 'base' : ''}` }}>
<Box
$flex={1}
$radius="12px"
$position="relative"
$background="white"
$css={`
box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
<form
onSubmit={handleSubmit}
onDragOver={(e) => {
e.preventDefault();
setIsDragActive(fileUploadEnabled);
}}
onDragLeave={(e) => {
e.preventDefault();
setIsDragActive(false);
}}
onDrop={(e) => {
e.preventDefault();
// File handling is now done by global handler
}}
style={{ width: '100%' }}
>
<Box $padding={{ bottom: `${isDesktop ? 'base' : ''}` }}>
<Box
$flex={1}
$radius="12px"
$position="relative"
$background="white"
$css={`
box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
border-radius: 12px;
border: ${
isDragActive
? '2px dashed var(--c--theme--colors--primary-400)'
: '1px solid var(--c--theme--colors--greyscale-200)'
};
border: 1px solid var(--c--theme--colors--greyscale-200);
position: relative;
background: white;
transition: all 0.2s ease;
`}
>
<textarea
ref={textareaRef}
value={input ?? ''}
name="inputchat-textarea"
onChange={(e) => {
handleInputChange(e);
const textarea = e.target as HTMLTextAreaElement;
textarea.style.height = 'auto';
const newHeight = Math.min(textarea.scrollHeight, 200);
textarea.style.height = `${newHeight}px`;
textarea.focus();
}}
disabled={isInputDisabled}
rows={1}
style={{
padding: '1rem 1.5rem',
background: 'transparent',
outline: 'none',
fontSize: '1rem',
border: 'none',
resize: 'none',
fontFamily: 'inherit',
minHeight: '64px',
maxHeight: '200px',
overflowY: 'auto',
transition: 'all 0.2s ease',
borderRadius: '12px',
color: 'var(--c--theme--colors--greyscale-800)',
lineHeight: '1.5',
}}
onKeyDown={(e) => {
if (e.key === 'Enter' && !e.ctrlKey && !e.shiftKey) {
e.preventDefault();
>
{isDragActive && (
<Box
$position="absolute"
$align="center"
$direction="row"
$justify="center"
$gap="1rem"
$css={`
top: -1px; left: -1px;
border-radius: 12px;
z-index: 1001;
background-color: #EDF0FF;
width: 100%;
height: 100%;
outline: 2px solid #90A7FF;
box-shadow: 0 0 64px 0 rgba(62, 93, 231, 0.25);
`}
>
<FilesIcon />
<Box>
<Text $weight="700" $color="#223E9E">
{t('Add file')}
</Text>
<Text $weight="400" $color="#223E9E">
{t('To add a file to the conversation, drop it here.')}
</Text>
</Box>
</Box>
)}
<textarea
ref={textareaRef}
value={input ?? ''}
name="inputchat-textarea"
onChange={(e) => {
handleInputChange(e);
const textarea = e.target as HTMLTextAreaElement;
textarea.style.height = '0';
e.currentTarget.form?.requestSubmit?.();
textarea.style.height = 'auto';
const newHeight = Math.min(textarea.scrollHeight, 200);
textarea.style.height = `${newHeight}px`;
textarea.focus();
}
}}
/>
}}
disabled={isInputDisabled}
rows={1}
style={{
padding: '1rem 1.5rem',
background: 'transparent',
outline: 'none',
fontSize: '1rem',
border: 'none',
resize: 'none',
fontFamily: 'inherit',
minHeight: '64px',
maxHeight: '200px',
overflowY: 'auto',
transition: 'all 0.2s ease',
borderRadius: '12px',
color: 'var(--c--theme--colors--greyscale-800)',
lineHeight: '1.5',
}}
onKeyDown={(e) => {
if (e.key === 'Enter' && !e.ctrlKey && !e.shiftKey) {
e.preventDefault();
const textarea = e.target as HTMLTextAreaElement;
textarea.style.height = '0';
e.currentTarget.form?.requestSubmit?.();
textarea.focus();
}
}}
/>
{!input && (
<Box
$css={`
{!input && (
<Box
$css={`
position: absolute;
top: 1rem;
left: 1.5rem;
@@ -291,130 +379,132 @@ export const InputChat = ({
line-height: 1.5;
overflow: hidden;
`}
>
<Box
$css={`
>
<Box
$css={`
display: flex;
flex-direction: column;
height: ${(suggestions.length + 1) * 100}%;
transform: translateY(-${currentSuggestionIndex * (100 / (suggestions.length + 1))}%);
transition: ${isResetting ? 'none' : 'transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)'};
`}
>
{[...suggestions, suggestions[0]].map((suggestion, index) => (
<Box
key={index}
$css={`
>
{[...suggestions, suggestions[0]].map(
(suggestion, index) => (
<Box
key={index}
$css={`
height: calc(100% / ${suggestions.length + 1});
flex-shrink: 0;
white-space: nowrap;
display: flex;
justify-content: flex-start;
`}
>
{suggestion}
</Box>
))}
>
{suggestion}
</Box>
),
)}
</Box>
</Box>
</Box>
)}
)}
<input
accept={conf?.chat_upload_accept}
type="file"
multiple
ref={fileInputRef}
style={{ display: 'none' }}
onChange={(e) => {
const fileList = e.target.files;
if (!fileList) {
return;
}
setFiles((prev) => {
const dt = new DataTransfer();
if (prev) {
Array.from(prev).forEach((f: File) => dt.items.add(f));
<input
accept={conf?.chat_upload_accept}
type="file"
multiple
ref={fileInputRef}
style={{ display: 'none' }}
onChange={(e) => {
const fileList = e.target.files;
if (!fileList) {
return;
}
Array.from(fileList).forEach((f: File) => {
if (
!Array.from(prev || []).some(
(pf) =>
pf.name === f.name &&
pf.size === f.size &&
pf.lastModified === f.lastModified,
)
) {
dt.items.add(f);
}
});
return dt.files;
});
}}
/>
{/*Aperçu des fichiers*/}
{files && files.length > 0 && (
<Box
$margin={{ horizontal: '0', bottom: 'xs', top: 'xs' }}
$padding={{ horizontal: 'base' }}
>
<AttachmentList
attachments={Array.from(files).map((file) => ({
name: file.name,
contentType: file.type,
url: URL.createObjectURL(file),
}))}
onRemove={(index) => {
setFiles((prev) => {
const dt = new DataTransfer();
Array.from(files).forEach((f, i) => {
if (i !== index) {
if (prev) {
Array.from(prev).forEach((f: File) => dt.items.add(f));
}
Array.from(fileList).forEach((f: File) => {
if (
!Array.from(prev || []).some(
(pf) =>
pf.name === f.name &&
pf.size === f.size &&
pf.lastModified === f.lastModified,
)
) {
dt.items.add(f);
}
});
setFiles(dt.files.length > 0 ? dt.files : null);
}}
isReadOnly={false}
/>
</Box>
)}
<Box
$direction="row"
$gap="sm"
$padding={{ bottom: 'base' }}
$align="space-between"
>
<Box
$flex="1"
$direction="row"
$padding={{ horizontal: 'base' }}
$gap="xs"
>
<Button
size="small"
type="button"
disabled={!fileUploadEnabled || isUploadingFiles}
onClick={() => fileInputRef.current?.click()}
aria-label={t('Add attach file')}
className="c__button--neutral attach-file-button"
icon={
<Icon
iconName="attach_file"
$theme="greyscale"
$variation="550"
$size={`${isMobile ? '24px' : '16px'}`}
/>
}
return dt.files;
});
}}
/>
{/*Aperçu des fichiers*/}
{files && files.length > 0 && (
<Box
$margin={{ horizontal: '0', bottom: 'xs', top: 'xs' }}
$padding={{ horizontal: 'base' }}
>
{!isMobile && (
<Text $theme="greyscale" $variation="550" $weight="500">
{t('Attach file')}
</Text>
)}
</Button>
<AttachmentList
attachments={Array.from(files).map((file) => ({
name: file.name,
contentType: file.type,
url: URL.createObjectURL(file),
}))}
onRemove={(index) => {
const dt = new DataTransfer();
Array.from(files).forEach((f, i) => {
if (i !== index) {
dt.items.add(f);
}
});
setFiles(dt.files.length > 0 ? dt.files : null);
}}
isReadOnly={false}
/>
</Box>
)}
<Box
$direction="row"
$gap="sm"
$padding={{ bottom: 'base' }}
$align="space-between"
>
<Box
$flex="1"
$direction="row"
$padding={{ horizontal: 'base' }}
$gap="xs"
>
<Button
size="small"
type="button"
disabled={!fileUploadEnabled || isUploadingFiles}
onClick={() => fileInputRef.current?.click()}
aria-label={t('Add attach file')}
className="c__button--neutral attach-file-button"
icon={
<Icon
iconName="attach_file"
$theme="greyscale"
$variation="550"
$size={`${isMobile ? '24px' : '16px'}`}
/>
}
>
{!isMobile && (
<Text $theme="greyscale" $variation="550" $weight="500">
{t('Attach file')}
</Text>
)}
</Button>
{onToggleWebSearch && (
<Box
$margin={{ left: '4px' }}
$css={`
{onToggleWebSearch && (
<Box
$margin={{ left: '4px' }}
$css={`
${
isMobile
? `
@@ -434,96 +524,101 @@ export const InputChat = ({
: ''
}
`}
>
<Button
size="small"
type="button"
disabled={!webSearchEnabled || isUploadingFiles}
onClick={() => {
onToggleWebSearch();
textareaRef.current?.focus();
}}
aria-label={t('Research on the web')}
className="c__button--neutral research-web-button"
icon={
<Icon
iconName="language"
$theme="greyscale"
$variation="550"
$css={`
>
<Button
size="small"
type="button"
disabled={!webSearchEnabled || isUploadingFiles}
onClick={() => {
onToggleWebSearch();
textareaRef.current?.focus();
}}
aria-label={t('Research on the web')}
className="c__button--neutral research-web-button"
icon={
<Icon
iconName="language"
$theme="greyscale"
$variation="550"
$css={`
color: ${forceWebSearch ? 'var(--c--theme--colors--primary-600) !important' : 'var(--c--theme--colors--greyscale-600)'}
`}
/>
}
>
{!isMobile && (
<Text
$theme={forceWebSearch ? 'primary' : 'greyscale'}
$variation="550"
>
{t('Research on the web')}
</Text>
)}
{isMobile && forceWebSearch && (
<Box
$direction="row"
$align="space-between"
$gap="xs"
$css={`
/>
}
>
{!isMobile && (
<Text
$theme={forceWebSearch ? 'primary' : 'greyscale'}
$variation="550"
>
{t('Research on the web')}
</Text>
)}
{isMobile && forceWebSearch && (
<Box
$direction="row"
$align="space-between"
$gap="xs"
$css={`
display: flex;
align-items: center;
line-height: 1;
`}
>
<Text
$theme="primary"
$weight="500"
$css={`
>
<Text
$theme="primary"
$weight="500"
$css={`
display: flex;
align-items: center;
`}
>
{t('Web')}
</Text>
<Icon
iconName="close"
$variation="text"
$theme="primary"
$size="md"
$css={`
>
{t('Web')}
</Text>
<Icon
iconName="close"
$variation="text"
$theme="primary"
$size="md"
$css={`
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
padding-left: 4px;
`}
/>
</Box>
)}
</Button>
</Box>
)}
</Box>
<Box $direction="row" $padding={{ horizontal: 'base' }} $gap="xs">
<Box $padding={{ horizontal: 'xs' }}>
{onModelSelect && (
<ModelSelector
selectedModel={selectedModel || null}
onModelSelect={onModelSelect}
/>
/>
</Box>
)}
</Button>
</Box>
)}
</Box>
<Box
$direction="row"
$padding={{ horizontal: 'base' }}
$gap="xs"
>
<Box $padding={{ horizontal: 'xs' }}>
{onModelSelect && (
<ModelSelector
selectedModel={selectedModel || null}
onModelSelect={onModelSelect}
/>
)}
</Box>
<SendButton
status={status}
disabled={!input || !input.trim() || isUploadingFiles}
onClick={onStop}
/>
<SendButton
status={status}
disabled={!input || !input.trim() || isUploadingFiles}
onClick={onStop}
/>
</Box>
</Box>
</Box>
</Box>
</Box>
</form>
</Box>
</form>
</Box>
</>
);
};
@@ -54,7 +54,7 @@ export const Feedback = (_props: { buttonProps?: Partial<ButtonProps> }) => {
/>
<FeedbackButton
href="https://www.tchap.gouv.fr/#/room/!eeDqhgOFDpthMyyUjK:agent.dinum.tchap.gouv.fr"
href="https://www.tchap.gouv.fr/#/room/!eAHyPLdVHMxNhKAbaC:agent.dinum.tchap.gouv.fr"
icon={<TchapIcon />}
title={t('Write on Tchap')}
description={t('Direct exchange with our team')}
@@ -106,7 +106,7 @@ export const SettingsModal = ({ onClose, isOpen }: SettingsModalProps) => {
display: inline-block;
`}
target="_blank"
href="https://docs.numerique.gouv.fr/docs/f307df3d-275c-4e0b-b53f-3d20052be8be/"
href="https://docs.numerique.gouv.fr/docs/53d1dfb9-481d-4a68-b75c-7208c03d4dec/"
>
<Text
$css={`
@@ -1,9 +1,6 @@
{
"de": { "translation": { "ABC-1234-XY": "ABC-1234-XY" } },
"en": { "translation": { "Login": "Login", "Logout": "Logout" } },
"nl": { "translation": { "Login": "Inloggen", "Logout": "Uitloggen" } },
"uk": { "translation": { "Login": "Увійти", "Logout": "Вийти" } },
"ru": { "translation": { "Login": "Войти", "Logout": "Выйти" } },
"de": { "translation": { "Login": "Anmelden", "Logout": "Abmelden" } },
"fr": {
"translation": {
"30 sec to tell us what you think or report a bug": "Prenez 30 secondes pour partager votre avis ou signaler un bug",
@@ -13,6 +10,7 @@
"Access is limited to people who have an invitation code. If you have one, please enter it below.": "L'accès est limité aux personnes qui ont un code d'invitation. Si vous en avez un, veuillez le saisir ci-dessous.",
"Account activated successfully!": "Compte activé avec succès !",
"Add attach file": "Ajouter une pièce jointe",
"Add file": "Ajouter un fichier",
"Allow conversation analysis": "Autoriser l'analyse de conversation",
"An error occurred. Please try again.": "Une erreur s'est produite. Veuillez réessayer.",
"Are you sure you want to delete this conversation ?": "Êtes-vous sûr de vouloir supprimer cette conversation ?",
@@ -45,6 +43,8 @@
"Failed to register for notifications. Please try again.": "Échec de l'inscription aux notifications. Veuillez réessayer.",
"Failed to send feedback": "Échec de lenvoi du commentaire",
"Failed to update settings": "Impossible de mettre à jour les paramètres",
"Failed to upload file": "Impossible de téléverser le fichier",
"Failed to upload files. Please try again.": "Le téléversement a échoué. Veuillez réessayer.",
"Feedback Négatif": "Retour négatif",
"Feedback positif": "Retour positif",
"Find recent news about...": "Trouver les dernières actualités concernant...",
@@ -64,7 +64,7 @@
"Language": "Langue",
"Learn more about data usage.": "En savoir plus sur lusage des données.",
"Load more": "Afficher plus",
"Log in to access the document.": "Connectez-vous pour accéder au document.",
"Log in to access this page.": "Connectez-vous pour accéder à cette page.",
"Login": "Connexion",
"Logo": "Logo",
"Logout": "Se déconnecter",
@@ -80,9 +80,9 @@
"Proconnect Login": "Connexion Proconnect",
"Quick search input": "Saisie de recherche rapide",
"Remove attachment": "Supprimer la pièce jointe",
"Research on the web": "Recherche sur le web\n",
"Research on the web": "Rechercher sur le web",
"Search": "Rechercher",
"Search for a chat": "Rechercher",
"Search for a chat": "Rechercher un chat",
"Search results": "Résultats de la recherche",
"Search...": "Recherche...",
"Select": "Sélectionner",
@@ -101,10 +101,13 @@
"The conversation has been deleted.": "La conversation a été supprimée.",
"The summary feature is not supported yet.": "La fonctionnalité de résumé n'est pas encore prise en charge.",
"Thinking...": "Réflexion...",
"To add a file to the conversation, drop it here.": "Pour ajouter un fichier à la conversation, déposez-le ici.",
"Turn this list into bullet points": "Transformer cette liste en liste à puces...",
"Unlock access": "Déverrouiller l'accès",
"Unlocking...": "Déverrouillage en cours...",
"Untitled conversation": "Conversation sans titre",
"Upload Error": "Erreur lors du téléversement",
"Uploading files...": "Téléversement des fichiers...",
"We'll email you at {{email}} when the public beta opens.": "Nous vous enverrons un e-mail à {{email}} lorsque la bêta publique sera ouverte.",
"We'll email you when the public beta opens.": "Nous vous enverrons un email quand la bêta publique sera ouverte.",
"Web": "Web",
@@ -112,7 +115,7 @@
"Write a short product description": "Écrire une description courte du produit...",
"Write on Tchap": "Écrire sur Tchap",
"You are on the list": "Vous êtes dans la liste",
"You do not have permission to view this document.": "Vous n'avez pas la permission de voir ce contenu.",
"You do not have permission to view this page.": "Vous navez pas la permission de voir cette page.",
"You will be notified!": "Vous serez notifié !",
"Your account is already activated.": "Votre compte est déjà activé.",
"Your sovereign AI assistant": "Votre assistant IA souverain",
@@ -120,5 +123,252 @@
"sources": "sources",
"{{productName}} Logo": "Logo {{productName}}"
}
},
"nl": { "translation": { "ABC-1234-XY": "ABC-1234-XY" } },
"ru": {
"translation": {
"30 sec to tell us what you think or report a bug": "В течение 30 секунд расскажите нам, о чём вы думаете или сообщите об ошибке",
"A privacy-first assistant built for French public teams. Natively synced with LaSuite apps to help you draft, search, and decide without leaving your workflow. Beta access is available with a referral code.": "Помощник, ориентированный на конфиденциальность, созданный для французских государственных команд. Встроенная синхронизация с приложениями LaSuite помогает составлять черновики, выполнять поиск и принимать решения, не отрываясь от рабочего процесса. Доступ к бета-версии можно получить с помощью реферального кода.",
"ABC-1234-XY": "ABC-1234-XY",
"Access Denied - Error 403": "Отказано в доступе - Ошибка 403",
"Access is limited to people who have an invitation code. If you have one, please enter it below.": "Доступ ограничен людьми с кодом приглашения. Если он у вас есть, введите его ниже.",
"Account activated successfully!": "Учётная запись успешно активирована!",
"Add attach file": "Добавить вложение",
"Add file": "Добавить файл",
"Allow conversation analysis": "Разрешить анализ бесед",
"An error occurred. Please try again.": "Произошла ошибка. Пожалуйста, повторите попытку.",
"Are you sure you want to delete this conversation ?": "Вы действительно хотите удалить эту беседу?",
"Ask a question": "Задать вопрос",
"Assistant is already available, log in to use it now.": "Помощник уже доступен, просто войдите в систему.",
"Assistant is in development: your feedback matters! Choose how to share your ideas:": "Помощник находится в разработке: ваши отзывы важны! Выберите, как поделиться своими идеями:",
"Assistant settings": "Настройки помощника",
"Attach file": "Прикрепить файл",
"Attachment summary not supported": "Сводка о вложениях не поддерживается",
"Available soon": "Скоро будет доступно",
"Cancel": "Отмена",
"Clear search": "Очистить поиск",
"Close model selector": "Закрыть выбор модели",
"Close the modal": "Закрыть это окно",
"Confirm deletion": "Подтвердите удаление",
"Content modal to delete conversation": "Подтверждение удаления беседы",
"Conversation actions": "Действия в беседе",
"Conversation analysis disabled": "Анализ бесед отключён",
"Conversation analysis enabled": "Анализ бесед включён",
"Copied": "Скопировано",
"Copy": "Копировать",
"Default": "По-умолчанию",
"Delete": "Удалить",
"Delete a conversation": "Удалить беседу",
"Delete chat": "Удалить беседу",
"Direct exchange with our team": "Прямое общение с нашей командой",
"Explore other LaSuite apps": "Посмотреть другие приложения LaSuite",
"Failed to activate account. Please try again.": "Не удалось активировать учётную запись. Пожалуйста, попробуйте снова.",
"Failed to copy": "Не удалось скопировать",
"Failed to register for notifications. Please try again.": "Не удалось зарегистрироваться для получения уведомлений. Пожалуйста, попробуйте ещё раз.",
"Failed to send feedback": "Не удалось отправить отзыв",
"Failed to update settings": "Не удалось обновить настройки",
"Failed to upload file": "Не удалось выгрузить файл",
"Failed to upload files. Please try again.": "Не удалось выгрузить файлы. Повторите попытку.",
"Feedback Négatif": "Отрицательный отзыв",
"Feedback positif": "Положительный отзыв",
"Find recent news about...": "Найти последние новости...",
"Get notified about the Public Beta.": "Получать уведомления о публичной бета-версии.",
"Get notified for the public beta": "Получать уведомления о публичной бета-версии",
"Give a quick opinion": "Оставить быстрый отзыв",
"Give feedback": "Оставить отзыв",
"History": "История",
"Home": "Главная",
"If enabled, this allows us to analyse your exchanges to improve the Assistant. If disabled, all conversations remain confidential and are not used in any way. ": "Если этот параметр включён, мы можем анализировать ваши беседы для улучшения интеллекта помощника. Если отключён, то все разговоры остаются конфиденциальными и никак не используются. ",
"Illustration": "Иллюстрация",
"Image 401": "Изображение 401",
"Image 403": "Изображение 403",
"Invalid activation code. Please check and try again.": "Неверный код активации. Пожалуйста, проверьте его и повторите попытку.",
"It seems that the page you are looking for does not exist or cannot be displayed correctly.": "Похоже, страница, которую вы ищете, не существует или не может быть правильно отображена.",
"Know more": "Подробнее",
"Language": "Язык",
"Learn more about data usage.": "Узнайте больше об использовании данных.",
"Load more": "Загрузить ещё",
"Log in to access this page.": "Войдите, чтобы получить доступ к этой странице.",
"Login": "Войти",
"Logo": "Логотип",
"Logout": "Выйти",
"New chat": "Новая беседа",
"New feedback": "Новый отзыв",
"No code? ": "Нет кода? ",
"No conversation found": "Беседы не найдены",
"Notify me": "Уведомите меня",
"Open": "Открыть",
"Open the header menu": "Открыть меню заголовка",
"Page Not Found - Error 404": "Страница не найдена - Ошибка 404",
"Please enter an activation code": "Пожалуйста, введите код активации",
"Proconnect Login": "Войти через Proconnect",
"Quick search input": "Быстрый поиск",
"Remove attachment": "Удалить вложение",
"Research on the web": "Исследование в Интернете",
"Search": "Поиск",
"Search for a chat": "Поиск беседы",
"Search results": "Результаты поиска",
"Search...": "Поиск...",
"Select": "Выбрать",
"Select model": "Выберите модель",
"Send": "Отправить",
"Settings": "Настройки",
"Show": "Показать",
"Simple chat icon": "Простой значок чата",
"Something bad happens, please retry.": "Что-то пошло не так, повторите попытку.",
"Sorry, an error occurred. Please try again.": "Извините, произошла ошибка. Пожалуйста, попробуйте ещё раз.",
"Start a new conversation.": "Начать новую беседу.",
"Start conversation": "Начать беседу",
"Stop": "Остановить",
"The Assistant is a sovereign conversational AI designed for public servants. It helps you save time on daily tasks like rephrasing, summarising, translating, or searching information. Your data never leaves France and is stored on secure, state-compliant infrastructures. It is never used for commercial purposes.": "Помощник - собеседник на основе ИИ для государственных служащих. Он поможет вам сэкономить время на ежедневных задачах, таких как перефразирование, обобщение, перевод или поиск информации. Ваши данные никогда не покидают Францию и хранятся в охраняемой государственной инфраструктуре, которая никогда не используется в коммерческих целях.",
"The Assistant is in Beta": "Помощник находится на этапе Бета-версии",
"The conversation has been deleted.": "Беседа была удалена.",
"The summary feature is not supported yet.": "Функция сводки пока не поддерживается.",
"Thinking...": "Размышление...",
"To add a file to the conversation, drop it here.": "Чтобы добавить файл в беседу, поместите его сюда.",
"Turn this list into bullet points": "Преобразовать этот список в маркированный",
"Unlock access": "Разблокировать",
"Unlocking...": "Разблокировка...",
"Untitled conversation": "Беседа без названия",
"Upload Error": "Ошибка выгрузки",
"Uploading files...": "Выгрузка файлов...",
"We'll email you at {{email}} when the public beta opens.": "Когда станет доступна публичная бета-версия, мы отправим вам электронное письмо на адрес {{email}}.",
"We'll email you when the public beta opens.": "Мы отправим вам письмо, когда станет доступна публичная бета-версия.",
"Web": "Интернет",
"What is on your mind?": "О чём вы думаете?",
"Write a short product description": "Введите краткое описание продукта",
"Write on Tchap": "Написать в Tchap",
"You are on the list": "Вы в списке",
"You do not have permission to view this page.": "У вас недостаточно прав для просмотра этой страницы.",
"You will be notified!": "Вы получите уведомление!",
"Your account is already activated.": "Ваша учётная запись уже активирована.",
"Your sovereign AI assistant": "Ваш надёжный ИИ-помощник",
"source": "источник",
"sources": "источники",
"{{productName}} Logo": "Логотип {{productName}}"
}
},
"uk": {
"translation": {
"30 sec to tell us what you think or report a bug": "30 секунд, щоб розповісти нам, що ви думаєте чи повідомити про помилку",
"A privacy-first assistant built for French public teams. Natively synced with LaSuite apps to help you draft, search, and decide without leaving your workflow. Beta access is available with a referral code.": "Помічник, що ставить на перше місце конфіденційність, створений для французьких державних команд. Вбудована синхронізація з додатками LaSuite, щоб допомогти вам складати проекти, здійснювати пошук і приймати рішення, не відволікаючись від робочого процесу. Доступ до бета-версії можна отримати за допомогою реферального коду.",
"ABC-1234-XY": "ABC-1234-XY",
"Access Denied - Error 403": "Доступ заборонений - Помилка 403",
"Access is limited to people who have an invitation code. If you have one, please enter it below.": "Доступ обмежено учасниками з кодом запрошення. Якщо у вас є один такий, будь ласка, введіть його нижче.",
"Account activated successfully!": "Обліковий запис успішно активовано!",
"Add attach file": "Додати файл вкладення",
"Add file": "Додати файл",
"Allow conversation analysis": "Дозволити аналіз розмови",
"An error occurred. Please try again.": "Сталась помилка. Спробуйте ще раз.",
"Are you sure you want to delete this conversation ?": "Ви дійсно бажаєте видалити цю розмову?",
"Ask a question": "Задати питання",
"Assistant is already available, log in to use it now.": "Помічник вже доступний, увійдіть щоб почати використання.",
"Assistant is in development: your feedback matters! Choose how to share your ideas:": "Помічник в розробці: ваші відгуки мають значення! Оберіть, як поділитися своїми ідеями:",
"Assistant settings": "Налаштування помічника",
"Attach file": "Додати файл",
"Attachment summary not supported": "Узагальнення вкладень не підтримується",
"Available soon": "Незабаром буде доступно",
"Cancel": "Скасувати",
"Clear search": "Очистити вікно пошуку",
"Close model selector": "Закрити вікно вибору моделі",
"Close the modal": "Закрити це вікно",
"Confirm deletion": "Підтвердження видалення",
"Content modal to delete conversation": "Підтвердження видалення розмови",
"Conversation actions": "Дії з розмовою",
"Conversation analysis disabled": "Аналіз розмови вимкнено",
"Conversation analysis enabled": "Аналіз розмов увімкнено",
"Copied": "Скопійовано",
"Copy": "Копіювати",
"Default": "За замовчуванням",
"Delete": "Видалити",
"Delete a conversation": "Видалити розмову",
"Delete chat": "Видалити розмову",
"Direct exchange with our team": "Пряме спілкування з нашою командою",
"Explore other LaSuite apps": "Ознайомтесь з іншими застосунками LaSuite",
"Failed to activate account. Please try again.": "Не вдалося активувати обліковий запис. Спробуйте ще раз.",
"Failed to copy": "Не вдалось скопіювати",
"Failed to register for notifications. Please try again.": "Не вдалося виконати реєстрацію для повідомлень. Будь ласка, спробуйте ще раз.",
"Failed to send feedback": "Не вдалося надіслати відгук",
"Failed to update settings": "Не вдалося оновити налаштування",
"Failed to upload file": "Не вдалося вивантажити файл",
"Failed to upload files. Please try again.": "Не вдалося вивантажити файли. Будь ласка, спробуйте ще раз.",
"Feedback Négatif": "Негативний відгук",
"Feedback positif": "Позитивний відгук",
"Find recent news about...": "Знайти останні новини про...",
"Get notified about the Public Beta.": "Отримувати повідомлення про публічну бета-версію.",
"Get notified for the public beta": "Отримувати повідомлення про публічну бета-версію",
"Give a quick opinion": "Дати швидкий відгук",
"Give feedback": "Залишити відгук",
"History": "Історія",
"Home": "Головна",
"If enabled, this allows us to analyse your exchanges to improve the Assistant. If disabled, all conversations remain confidential and are not used in any way. ": "Якщо увімкнуто, це дозволить нам аналізувати ваші розмови для покращення помічника. Якщо вимкнено, всі розмови залишаються конфіденційними та не використовуються жодним чином. ",
"Illustration": "Ілюстрація",
"Image 401": "Зображення 401",
"Image 403": "Зображення 403",
"Invalid activation code. Please check and try again.": "Невірний код активації. Будь ласка, перевірте та повторіть спробу.",
"It seems that the page you are looking for does not exist or cannot be displayed correctly.": "Схоже, що сторінка, яку ви шукаєте, не існує або не може бути показаною правильно.",
"Know more": "Докладніше",
"Language": "Мова",
"Learn more about data usage.": "Дізнатися більше про використання даних.",
"Load more": "Завантажити ще",
"Log in to access this page.": "Увійдіть, щоб отримати доступ до цієї сторінки.",
"Login": "Увійти",
"Logo": "Логотип",
"Logout": "Вийти",
"New chat": "Нова розмова",
"New feedback": "Новий відгук",
"No code? ": "Немає коду? ",
"No conversation found": "Розмови не знайдено",
"Notify me": "Нагадати мені",
"Open": "Відкрити",
"Open the header menu": "Відкрити меню заголовка",
"Page Not Found - Error 404": "Сторінку не знайдено - Помилка 404",
"Please enter an activation code": "Будь ласка, введіть код активації",
"Proconnect Login": "Увійти через Proconnect",
"Quick search input": "Швидкий пошук",
"Remove attachment": "Видалити вкладення",
"Research on the web": "Дослідження в Інтернеті",
"Search": "Пошук",
"Search for a chat": "Пошук розмови",
"Search results": "Результати пошуку",
"Search...": "Пошук...",
"Select": "Вибрати",
"Select model": "Виберіть модель",
"Send": "Відправити",
"Settings": "Налаштування",
"Show": "Показати",
"Simple chat icon": "Проста піктограма розмови",
"Something bad happens, please retry.": "Сталася помилка, спробуйте ще раз.",
"Sorry, an error occurred. Please try again.": "Вибачте, виникла помилка. Спробуйте ще раз.",
"Start a new conversation.": "Розпочати нову розмову.",
"Start conversation": "Почати розмову",
"Stop": "Зупинити",
"The Assistant is a sovereign conversational AI designed for public servants. It helps you save time on daily tasks like rephrasing, summarising, translating, or searching information. Your data never leaves France and is stored on secure, state-compliant infrastructures. It is never used for commercial purposes.": "Помічник - це розмовний ШІ, призначений для державних службовців. Він допоможе вам зберегти час в таких щоденних завданнях, як рефразування, узагальнення, переклад або пошукова інформація. Ваші дані ніколи не покидають Францію та зберігаються на захищеній державній інфраструктурі. Вони ніколи не використовуються для комерційних цілей.",
"The Assistant is in Beta": "Помічник у бета-версії",
"The conversation has been deleted.": "Розмова була видалена.",
"The summary feature is not supported yet.": "Функція узагальнення ще не підтримується.",
"Thinking...": "Мислення...",
"To add a file to the conversation, drop it here.": "Щоб додати файл до розмови, покладіть його сюди.",
"Turn this list into bullet points": "Перетворити цей список на маркований",
"Unlock access": "Розблокувати доступ",
"Unlocking...": "Розблоковування...",
"Untitled conversation": "Розмова без назви",
"Upload Error": "Помилка вивантаження",
"Uploading files...": "Вивантаження файлів...",
"We'll email you at {{email}} when the public beta opens.": "Коли стане доступна публічна бета-версія, ми надішлемо вам листа на адресу {{email}}.",
"We'll email you when the public beta opens.": "Коли стане доступна публічна бета-версія, ми надішлемо вам листа.",
"Web": "Інтернет",
"What is on your mind?": "Що у вас на думці?",
"Write a short product description": "Напишіть короткий опис продукту",
"Write on Tchap": "Написати у Tchap",
"You are on the list": "Ви є в списку",
"You do not have permission to view this page.": "У вас немає прав для перегляду цієї сторінки.",
"You will be notified!": "Ви отримаєте повідомлення!",
"Your account is already activated.": "Ваш обліковий запис вже активовано.",
"Your sovereign AI assistant": "Ваш надійний помічник з ШІ",
"source": "джерело",
"sources": "джерела",
"{{productName}} Logo": "Логотип {{productName}}"
}
}
}
@@ -7,6 +7,7 @@ type AnalyticEventUser = {
eventName: 'user';
id: string;
email: string;
sub?: string;
};
export type AnalyticEvent = AnalyticEventClick | AnalyticEventUser;
@@ -40,7 +40,7 @@ const Page: NextPageWithLayout = () => {
<Box $align="center" $gap="0.8rem">
<Text as="p" $textAlign="center" $maxWidth="350px" $theme="primary">
{t('Log in to access the document.')}
{t('Log in to access this page.')}
</Text>
<Button onClick={() => gotoLogin(false)} aria-label={t('Login')}>
@@ -48,7 +48,7 @@ const Page: NextPageWithLayout = () => {
<Box $align="center" $gap="0.8rem">
<Text as="p" $textAlign="center" $maxWidth="350px" $theme="primary">
{t('You do not have permission to view this document.')}
{t('You do not have permission to view this page.')}
</Text>
<StyledLink href="/">
@@ -1,7 +1,23 @@
import { ActivationPage } from '@/features/auth';
import { useRouter } from 'next/router';
import { useEffect } from 'react';
import { ActivationPage, useAuth } from '@/features/auth';
import { NextPageWithLayout } from '@/types/next';
const Page: NextPageWithLayout = () => {
const { authenticated, isLoading } = useAuth();
const { replace } = useRouter();
useEffect(() => {
if (!isLoading && !authenticated) {
void replace('/');
}
}, [authenticated, isLoading, replace]);
if (isLoading || !authenticated) {
return null;
}
return <ActivationPage />;
};
@@ -21,6 +21,9 @@ export class PostHogAnalytic extends AbstractAnalytic {
public trackEvent(evt: AnalyticEvent): void {
if (evt.eventName === 'user') {
posthog.identify(evt.id, { email: evt.email });
if (evt.sub) {
posthog.alias(evt.sub, evt.id);
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "app-e2e",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"scripts": {
"lint": "eslint . --ext .ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "conversations",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"workspaces": {
"packages": [
@@ -1,6 +1,6 @@
{
"name": "eslint-config-conversations",
"version": "0.0.1",
"version": "0.0.3",
"license": "MIT",
"scripts": {
"lint": "eslint --ext .js ."
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "packages-i18n",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"scripts": {
"extract-translation": "yarn extract-translation:conversations",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mail_mjml",
"version": "0.0.1",
"version": "0.0.3",
"description": "An util to generate html and text django's templates from mjml templates",
"type": "module",
"dependencies": {