perf: i18n bai

This commit is contained in:
Bai
2024-05-27 11:13:13 +08:00
parent 43215d27c5
commit a1e9382275
14 changed files with 29 additions and 19 deletions

View File

@@ -0,0 +1,15 @@
from django.utils.translation import gettext_lazy as _
from rest_framework import serializers
__all__ = [
'ToolSerializer'
]
class ToolSerializer(serializers.Serializer):
PREFIX_TITLE = _('Tool')
TOOL_USER_ENABLED = serializers.BooleanField(
label=_('User tool'), default=True,
help_text=_("If enabled, users can utilize all tools in the workspace")
)