A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
feat(roles): add image and emoji role icons (#3692)
Hampusb80ae44b7d62
diff --git a/fluxer_admin/openapi-admin.json b/fluxer_admin/openapi-admin.jsonindex 831f24dc1..7666c5a5f 100644--- a/fluxer_admin/openapi-admin.json+++ b/fluxer_admin/openapi-admin.json@@ -4444,6 +4444,72 @@]}},+ "/admin/guilds/{guild_id}/roles/{role_id}/icon": {+ "delete": {+ "operationId": "clear_admin_guild_role_icon",+ "summary": "Clear guild role icon",+ "tags": ["Admin"],+ "responses": {+ "204": {"description": "No Content"},+ "400": {+ "description": "Bad Request - The request was malformed or contained invalid data",+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}+ },+ "401": {+ "description": "Unauthorized - Authentication is required or the token is invalid",+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}+ },+ "403": {+ "description": "Forbidden - You do not have permission to perform this action",+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}+ },+ "429": {+ "description": "Too Many Requests - You are being rate limited",+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ThrottledError"}}},+ "headers": {+ "Retry-After": {+ "description": "Number of seconds to wait before retrying (only on 429)",+ "schema": {"type": "integer"}+ },+ "X-RateLimit-Limit": {+ "description": "The number of requests that can be made in the current window",+ "schema": {"type": "integer"}+ },+ "X-RateLimit-Remaining": {+ "description": "The number of remaining requests that can be made",+ "schema": {"type": "integer"}+ },+ "X-RateLimit-Reset": {+ "description": "Unix timestamp when the rate limit resets",+ "schema": {"type": "integer"}+ }+ }+ },+ "500": {+ "description": "Internal Server Error - An unexpected error occurred",+ "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}+ }+ },+ "description": "Removes the image icon and Unicode emoji from a guild role and queues the old image for deletion. Members see the change at once. Logged to audit log. Requires GUILD_UPDATE_SETTINGS permission.",+ "security": [{"adminApiKey": []}],+ "parameters": [+ {+ "name": "guild_id",+ "in": "path",+ "required": true,+ "schema": {"description": "The ID of the guild", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},+ "description": "The ID of the guild"+ },+ {+ "name": "role_id",+ "in": "path",+ "required": true,+ "schema": {"description": "The ID of the role", "allOf": [{"$ref": "#/components/schemas/SnowflakeType"}]},+ "description": "The ID of the role"+ }+ ]+ }+ },"/admin/guilds/{guild_id}/shutdowns": {"post": {"operationId": "create_admin_guild_shutdown",@@ -17644,9 +17710,29 @@"allOf": [{"$ref": "#/components/schemas/Permissions"}]},"hoist": {"type": "boolean"},- "mentionable": {"type": "boolean"}+ "mentionable": {"type": "boolean"},+ "icon": {+ "nullable": true,+ "description": "The hash of the role icon image, or null",+ "type": "string"+ },+ "unicode_emoji": {+ "nullable": true,+ "description": "The Unicode emoji used as the role icon, or null",+ "type": "string"+ }},- "required": ["id", "name", "color", "position", "permissions", "hoist", "mentionable"],+ "required": [+ "id",+ "name",+ "color",+ "position",+ "permissions",+ "hoist",+ "mentionable",+ "icon",+ "unicode_emoji"+ ],"additionalProperties": false}}diff --git a/fluxer_admin/src/api/guilds.rs b/fluxer_admin/src/api/guilds.rsindex b6194fe93..786328298 100644--- a/fluxer_admin/src/api/guilds.rs+++ b/fluxer_admin/src/api/guilds.rs@@ -178,6 +178,14 @@ impl AdminApiClient {Ok(())}+ pub async fn clear_guild_role_icon(&self, guild_id: &str, role_id: &str) -> ApiResult<()> {+ self.generated()+ .clear_admin_guild_role_icon(&snowflake(guild_id), &snowflake(role_id))+ .await+ .map_err(|e| self.generated_error(e))?;+ Ok(())+ }+pub async fn update_guild_settings(&self,guild_id: &str,diff --git a/fluxer_admin/src/api/types/common.rs b/fluxer_admin/src/api/types/common.rsindex fdf03de29..2cbc1d957 100644--- a/fluxer_admin/src/api/types/common.rs+++ b/fluxer_admin/src/api/types/common.rs@@ -277,6 +277,10 @@ pub struct GuildRoleSummary {pub permissions: String,pub hoist: bool,pub mentionable: bool,+ #[serde(default)]+ pub icon: Option<String>,+ #[serde(default)]+ pub unicode_emoji: Option<String>,}#[derive(Clone, Debug, Deserialize, Serialize)]@@ -342,3 +346,43 @@ pub struct TerminateSessionsResponse {pub struct RemoveRelationshipsResponse {pub removed_count: i32,}++#[cfg(test)]+mod tests {+ use super::*;++ #[test]+ fn role_summary_reads_icon_fields_and_defaults_them_when_absent() {+ let with_icon: GuildRoleSummary = serde_json::from_value(serde_json::json!({+ "id": "1",+ "name": "Mods",+ "color": 0,+ "position": 1,+ "permissions": "0",+ "hoist": false,+ "mentionable": false,+ "icon": "a1b2c3d4",+ "unicode_emoji": null,+ }))+ .expect("role with icon");+ assert_eq!(Some("a1b2c3d4"), with_icon.icon.as_deref());+ assert_eq!(None, with_icon.unicode_emoji);+ let round_trip: GuildRoleSummary =+ serde_json::from_value(serde_json::to_value(&with_icon).expect("serialise role"))+ .expect("role round trip");+ assert_eq!(with_icon.icon, round_trip.icon);++ let without_icon: GuildRoleSummary = serde_json::from_value(serde_json::json!({+ "id": "2",+ "name": "Plain",+ "color": 0,+ "position": 0,+ "permissions": "0",+ "hoist": false,+ "mentionable": false,+ }))+ .expect("role without icon fields");+ assert_eq!(None, without_icon.icon);+ assert_eq!(None, without_icon.unicode_emoji);+ }+}diff --git a/fluxer_admin/src/routes/guilds.rs b/fluxer_admin/src/routes/guilds.rsindex df06e560d..156fc75b2 100644--- a/fluxer_admin/src/routes/guilds.rs+++ b/fluxer_admin/src/routes/guilds.rs@@ -279,6 +279,16 @@ async fn dispatch_guild_action("Failed to clear guild fields",)}+ "clear_role_icon" => {+ let Some(role_id) = get("role_id") else {+ return FlashData::error("Role ID is required");+ };+ action_result(+ client.clear_guild_role_icon(guild_id, &role_id).await,+ "Role icon cleared",+ "Failed to clear role icon",+ )+ }"update_name" => {let Some(name) = get("name") else {return FlashData::error("Guild name is required");diff --git a/fluxer_admin/src/templates/pages/guild_detail.rs b/fluxer_admin/src/templates/pages/guild_detail.rsindex df97fc7d5..52ee8d6a8 100644--- a/fluxer_admin/src/templates/pages/guild_detail.rs+++ b/fluxer_admin/src/templates/pages/guild_detail.rs@@ -72,7 +72,9 @@ pub fn simple_tab_content() -> Markup {let guild_info = GuildInfo::from(guild.clone());match tab {- "overview" => guild_detail_tabs::overview::overview_tab(config, guild, csrf_token),+ "overview" => {+ guild_detail_tabs::overview::overview_tab(config, guild, csrf_token, admin_acls)+ }"features" => {guild_detail_tabs::features::features_tab(config, &guild_info, csrf_token, admin_acls)}@@ -103,7 +105,7 @@ pub fn simple_tab_content(csrf_token,guild_detail_tabs::emojis::GuildAssetKind::Sticker,),- _ => guild_detail_tabs::overview::overview_tab(config, guild, csrf_token),+ _ => guild_detail_tabs::overview::overview_tab(config, guild, csrf_token, admin_acls),}}diff --git a/fluxer_admin/src/templates/pages/guild_detail_tabs/overview.rs b/fluxer_admin/src/templates/pages/guild_detail_tabs/overview.rsindex 5735a51d0..19fcb13c6 100644--- a/fluxer_admin/src/templates/pages/guild_detail_tabs/overview.rs+++ b/fluxer_admin/src/templates/pages/guild_detail_tabs/overview.rs@@ -3,11 +3,12 @@use std::time::{SystemTime, UNIX_EPOCH};use crate::{- api::types::GuildDetailInfo,+ acl,+ api::types::{GuildDetailInfo, GuildRoleSummary},config::AdminConfig,templates::components::{badge::{BadgeVariant, badge},- form::{csrf_input, form_actions, submit_button},+ form::{csrf_input, danger_button, form_actions, submit_button},media::{guild_asset_url, guild_icon_url},nsfw_indicators::{adult_content_badge, channel_nsfw_state_badge, content_warning_badge},page_container::{card_with_header, detail_row},@@ -42,8 +43,37 @@ fn channel_type_label(channel_type: i32) -> &'static str {}}-pub fn overview_tab(config: &AdminConfig, guild: &GuildDetailInfo, csrf_token: &str) -> Markup {+fn role_has_icon(role: &GuildRoleSummary) -> bool {+ role.icon.is_some() || role.unicode_emoji.is_some()+}++fn role_icon(config: &AdminConfig, role: &GuildRoleSummary) -> Markup {+ let image_url = guild_asset_url(+ config,+ "role-icons",+ &role.id,+ role.icon.as_deref(),+ 32,+ true,+ );+ html! {+ @if let Some(url) = image_url {+ img src=(url) alt=(format!("Role icon, {}", role.name)) width="16" height="16"+ class="h-4 w-4 object-contain";+ } @else if let Some(emoji) = role.unicode_emoji.as_deref() {+ span class="text-sm leading-none" title=(format!("Role icon, {}", role.name)) { (emoji) }+ }+ }+}++pub fn overview_tab(+ config: &AdminConfig,+ guild: &GuildDetailInfo,+ csrf_token: &str,+ admin_acls: &[String],+) -> Markup {let base = &config.base_path;+ let can_clear_role_icons = acl::has_permission(admin_acls, acl::GUILD_UPDATE_SETTINGS);let mut sorted_channels: Vec<_> = guild.channels.iter().collect();sorted_channels.sort_by_key(|c| c.position);@@ -272,6 +302,7 @@ pub fn overview_tab(config: &AdminConfig, guild: &GuildDetailInfo, csrf_token: &border-neutral-200 bg-neutral-50 p-3" {div style=(format!("background-color: #{color_hex}"))class="h-4 w-4 rounded" {}+ (role_icon(config, role))div class="flex flex-1 flex-col gap-0" {span class="text-sm font-semibold" {(role.name)@@ -288,6 +319,14 @@ pub fn overview_tab(config: &AdminConfig, guild: &GuildDetailInfo, csrf_token: &(badge("Mentionable", BadgeVariant::Success))}}+ @if can_clear_role_icons && role_has_icon(role) {+ form method="post"+ action={(base) "/guilds/" (guild.id) "?action=clear_role_icon"} {+ (csrf_input(csrf_token))+ input type="hidden" name="role_id" value=(role.id);+ (danger_button("Clear icon"))+ }+ }}}}diff --git a/fluxer_api/src/api/admin/controllers/GuildAdminController.ts b/fluxer_api/src/api/admin/controllers/GuildAdminController.tsindex dc99c163a..662a6687b 100644--- a/fluxer_api/src/api/admin/controllers/GuildAdminController.ts+++ b/fluxer_api/src/api/admin/controllers/GuildAdminController.ts@@ -28,7 +28,12 @@ import {LookupGuildResponse,SearchGuildsResponse,} from '@fluxer/schema/src/domains/admin/AdminSchemas';-import {GuildIdParam, GuildIdUserIdParam, SuccessResponse} from '@fluxer/schema/src/domains/common/CommonParamSchemas';+import {+ GuildIdParam,+ GuildIdRoleIdParam,+ GuildIdUserIdParam,+ SuccessResponse,+} from '@fluxer/schema/src/domains/common/CommonParamSchemas';import {GuildAuditLogListQuery} from '@fluxer/schema/src/domains/guild/GuildAuditLogSchemas';const GUILD_UPDATE_ACLS = [@@ -442,6 +447,32 @@ export function GuildAdminController(app: HonoApp) {return ctx.body(null, 204);},);+ app.delete(+ '/admin/guilds/:guild_id/roles/:role_id/icon',+ RateLimitMiddleware(AdminRateLimitConfigs.ADMIN_GUILD_MODIFY),+ requireAdminACL(AdminACLs.GUILD_UPDATE_SETTINGS),+ Validator('param', GuildIdRoleIdParam),+ OpenAPI({+ operationId: 'clear_admin_guild_role_icon',+ summary: 'Clear guild role icon',+ description:+ 'Removes the image icon and Unicode emoji from a guild role and queues the old image for deletion. Members see the change at once. Logged to audit log. Requires GUILD_UPDATE_SETTINGS permission.',+ responseSchema: null,+ statusCode: 204,+ security: 'adminApiKey',+ tags: 'Admin',+ }),+ async (ctx) => {+ const adminService = ctx.get('adminService');+ const params = ctx.req.valid('param');+ await adminService.guildServiceAggregate.updateService.clearRoleIcon(+ {guild_id: params.guild_id, role_id: params.role_id},+ ctx.get('adminUserId'),+ ctx.get('auditLogReason'),+ );+ return ctx.body(null, 204);+ },+ );app.get('/admin/guilds/:guild_id/emojis',RateLimitMiddleware(AdminRateLimitConfigs.ADMIN_LOOKUP),diff --git a/fluxer_api/src/api/admin/services/guild/AdminGuildLookupService.ts b/fluxer_api/src/api/admin/services/guild/AdminGuildLookupService.tsindex 5154a4d75..b9e926eb8 100644--- a/fluxer_api/src/api/admin/services/guild/AdminGuildLookupService.ts+++ b/fluxer_api/src/api/admin/services/guild/AdminGuildLookupService.ts@@ -90,6 +90,8 @@ export class AdminGuildLookupService {permissions: r.permissions.toString(),hoist: r.isHoisted,mentionable: r.isMentionable,+ icon: r.iconHash,+ unicode_emoji: r.unicodeEmoji,})),},};diff --git a/fluxer_api/src/api/admin/services/guild/AdminGuildUpdatePropagator.ts b/fluxer_api/src/api/admin/services/guild/AdminGuildUpdatePropagator.tsindex 45b59b7ae..3615f2a2d 100644--- a/fluxer_api/src/api/admin/services/guild/AdminGuildUpdatePropagator.ts+++ b/fluxer_api/src/api/admin/services/guild/AdminGuildUpdatePropagator.ts@@ -1,11 +1,12 @@// SPDX-License-Identifier: AGPL-3.0-or-laterimport type {GuildID, UserID} from '@app/api/BrandedTypes';-import {mapGuildToGuildResponse} from '@app/api/guild/GuildModel';+import {mapGuildRoleToResponse, mapGuildToGuildResponse} from '@app/api/guild/GuildModel';import type {GuildDiscoveryRepository} from '@app/api/guild/repositories/GuildDiscoveryRepository';import type {IGatewayService} from '@app/api/infrastructure/IGatewayService';import {Logger} from '@app/api/Logger';import type {Guild} from '@app/api/models/Guild';+import type {GuildRole} from '@app/api/models/GuildRole';import {getGuildSearchService} from '@app/api/SearchFactory';import type {GuildDiscoveryContext} from '@app/api/search/guild/GuildSearchSerializer';import {DiscoveryApplicationStatus} from '@fluxer/constants/src/DiscoveryConstants';@@ -24,6 +25,14 @@ interface AdminGuildUpdateDispatchOptions {export class AdminGuildUpdatePropagator {constructor(private readonly deps: AdminGuildUpdatePropagatorDeps) {}+ async dispatchGuildRoleUpdate(guildId: GuildID, role: GuildRole): Promise<void> {+ await this.deps.gatewayService.dispatchGuild({+ guildId,+ event: 'GUILD_ROLE_UPDATE',+ data: {role: mapGuildRoleToResponse(role)},+ });+ }+async dispatchGuildUpdate(guildId: GuildID,updatedGuild: Guild,diff --git a/fluxer_api/src/api/admin/services/guild/AdminGuildUpdateService.ts b/fluxer_api/src/api/admin/services/guild/AdminGuildUpdateService.tsindex 867e8b9d4..ab87293cc 100644--- a/fluxer_api/src/api/admin/services/guild/AdminGuildUpdateService.ts+++ b/fluxer_api/src/api/admin/services/guild/AdminGuildUpdateService.ts@@ -4,7 +4,7 @@ import {mapGuildToAdminResponse} from '@app/api/admin/models/GuildTypes';import type {AdminAuditService} from '@app/api/admin/services/AdminAuditService';import {assertCustomBadgeIdsOfType} from '@app/api/admin/services/AdminBadgeService';import type {AdminGuildUpdatePropagator} from '@app/api/admin/services/guild/AdminGuildUpdatePropagator';-import {createGuildID, createUserID, type GuildID, type UserID} from '@app/api/BrandedTypes';+import {createGuildID, createRoleID, createUserID, type GuildID, type UserID} from '@app/api/BrandedTypes';import {Config} from '@app/api/Config';import type {GuildRow} from '@app/api/database/types/GuildTypes';import type {GuildDiscoveryRepository} from '@app/api/guild/repositories/GuildDiscoveryRepository';@@ -20,6 +20,7 @@ import {Logger} from '@app/api/Logger';import {DiscoveryApplicationStatus} from '@fluxer/constants/src/DiscoveryConstants';import {GuildFeatures} from '@fluxer/constants/src/GuildConstants';import {UnknownGuildError} from '@fluxer/errors/src/domains/guild/UnknownGuildError';+import {UnknownGuildRoleError} from '@fluxer/errors/src/domains/guild/UnknownGuildRoleError';import type {ClearGuildFieldsRequest,TransferGuildOwnershipRequest,@@ -196,6 +197,56 @@ export class AdminGuildUpdateService {});}+ async clearRoleIcon(+ data: {guild_id: bigint; role_id: bigint},+ adminUserId: UserID,+ auditLogReason: string | null,+ ): Promise<void> {+ const {guildRepository, entityAssetService, auditService, updatePropagator} = this.deps;+ const guildId = createGuildID(data.guild_id);+ const roleId = createRoleID(data.role_id);+ const role = await guildRepository.getRole(roleId, guildId);+ if (!role) {+ throw new UnknownGuildRoleError();+ }+ const prepared = await entityAssetService.prepareAssetUpload({+ assetType: 'role_icon',+ entityType: 'role',+ entityId: roleId,+ guildId,+ previousHash: role.iconHash,+ base64Image: null,+ errorPath: 'icon',+ });+ const updatedRole = await guildRepository.upsertRole(+ {...role.toRow(), icon_hash: null, unicode_emoji: null},+ role.toRow(),+ );+ try {+ await entityAssetService.commitAssetChange(prepared);+ } catch (error) {+ Logger.error(+ {error, guildId, previousS3Key: prepared.previousS3Key},+ 'Failed to queue cleared role icon for deletion after successful DB update',+ );+ }+ await updatePropagator.dispatchGuildRoleUpdate(guildId, updatedRole);+ await auditService.createAuditLog({+ adminUserId,+ targetType: 'guild',+ targetId: BigInt(guildId),+ action: 'clear_role_icon',+ auditLogReason,+ metadata: new Map(+ [+ ['role_id', roleId.toString()],+ ['icon_hash', role.iconHash],+ ['unicode_emoji', role.unicodeEmoji],+ ].filter((entry): entry is [string, string] => entry[1] !== null),+ ),+ });+ }+async updateGuildName(data: UpdateGuildNameRequest, adminUserId: UserID, auditLogReason: string | null) {const {guildRepository, auditService, updatePropagator} = this.deps;const guildId = createGuildID(data.guild_id);diff --git a/fluxer_api/src/api/admin/tests/audit_coverage/GuildAdminAuditCases.ts b/fluxer_api/src/api/admin/tests/audit_coverage/GuildAdminAuditCases.tsindex 45b3f56c3..506afe14a 100644--- a/fluxer_api/src/api/admin/tests/audit_coverage/GuildAdminAuditCases.ts+++ b/fluxer_api/src/api/admin/tests/audit_coverage/GuildAdminAuditCases.ts@@ -285,6 +285,27 @@ export const GuildAdminAuditCases: ReadonlyArray<AdminAuditCoverageCase> = [};},},+ {+ method: 'DELETE',+ route: '/admin/guilds/:guild_id/roles/:role_id/icon',+ async prepare({harness, admin}) {+ const guild = await createGuild(harness, admin.token, 'Audit Role Icon Guild');+ const role = await createBuilder<{id: string}>(harness, admin.token)+ .post(`/guilds/${guild.id}/roles`)+ .body({name: 'Mods', unicode_emoji: '🛡️'})+ .expect(200)+ .execute();+ return {+ request: {path: `/admin/guilds/${guild.id}/roles/${role.id}/icon`, expectStatus: 204},+ expected: {+ action: 'clear_role_icon',+ targetType: 'guild',+ targetId: guild.id,+ metadata: {role_id: role.id, unicode_emoji: '🛡️'},+ },+ };+ },+ },{method: 'GET',route: '/admin/guilds/:guild_id/emojis',diff --git a/fluxer_api/src/api/guild/GuildModel.ts b/fluxer_api/src/api/guild/GuildModel.tsindex 56a3c89c4..5ff47844b 100644--- a/fluxer_api/src/api/guild/GuildModel.ts+++ b/fluxer_api/src/api/guild/GuildModel.ts@@ -90,6 +90,8 @@ export function mapGuildRoleToResponse(role: GuildRole): GuildRoleResponse {permissions: role.permissions.toString(),hoist: role.isHoisted,mentionable: role.isMentionable,+ icon: role.iconHash,+ unicode_emoji: role.unicodeEmoji,};}diff --git a/fluxer_api/src/api/guild/controllers/GuildRoleController.ts b/fluxer_api/src/api/guild/controllers/GuildRoleController.tsindex 87ffaa957..2d6503eb6 100644--- a/fluxer_api/src/api/guild/controllers/GuildRoleController.ts+++ b/fluxer_api/src/api/guild/controllers/GuildRoleController.ts@@ -5,6 +5,7 @@ import {viewerFromCtx} from '@app/api/experiment/ChannelThreadsGate';import {LoginRequired} from '@app/api/middleware/AuthMiddleware';import {requireOAuth2ScopeForBearer} from '@app/api/middleware/OAuth2ScopeMiddleware';import {RateLimitMiddleware} from '@app/api/middleware/RateLimitMiddleware';+import {jsonAssetBodyLimit, RequestBodyLimit} from '@app/api/middleware/RequestBodyLimitMiddleware';import {OpenAPI} from '@app/api/middleware/ResponseTypeMiddleware';import {RateLimitConfigs} from '@app/api/RateLimitConfig';import type {HonoApp} from '@app/api/types/HonoEnv';@@ -43,6 +44,7 @@ export function GuildRoleController(app: HonoApp) {);app.post('/guilds/:guild_id/roles',+ RequestBodyLimit(jsonAssetBodyLimit({role_icon: 1})),RateLimitMiddleware(RateLimitConfigs.GUILD_ROLE_CREATE),LoginRequired,Validator('param', GuildIdParam),@@ -55,7 +57,7 @@ export function GuildRoleController(app: HonoApp) {security: ['botToken', 'bearerToken', 'sessionToken'],tags: ['Guilds'],description:- 'Create guild role. Requires manage_roles permission. Creates a new role with specified name, permissions, and color.',+ 'Create guild role. Requires manage_roles permission. Creates a new role with specified name, permissions, colour and an optional icon image or Unicode emoji.',}),async (ctx) => {const userId = ctx.get('user').id;@@ -127,6 +129,7 @@ export function GuildRoleController(app: HonoApp) {);app.patch('/guilds/:guild_id/roles/:role_id',+ RequestBodyLimit(jsonAssetBodyLimit({role_icon: 1})),RateLimitMiddleware(RateLimitConfigs.GUILD_ROLE_UPDATE),LoginRequired,Validator('param', GuildIdRoleIdParam),@@ -139,7 +142,7 @@ export function GuildRoleController(app: HonoApp) {security: ['botToken', 'bearerToken', 'sessionToken'],tags: ['Guilds'],description:- 'Update guild role. Requires manage_roles permission. Modifies role name, permissions, color, and other settings.',+ 'Update guild role. Requires manage_roles permission. Modifies role name, permissions, colour, icon and other settings.',}),async (ctx) => {const {guild_id, role_id} = ctx.req.valid('param');diff --git a/fluxer_api/src/api/guild/services/GuildRoleService.ts b/fluxer_api/src/api/guild/services/GuildRoleService.tsindex aec3ff7a7..de0f44b08 100644--- a/fluxer_api/src/api/guild/services/GuildRoleService.ts+++ b/fluxer_api/src/api/guild/services/GuildRoleService.ts@@ -2,6 +2,8 @@import assert from 'node:assert/strict';import {createRoleID, type GuildID, guildIdToRoleId, type RoleID, type UserID} from '@app/api/BrandedTypes';+import {valuesEqual} from '@app/api/database/CassandraVersionedUpdate';+import type {GuildRoleRow} from '@app/api/database/types/GuildTypes';import type {ThreadViewer} from '@app/api/experiment/ChannelThreadsGate';import type {GuildAuditLogService} from '@app/api/guild/GuildAuditLogService';import {mapGuildRoleToResponse} from '@app/api/guild/GuildModel';@@ -13,8 +15,10 @@ import {shouldMaskThreadPermissionBits,stripThreadPermissionBits,} from '@app/api/guild/services/ThreadPermissionBits';+import type {EntityAssetService, PreparedAssetUpload} from '@app/api/infrastructure/EntityAssetService';import type {IGatewayService} from '@app/api/infrastructure/IGatewayService';import type {ISnowflakeService} from '@app/api/infrastructure/ISnowflakeService';+import {Logger} from '@app/api/Logger';import type {LimitConfigService} from '@app/api/limits/LimitConfigService';import {resolveLimitSafe} from '@app/api/limits/LimitConfigUtils';import {createLimitMatchContext} from '@app/api/limits/LimitMatchContextBuilder';@@ -50,12 +54,21 @@ type RoleUpdateData = Partial<{position: number;hoistPosition: number | null;permissions: bigint;- iconHash: string | null;- unicodeEmoji: string | null;hoist: boolean;mentionable: boolean;}>;+interface RoleIconRequest {+ icon?: string | null;+ unicode_emoji?: string | null;+}++interface RoleIconChange {+ iconHash: string | null;+ unicodeEmoji: string | null;+ prepared: PreparedAssetUpload | null;+}+export class GuildRoleService {private async buildRoleManageCheck(guildId: GuildID,@@ -94,6 +107,7 @@ export class GuildRoleService {private readonly guildAuditLogService: GuildAuditLogService,private readonly limitConfigService: LimitConfigService,private readonly userRepository: UserRepository,+ private readonly entityAssetService: EntityAssetService,) {}async systemCreateRole(params: {@@ -175,7 +189,16 @@ export class GuildRoleService {: ((await this.guildRepository.getRole(guildIdToRoleId(guildId), guildId))?.permissions ?? DEFAULT_PERMISSIONS);const roleId = createRoleID(await this.snowflakeService.generate());const position = 1;- const role = await this.guildRepository.upsertRole({+ const iconChange =+ data.icon_source_role_id !== undefined+ ? await this.prepareRoleIconCopy({guildId, roleId, sourceRoleId: createRoleID(data.icon_source_role_id)})+ : await this.prepareRoleIcon({+ guildId,+ roleId,+ current: {iconHash: null, unicodeEmoji: null},+ data,+ });+ const role = await this.writeRoleWithIcon(iconChange.prepared, {guild_id: guildId,role_id: roleId,name: data.name,@@ -183,8 +206,8 @@ export class GuildRoleService {position,hoist_position: null,color: data.color || 0,- icon_hash: null,- unicode_emoji: null,+ icon_hash: iconChange.iconHash,+ unicode_emoji: iconChange.unicodeEmoji,hoist: false,mentionable: false,version: 1,@@ -280,7 +303,9 @@ export class GuildRoleService {throw new MissingPermissionsError();}}- const previousSnapshot = this.serializeRoleForAudit(role);+ if (role.id === guildIdToRoleId(guildId)) {+ this.rejectEveryoneRoleIcon(data);+ }const updateData = await this.buildRoleUpdateData({role,guildId,@@ -291,23 +316,43 @@ export class GuildRoleService {viewer,getMyPermissions,});- const updatedRoleData = {+ const iconChange = await this.prepareRoleIcon({guildId, roleId: role.id, current: role, data});+ const liveRole = await this.guildRepository.getRole(role.id, guildId);+ if (!liveRole) {+ await this.queueRoleIconStaleCheck(iconChange.prepared);+ throw new UnknownGuildRoleError();+ }+ const previousSnapshot = this.serializeRoleForAudit(liveRole);+ const requestedRoleData = {...role.toRow(),name: updateData.name ?? role.name,color: updateData.color ?? role.color,position: updateData.position ?? role.position,hoist_position: updateData.hoistPosition !== undefined ? updateData.hoistPosition : role.hoistPosition,permissions: updateData.permissions ?? role.permissions,- icon_hash: updateData.iconHash ?? role.iconHash,- unicode_emoji: updateData.unicodeEmoji ?? role.unicodeEmoji,+ icon_hash: iconChange.iconHash,+ unicode_emoji: iconChange.unicodeEmoji,hoist: updateData.hoist ?? role.isHoisted,mentionable: updateData.mentionable ?? role.isMentionable,};- const updatedRole = await this.guildRepository.upsertRole(updatedRoleData);+ const liveRow = liveRole.toRow();+ const updatedRole = await this.writeRoleWithIcon(+ iconChange.prepared,+ this.rebaseRoleRow(role.toRow(), requestedRoleData, liveRow),+ liveRow,+ );+ await this.commitRoleIcon(guildId, iconChange.prepared);+ await this.queueReplacedRoleIcon({+ guildId,+ roleId: role.id,+ replacedHash: liveRole.iconHash,+ newHash: updatedRole.iconHash,+ prepared: iconChange.prepared,+ });await this.dispatchGuildRoleUpdate({guildId, role: updatedRole});const changes = this.guildAuditLogService.computeChanges(previousSnapshot, this.serializeRoleForAudit(updatedRole));- if (role.permissions !== updatedRole.permissions) {- const permissionsDiff = computePermissionsDiff(role.permissions, updatedRole.permissions, {+ if (liveRole.permissions !== updatedRole.permissions) {+ const permissionsDiff = computePermissionsDiff(liveRole.permissions, updatedRole.permissions, {threads: true,});changes.push({key: 'permissions_diff', new_value: permissionsDiff});@@ -364,7 +409,19 @@ export class GuildRoleService {}}),);+ const liveRole = await this.guildRepository.getRole(role.id, guildId);await this.guildRepository.deleteRole(guildId, role.id);+ const iconHashes = new Set([role.iconHash, liveRole?.iconHash ?? null]);+ for (const iconHash of iconHashes) {+ if (!iconHash) continue;+ const {prepared} = await this.prepareRoleIcon({+ guildId,+ roleId: role.id,+ current: {iconHash, unicodeEmoji: null},+ data: {icon: null},+ });+ await this.commitRoleIcon(guildId, prepared);+ }await this.dispatchGuildRoleDelete({guildId, roleId: role.id});await this.guildAuditLogService.record({guildId,@@ -480,11 +537,9 @@ export class GuildRoleService {if (role.hoistPosition === update.hoistPosition) {continue;}- const updatedRole = await this.guildRepository.upsertRole({- ...role.toRow(),- hoist_position: update.hoistPosition,- });- changedRoles.push(updatedRole);+ await this.guildRepository.upsertRole({...role.toRow(), hoist_position: update.hoistPosition}, role.toRow());+ const updatedRole = await this.guildRepository.getRole(role.id, guildId);+ if (updatedRole) changedRoles.push(updatedRole);}if (changedRoles.length > 0) {await this.dispatchGuildRoleUpdateBulk({guildId, roles: changedRoles});@@ -526,8 +581,9 @@ export class GuildRoleService {if (role.hoistPosition === null) {continue;}- const updatedRole = await this.guildRepository.upsertRole({...role.toRow(), hoist_position: null});- changedRoles.push(updatedRole);+ await this.guildRepository.upsertRole({...role.toRow(), hoist_position: null}, role.toRow());+ const updatedRole = await this.guildRepository.getRole(role.id, guildId);+ if (updatedRole) changedRoles.push(updatedRole);}if (changedRoles.length > 0) {await this.dispatchGuildRoleUpdateBulk({guildId, roles: changedRoles});@@ -550,6 +606,147 @@ export class GuildRoleService {}}+ private rejectEveryoneRoleIcon(data: RoleIconRequest): void {+ if (data.icon != null) {+ throw InputValidationError.fromCode('icon', ValidationErrorCodes.CANNOT_SET_ICON_ON_EVERYONE_ROLE);+ }+ if (data.unicode_emoji != null) {+ throw InputValidationError.fromCode('unicode_emoji', ValidationErrorCodes.CANNOT_SET_ICON_ON_EVERYONE_ROLE);+ }+ }++ private async prepareRoleIcon(params: {+ guildId: GuildID;+ roleId: RoleID;+ current: {iconHash: string | null; unicodeEmoji: string | null};+ data: RoleIconRequest;+ }): Promise<RoleIconChange> {+ const {guildId, roleId, current, data} = params;+ let image = data.icon;+ let unicodeEmoji = data.unicode_emoji !== undefined ? data.unicode_emoji : current.unicodeEmoji;+ if (data.icon) {+ unicodeEmoji = null;+ }+ if (image === undefined && data.unicode_emoji) {+ image = null;+ }+ if (image === undefined) {+ return {iconHash: current.iconHash, unicodeEmoji, prepared: null};+ }+ if (image === null && current.iconHash === null) {+ return {iconHash: null, unicodeEmoji, prepared: null};+ }+ const prepared = await this.entityAssetService.prepareAssetUpload({+ assetType: 'role_icon',+ entityType: 'role',+ entityId: roleId,+ guildId,+ previousHash: current.iconHash,+ base64Image: image,+ errorPath: 'icon',+ });+ return {iconHash: prepared.newHash, unicodeEmoji, prepared};+ }++ private async prepareRoleIconCopy(params: {+ guildId: GuildID;+ roleId: RoleID;+ sourceRoleId: RoleID;+ }): Promise<RoleIconChange> {+ const {guildId, roleId, sourceRoleId} = params;+ const source = await this.guildRepository.getRole(sourceRoleId, guildId);+ if (!source) {+ throw new UnknownGuildRoleError();+ }+ if (!source.iconHash) {+ return {iconHash: null, unicodeEmoji: source.unicodeEmoji, prepared: null};+ }+ const prepared = await this.entityAssetService.prepareAssetCopy({+ assetType: 'role_icon',+ entityType: 'role',+ sourceEntityId: source.id,+ entityId: roleId,+ guildId,+ hash: source.iconHash,+ errorPath: 'icon_source_role_id',+ });+ return {iconHash: prepared?.newHash ?? null, unicodeEmoji: null, prepared};+ }++ private rebaseRoleRow(snapshot: GuildRoleRow, requested: GuildRoleRow, live: GuildRoleRow): GuildRoleRow {+ const rebased: Record<string, unknown> = {...live};+ const snapshotFields = snapshot as unknown as Record<string, unknown>;+ const requestedFields = requested as unknown as Record<string, unknown>;+ for (const [column, value] of Object.entries(requestedFields)) {+ if (!valuesEqual(value, snapshotFields[column])) {+ rebased[column] = value;+ }+ }+ if (+ !valuesEqual(requested.icon_hash, snapshot.icon_hash) ||+ !valuesEqual(requested.unicode_emoji, snapshot.unicode_emoji)+ ) {+ rebased.icon_hash = requested.icon_hash;+ rebased.unicode_emoji = requested.unicode_emoji;+ }+ return rebased as unknown as GuildRoleRow;+ }++ private async writeRoleWithIcon(+ prepared: PreparedAssetUpload | null,+ row: GuildRoleRow,+ oldRow?: GuildRoleRow,+ ): Promise<GuildRole> {+ try {+ return await this.guildRepository.upsertRole(row, oldRow);+ } catch (error) {+ await this.queueRoleIconStaleCheck(prepared);+ throw error;+ }+ }++ private async queueRoleIconStaleCheck(prepared: PreparedAssetUpload | null): Promise<void> {+ if (!prepared) return;+ await this.entityAssetService+ .queueUploadForStaleCheck(prepared)+ .catch((error) => Logger.error({error, s3Key: prepared.newS3Key}, 'Failed to queue role icon cleanup'));+ }++ private async queueReplacedRoleIcon(params: {+ guildId: GuildID;+ roleId: RoleID;+ replacedHash: string | null;+ newHash: string | null;+ prepared: PreparedAssetUpload | null;+ }): Promise<void> {+ const {guildId, roleId, replacedHash, newHash, prepared} = params;+ if (!replacedHash || replacedHash === newHash || replacedHash === prepared?.previousHash) return;+ try {+ const replaced = await this.entityAssetService.prepareAssetUpload({+ assetType: 'role_icon',+ entityType: 'role',+ entityId: roleId,+ guildId,+ previousHash: replacedHash,+ base64Image: null,+ errorPath: 'icon',+ });+ await this.entityAssetService.commitAssetChange(replaced);+ } catch (error) {+ Logger.error({error, guildId}, 'Failed to queue replaced role icon for deletion');+ }+ }++ private async commitRoleIcon(guildId: GuildID, prepared: PreparedAssetUpload | null): Promise<void> {+ if (!prepared) return;+ try {+ await this.entityAssetService.commitAssetChange(prepared);+ await this.entityAssetService.queueUploadForStaleCheck(prepared);+ } catch (error) {+ Logger.error({error, guildId}, 'Failed to queue role icon cleanup');+ }+ }+private async checkCanManageRole(params: {guildId: GuildID;userId: UserID;@@ -683,7 +880,11 @@ export class GuildRoleService {});const reorderedIds = targetOrder.map((r) => r.id);const reorderedRoles = this.reorderRolePositions({allRoles, reorderedIds, guildId});- const updatePromises = reorderedRoles.map((role) => this.guildRepository.upsertRole(role.toRow()));+ const updatePromises = reorderedRoles.map((role) => {+ const listed = roleMap.get(role.id);+ assert(listed !== undefined);+ return this.guildRepository.upsertRole(role.toRow(), listed.toRow());+ });await Promise.all(updatePromises);const updatedRoles = await this.guildRepository.listRoles(guildId);const changedRoles = updatedRoles.filter((role) => {diff --git a/fluxer_api/src/api/guild/services/GuildService.ts b/fluxer_api/src/api/guild/services/GuildService.tsindex 1557d6905..423359d9d 100644--- a/fluxer_api/src/api/guild/services/GuildService.ts+++ b/fluxer_api/src/api/guild/services/GuildService.ts@@ -158,6 +158,7 @@ export class GuildService {guildAuditLogService,limitConfigService,userRepository,+ entityAssetService,);this.moderation = new GuildModerationService(guildRepository,diff --git a/fluxer_api/src/api/guild/services/data/GuildOperationsService.ts b/fluxer_api/src/api/guild/services/data/GuildOperationsService.tsindex ef3ece854..bca951b2a 100644--- a/fluxer_api/src/api/guild/services/data/GuildOperationsService.ts+++ b/fluxer_api/src/api/guild/services/data/GuildOperationsService.ts@@ -111,6 +111,7 @@ import type {TemplateRole,TemplateSerializedGuild,} from '@fluxer/schema/src/domains/guild/GuildTemplateSchemas';+import {isValidSingleUnicodeEmoji} from '@fluxer/schema/src/primitives/EmojiValidators';import {extractTimestamp} from '@fluxer/snowflake/src/SnowflakeUtils';import type {IWorkerService} from '@pkgs/worker/src/contracts/IWorkerService';@@ -1111,7 +1112,8 @@ export class GuildOperationsService {hoist_position: null,color: role.color ?? 0,icon_hash: null,- unicode_emoji: role.unicode_emoji ?? null,+ unicode_emoji:+ role.unicode_emoji != null && isValidSingleUnicodeEmoji(role.unicode_emoji) ? role.unicode_emoji : null,hoist: role.hoist ?? false,mentionable: role.mentionable ?? false,version: 1,diff --git a/fluxer_api/src/api/guild/tests/GuildAuditLogRoleWriters.test.ts b/fluxer_api/src/api/guild/tests/GuildAuditLogRoleWriters.test.tsindex 180c68241..c52ab2979 100644--- a/fluxer_api/src/api/guild/tests/GuildAuditLogRoleWriters.test.ts+++ b/fluxer_api/src/api/guild/tests/GuildAuditLogRoleWriters.test.ts@@ -1,13 +1,14 @@// SPDX-License-Identifier: AGPL-3.0-or-laterimport {createTestAccount, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';-import {createGuild, createRole} from '@app/api/guild/tests/GuildTestUtils';+import {createGuild, createRole, updateRole} from '@app/api/guild/tests/GuildTestUtils';import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';import {HTTP_STATUS} from '@app/api/test/TestConstants';import {createBuilder} from '@app/api/test/TestRequestBuilder';import {AuditLogActionType} from '@fluxer/constants/src/AuditLogActionType';import {Permissions} from '@fluxer/constants/src/ChannelConstants';import type {GuildResponse} from '@fluxer/schema/src/domains/guild/GuildResponseSchemas';+import sharp from 'sharp';import {afterEach, beforeEach, describe, expect, test} from 'vitest';interface AuditLogChange {@@ -95,4 +96,29 @@ describe('Guild audit log role writers', () => {old_value: role.permissions,});});++ test('records the emoji and icon changes when a role icon switches kind', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Mods', unicode_emoji: '🛡️'});+ const created = (await listEntries(harness, owner.token, guild.id, AuditLogActionType.ROLE_CREATE)).find(+ (log) => log.target_id === role.id,+ );+ expect(created?.changes?.find((change) => change.key === 'unicode_emoji')).toEqual({+ key: 'unicode_emoji',+ new_value: '🛡️',+ });+ const updated = await updateRole(harness, owner.token, guild.id, role.id, {+ icon: `data:image/png;base64,${(+ await sharp({create: {width: 64, height: 64, channels: 3, background: '#c83232'}})+ .png()+ .toBuffer()+ ).toString('base64')}`,+ });+ const entry = (await listEntries(harness, owner.token, guild.id, AuditLogActionType.ROLE_UPDATE)).find(+ (log) => log.target_id === role.id,+ );+ expect(entry?.changes).toEqual([+ {key: 'icon_hash', old_value: null, new_value: updated.icon},+ {key: 'unicode_emoji', old_value: '🛡️', new_value: null},+ ]);+ });});diff --git a/fluxer_api/src/api/guild/tests/GuildRoleIcons.test.ts b/fluxer_api/src/api/guild/tests/GuildRoleIcons.test.tsnew file mode 100644index 000000000..ac7e2169e--- /dev/null+++ b/fluxer_api/src/api/guild/tests/GuildRoleIcons.test.ts@@ -0,0 +1,908 @@+// SPDX-License-Identifier: AGPL-3.0-or-later++import {createTestAccount, setUserACLs, type TestAccount} from '@app/api/auth/tests/AuthTestUtils';+import {Config} from '@app/api/Config';+import {GuildRepository} from '@app/api/guild/repositories/GuildRepository';+import {+ acceptInvite,+ addMemberRole,+ createChannelInvite,+ createGuild,+ createRole,+ getRoles,+ updateRole,+ updateRolePositions,+} from '@app/api/guild/tests/GuildTestUtils';+import {NoopPurgeQueue} from '@app/api/infrastructure/CachePurgeQueue';+import {EntityAssetService} from '@app/api/infrastructure/EntityAssetService';+import type {QueuedAssetDeletion} from '@app/api/infrastructure/IAssetDeletionQueue';+import {jsonAssetBodyLimit} from '@app/api/middleware/RequestBodyLimitMiddleware';+import {setInjectedGatewayService} from '@app/api/middleware/ServiceRegistry';+import {getAssetDeletionQueue} from '@app/api/middleware/ServiceSingletons';+import {type ApiTestHarness, createApiTestHarness} from '@app/api/test/ApiTestHarness';+import {NoopGatewayService} from '@app/api/test/NoopGatewayService';+import {createTestWorkerHelpers} from '@app/api/test/SyncTaskWorkerService';+import {HTTP_STATUS} from '@app/api/test/TestConstants';+import {createBuilder} from '@app/api/test/TestRequestBuilder';+import processAssetDeletionQueue from '@app/api/worker/tasks/ProcessAssetDeletionQueue';+import {clearWorkerDependencies, setWorkerDependenciesForTest} from '@app/api/worker/WorkerContext';+import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';+import {Permissions} from '@fluxer/constants/src/ChannelConstants';+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';+import type {GuildResponse} from '@fluxer/schema/src/domains/guild/GuildResponseSchemas';+import type {GuildRoleResponse} from '@fluxer/schema/src/domains/guild/GuildRoleSchemas';+import sharp from 'sharp';+import {afterEach, assert, beforeEach, describe, expect, test, vi} from 'vitest';++type GuildDispatch = Parameters<NoopGatewayService['dispatchGuild']>[0];++class RecordingGateway extends NoopGatewayService {+ readonly dispatches: Array<GuildDispatch> = [];++ override async dispatchGuild(params: GuildDispatch): Promise<void> {+ this.dispatches.push(params);+ }+}++interface ValidationErrorBody {+ code: string;+ errors?: Array<{path: string; code: string}>;+}++async function pngDataUrl(width: number, height: number, red = 200): Promise<string> {+ const buffer = await sharp({+ create: {width, height, channels: 4, background: {r: red, g: 40, b: 40, alpha: 1}},+ })+ .png()+ .toBuffer();+ return `data:image/png;base64,${buffer.toString('base64')}`;+}++function dataUrl(mime: string, buffer: Buffer): string {+ return `data:${mime};base64,${buffer.toString('base64')}`;+}++function animatedWebpDataUrl(): string {+ return dataUrl(+ 'image/webp',+ Buffer.concat([+ Buffer.from('RIFF'),+ Buffer.alloc(4),+ Buffer.from('WEBPVP8X'),+ Buffer.alloc(14),+ Buffer.from('ANIM'),+ Buffer.alloc(16),+ ]),+ );+}++function roleIconUploads(harness: ApiTestHarness): Array<string> {+ return harness.storageService.uploadObjectSpy.mock.calls+ .map(([params]) => (params as {key: string}).key)+ .filter((key) => key.startsWith('role-icons/'));+}++async function drainDeletionQueue(): Promise<Array<QueuedAssetDeletion>> {+ return getAssetDeletionQueue().getBatch(100);+}++async function runDeletionWorker(harness: ApiTestHarness): Promise<void> {+ setWorkerDependenciesForTest({+ assetDeletionQueue: getAssetDeletionQueue(),+ purgeQueue: new NoopPurgeQueue(),+ storageService: harness.storageService,+ guildRepository: new GuildRepository(),+ });+ try {+ await processAssetDeletionQueue({}, createTestWorkerHelpers());+ } finally {+ clearWorkerDependencies();+ }+}++function storedRoleIconKeys(harness: ApiTestHarness, roleId: string): Array<string> {+ return roleIconUploads(harness)+ .concat(harness.storageService.getCopiedObjects().map((entry) => entry.destinationKey))+ .filter((key, index, keys) => key.startsWith(`role-icons/${roleId}/`) && keys.indexOf(key) === index)+ .filter((key) => harness.storageService.hasObject(Config.s3.buckets.cdn, key));+}++describe('Guild role icons', () => {+ let harness: ApiTestHarness;+ let gateway: RecordingGateway;+ let owner: TestAccount;+ let guild: GuildResponse;++ beforeEach(async () => {+ harness = await createApiTestHarness();+ gateway = new RecordingGateway();+ setInjectedGatewayService(gateway);+ await harness.resetData();+ owner = await createTestAccount(harness);+ guild = await createGuild(harness, owner.token, 'Role Icon Guild');+ harness.storageService.uploadObjectSpy.mockClear();+ });++ afterEach(async () => {+ await harness?.shutdown();+ });++ async function addMemberWithRole(roleId: string): Promise<TestAccount> {+ const member = await createTestAccount(harness);+ const invite = await createChannelInvite(harness, owner.token, guild.system_channel_id!);+ await acceptInvite(harness, member.token, invite.code);+ await addMemberRole(harness, owner.token, guild.id, member.userId, roleId);+ return member;+ }++ async function expectRoleIconError(+ token: string,+ body: Record<string, unknown>,+ path: string,+ code: string,+ roleId?: string,+ ): Promise<void> {+ const builder = createBuilder<ValidationErrorBody>(harness, token);+ const request = roleId+ ? builder.patch(`/guilds/${guild.id}/roles/${roleId}`)+ : builder.post(`/guilds/${guild.id}/roles`);+ const json = await request+ .body(roleId ? body : {name: 'Rejected', ...body})+ .expect(HTTP_STATUS.BAD_REQUEST, APIErrorCodes.INVALID_FORM_BODY)+ .execute();+ expect(json.errors?.[0]).toMatchObject({path, code});+ }++ describe('create', () => {+ test('stores an uploaded image and returns its hash', async () => {+ const role = await createRole(harness, owner.token, guild.id, {+ name: 'Admin',+ icon: await pngDataUrl(64, 64),+ });+ expect(role.icon).toMatch(/^[0-9a-f]{8}$/);+ expect(role.unicode_emoji).toBeNull();+ expect(roleIconUploads(harness)).toEqual([`role-icons/${role.id}/${role.icon}`]);+ });++ test('stores a Unicode emoji', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Mods', unicode_emoji: '🛡️'});+ expect(role).toMatchObject({icon: null, unicode_emoji: '🛡️'});+ expect(roleIconUploads(harness)).toEqual([]);+ });++ test('returns both keys as null when no icon is set', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Plain'});+ expect(role).toMatchObject({icon: null, unicode_emoji: null});+ expect(Object.keys(role)).toEqual(expect.arrayContaining(['icon', 'unicode_emoji']));+ });++ test('removes the uploaded image when the role write fails', async () => {+ const upsert = vi.spyOn(GuildRepository.prototype, 'upsertRole').mockRejectedValueOnce(new Error('write failed'));+ try {+ await createBuilder(harness, owner.token)+ .post(`/guilds/${guild.id}/roles`)+ .body({name: 'Unlucky', icon: await pngDataUrl(64, 64)})+ .expect(HTTP_STATUS.INTERNAL_SERVER_ERROR)+ .execute();+ } finally {+ upsert.mockRestore();+ }+ const [key] = roleIconUploads(harness);+ assert(key !== undefined);+ await runDeletionWorker(harness);+ expect(harness.storageService.hasObject(Config.s3.buckets.cdn, key)).toBe(false);+ const roles = await getRoles(harness, owner.token, guild.id);+ expect(roles.some((entry) => entry.name === 'Unlucky')).toBe(false);+ });++ test('rejects an image and an emoji together', async () => {+ await expectRoleIconError(+ owner.token,+ {icon: await pngDataUrl(64, 64), unicode_emoji: '🔥'},+ 'icon',+ ValidationErrorCodes.ROLE_ICON_AND_EMOJI_EXCLUSIVE,+ );+ expect(roleIconUploads(harness)).toEqual([]);+ });++ test('rejects text and multiple emoji', async () => {+ for (const value of ['abc', '🔥🔥', '🔥'.repeat(40)]) {+ await expectRoleIconError(+ owner.token,+ {unicode_emoji: value},+ 'unicode_emoji',+ ValidationErrorCodes.NOT_A_VALID_UNICODE_EMOJI,+ );+ }+ });+ });++ describe('update', () => {+ test('switches between image and emoji and queues replaced images', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Artists'});+ const withImage = await updateRole(harness, owner.token, guild.id, role.id, {icon: await pngDataUrl(64, 64)});+ expect(withImage.icon).toMatch(/^[0-9a-f]{8}$/);++ const replaced = await updateRole(harness, owner.token, guild.id, role.id, {+ icon: await pngDataUrl(64, 64, 10),+ });+ expect(replaced.icon).not.toBe(withImage.icon);++ const withEmoji = await updateRole(harness, owner.token, guild.id, role.id, {unicode_emoji: '🎨'});+ expect(withEmoji).toMatchObject({icon: null, unicode_emoji: '🎨'});++ const queued = (await drainDeletionQueue()).filter((item) => item.reason === 'asset_replaced');+ expect(queued.map((item) => item.s3Key)).toEqual([+ `role-icons/${role.id}/${withImage.icon}`,+ `role-icons/${role.id}/${replaced.icon}`,+ ]);+ for (const item of queued) {+ expect(item.staleReference).toMatchObject({+ entityType: 'role',+ assetType: 'role_icon',+ entityId: role.id,+ guildId: guild.id,+ });+ }+ });++ test('queues each new upload for a stale check so a lost concurrent write is cleaned up', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Racers'});+ const updated = await updateRole(harness, owner.token, guild.id, role.id, {icon: await pngDataUrl(64, 64)});+ const queued = await drainDeletionQueue();+ expect(queued).toHaveLength(1);+ expect(queued[0]).toMatchObject({+ s3Key: `role-icons/${role.id}/${updated.icon}`,+ reason: 'asset_upload_stale_check',+ staleReference: {+ entityType: 'role',+ assetType: 'role_icon',+ entityId: role.id,+ guildId: guild.id,+ hash: updated.icon,+ },+ });+ });++ test('removes the uploaded image when the role write fails', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Unlucky'});+ const upsert = vi.spyOn(GuildRepository.prototype, 'upsertRole').mockRejectedValueOnce(new Error('write failed'));+ try {+ await createBuilder(harness, owner.token)+ .patch(`/guilds/${guild.id}/roles/${role.id}`)+ .body({icon: await pngDataUrl(64, 64)})+ .expect(HTTP_STATUS.INTERNAL_SERVER_ERROR)+ .execute();+ } finally {+ upsert.mockRestore();+ }+ const [key] = roleIconUploads(harness);+ assert(key !== undefined);+ await runDeletionWorker(harness);+ expect(harness.storageService.hasObject(Config.s3.buckets.cdn, key)).toBe(false);+ expect(await getAssetDeletionQueue().getQueueSize()).toBe(0);+ });++ test('a failed save keeps the image that a parallel save of the same file stored', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Twice', unicode_emoji: '🎨'});+ const image = await pngDataUrl(64, 64);+ let parallel: GuildRoleResponse | undefined;+ const upsert = vi.spyOn(GuildRepository.prototype, 'upsertRole').mockImplementationOnce(async () => {+ parallel = await updateRole(harness, owner.token, guild.id, role.id, {icon: image});+ throw new Error('write failed');+ });+ try {+ await createBuilder(harness, owner.token)+ .patch(`/guilds/${guild.id}/roles/${role.id}`)+ .body({icon: image})+ .expect(HTTP_STATUS.INTERNAL_SERVER_ERROR)+ .execute();+ } finally {+ upsert.mockRestore();+ }+ assert(parallel?.icon != null);+ await runDeletionWorker(harness);+ const roles = await getRoles(harness, owner.token, guild.id);+ expect(roles.find((entry) => entry.id === role.id)?.icon).toBe(parallel.icon);+ expect(storedRoleIconKeys(harness, role.id)).toEqual([`role-icons/${role.id}/${parallel.icon}`]);+ });++ test('parallel saves with different images leave only the stored image behind', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Racers'});+ const first = await updateRole(harness, owner.token, guild.id, role.id, {icon: await pngDataUrl(64, 64, 1)});+ const writeRole = GuildRepository.prototype.upsertRole;+ const waiting: Array<() => void> = [];+ const upsert = vi.spyOn(GuildRepository.prototype, 'upsertRole').mockImplementation(async function (+ this: GuildRepository,+ ...args+ ) {+ await new Promise<void>((resolve) => {+ waiting.push(resolve);+ if (waiting.length === 2) {+ for (const release of waiting) release();+ }+ });+ return writeRole.apply(this, args);+ });+ let results: Array<GuildRoleResponse>;+ try {+ results = await Promise.all(+ [2, 3].map(async (red) =>+ updateRole(harness, owner.token, guild.id, role.id, {icon: await pngDataUrl(64, 64, red)}),+ ),+ );+ } finally {+ upsert.mockRestore();+ }+ expect(new Set(results.map((result) => result.icon)).size).toBe(2);+ await runDeletionWorker(harness);+ const current = (await getRoles(harness, owner.token, guild.id)).find((entry) => entry.id === role.id)?.icon;+ assert(current != null);+ expect(current).not.toBe(first.icon);+ expect(storedRoleIconKeys(harness, role.id)).toEqual([`role-icons/${role.id}/${current}`]);+ });++ async function duringUpload(action: () => Promise<void>): Promise<() => void> {+ const prepare = EntityAssetService.prototype.prepareAssetUpload;+ const spy = vi.spyOn(EntityAssetService.prototype, 'prepareAssetUpload').mockImplementationOnce(async function (+ this: EntityAssetService,+ ...args+ ) {+ const prepared = await prepare.apply(this, args);+ await action();+ return prepared;+ });+ return () => spy.mockRestore();+ }++ test('a rename and a reorder made during the upload survive the icon save', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Before', unicode_emoji: '🎨'});+ const other = await createRole(harness, owner.token, guild.id, {name: 'Other'});+ const restore = await duringUpload(async () => {+ await updateRole(harness, owner.token, guild.id, role.id, {name: 'Renamed'});+ await updateRolePositions(harness, owner.token, guild.id, [+ {id: role.id, position: 2},+ {id: other.id, position: 1},+ ]);+ });+ const before = (await getRoles(harness, owner.token, guild.id)).find((entry) => entry.id === role.id);+ gateway.dispatches.length = 0;+ let saved: GuildRoleResponse;+ try {+ saved = await updateRole(harness, owner.token, guild.id, role.id, {icon: await pngDataUrl(64, 64)});+ } finally {+ restore();+ }+ const stored = (await getRoles(harness, owner.token, guild.id)).find((entry) => entry.id === role.id);+ expect(stored).toMatchObject({name: 'Renamed', icon: saved.icon, unicode_emoji: null});+ expect(stored?.position).not.toBe(before?.position);+ expect(saved).toMatchObject({name: 'Renamed', position: stored?.position});+ const dispatched = gateway.dispatches+ .filter((entry) => entry.event === 'GUILD_ROLE_UPDATE')+ .map((entry) => (entry.data as {role: GuildRoleResponse}).role)+ .filter((entry) => entry.id === role.id)+ .at(-1);+ expect(dispatched).toMatchObject({name: 'Renamed', icon: saved.icon, position: stored?.position});+ });++ test('deleting the role during the upload keeps it deleted and removes the upload', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Doomed'});+ const restore = await duringUpload(async () => {+ await createBuilder(harness, owner.token)+ .delete(`/guilds/${guild.id}/roles/${role.id}`)+ .expect(HTTP_STATUS.NO_CONTENT)+ .execute();+ });+ gateway.dispatches.length = 0;+ try {+ await createBuilder(harness, owner.token)+ .patch(`/guilds/${guild.id}/roles/${role.id}`)+ .body({icon: await pngDataUrl(64, 64)})+ .expect(HTTP_STATUS.NOT_FOUND, APIErrorCodes.UNKNOWN_ROLE)+ .execute();+ } finally {+ restore();+ }+ expect((await getRoles(harness, owner.token, guild.id)).some((entry) => entry.id === role.id)).toBe(false);+ expect(gateway.dispatches.some((entry) => entry.event === 'GUILD_ROLE_UPDATE')).toBe(false);+ expect(roleIconUploads(harness)).toHaveLength(1);+ await runDeletionWorker(harness);+ expect(storedRoleIconKeys(harness, role.id)).toEqual([]);+ });++ test('an image stored by a parallel save is removed when the deletion worker runs between the two writes', async () => {+ const role = await createRole(harness, owner.token, guild.id, {+ name: 'Racers',+ icon: await pngDataUrl(64, 64, 1),+ });+ let first: GuildRoleResponse | undefined;+ let keysBetweenWrites: Array<string> = [];+ const restore = await duringUpload(async () => {+ first = await updateRole(harness, owner.token, guild.id, role.id, {icon: await pngDataUrl(64, 64, 2)});+ await runDeletionWorker(harness);+ keysBetweenWrites = storedRoleIconKeys(harness, role.id);+ });+ let last: GuildRoleResponse;+ try {+ last = await updateRole(harness, owner.token, guild.id, role.id, {icon: await pngDataUrl(64, 64, 3)});+ } finally {+ restore();+ }+ assert(first?.icon != null && last.icon != null);+ expect(last.icon).not.toBe(first.icon);+ expect(keysBetweenWrites).toContain(`role-icons/${role.id}/${first.icon}`);+ expect(keysBetweenWrites).not.toContain(`role-icons/${role.id}/${role.icon}`);+ await runDeletionWorker(harness);+ expect(storedRoleIconKeys(harness, role.id)).toEqual([`role-icons/${role.id}/${last.icon}`]);+ });++ test('an image stored by a parallel save is removed when the other save switches to an emoji after the worker ran', async () => {+ const role = await createRole(harness, owner.token, guild.id, {+ name: 'Switchers',+ icon: await pngDataUrl(64, 64, 1),+ });+ let parallel: GuildRoleResponse | undefined;+ const restore = await duringUpload(async () => {+ parallel = await updateRole(harness, owner.token, guild.id, role.id, {icon: await pngDataUrl(64, 64, 4)});+ await runDeletionWorker(harness);+ });+ let saved: GuildRoleResponse;+ try {+ saved = await updateRole(harness, owner.token, guild.id, role.id, {unicode_emoji: '🎨'});+ } finally {+ restore();+ }+ assert(parallel?.icon != null);+ expect(saved).toMatchObject({icon: null, unicode_emoji: '🎨'});+ await runDeletionWorker(harness);+ expect(storedRoleIconKeys(harness, role.id)).toEqual([]);+ });++ test.each([+ {+ label: 'a reorder',+ write: async (roleId: string, otherId: string) =>+ updateRolePositions(harness, owner.token, guild.id, [+ {id: roleId, position: 2},+ {id: otherId, position: 1},+ ]),+ },+ {+ label: 'a hoist update',+ write: async (roleId: string) => {+ await createBuilder(harness, owner.token)+ .patch(`/guilds/${guild.id}/roles/hoist-positions`)+ .body([{id: roleId, hoist_position: 3}])+ .expect(HTTP_STATUS.NO_CONTENT)+ .execute();+ },+ },+ {+ label: 'a hoist reset',+ write: async () => {+ await createBuilder(harness, owner.token)+ .delete(`/guilds/${guild.id}/roles/hoist-positions`)+ .expect(HTTP_STATUS.NO_CONTENT)+ .execute();+ },+ },+ ])('an icon saved during $label survives the position write', async ({write}) => {+ const role = await createRole(harness, owner.token, guild.id, {+ name: 'Ordered',+ icon: await pngDataUrl(64, 64, 1),+ });+ const other = await createRole(harness, owner.token, guild.id, {name: 'Other'});+ await createBuilder(harness, owner.token)+ .patch(`/guilds/${guild.id}/roles/hoist-positions`)+ .body([{id: role.id, hoist_position: 1}])+ .expect(HTTP_STATUS.NO_CONTENT)+ .execute();+ let saved: GuildRoleResponse | undefined;+ const upsertRole = GuildRepository.prototype.upsertRole;+ let armed = true;+ const spy = vi.spyOn(GuildRepository.prototype, 'upsertRole').mockImplementation(async function (+ this: GuildRepository,+ ...args+ ) {+ if (armed && String(args[0].role_id) === role.id) {+ armed = false;+ saved = await updateRole(harness, owner.token, guild.id, role.id, {icon: await pngDataUrl(64, 64, 2)});+ await runDeletionWorker(harness);+ }+ return upsertRole.apply(this, args);+ });+ gateway.dispatches.length = 0;+ try {+ await write(role.id, other.id);+ } finally {+ spy.mockRestore();+ }+ assert(saved?.icon != null);+ expect(saved.icon).not.toBe(role.icon);+ const stored = (await getRoles(harness, owner.token, guild.id)).find((entry) => entry.id === role.id);+ expect(stored?.icon).toBe(saved.icon);+ const bulk = gateway.dispatches+ .filter((entry) => entry.event === 'GUILD_ROLE_UPDATE_BULK')+ .flatMap((entry) => (entry.data as {roles: Array<GuildRoleResponse>}).roles)+ .filter((entry) => entry.id === role.id);+ expect(bulk.length).toBeGreaterThan(0);+ expect(bulk.every((entry) => entry.icon === saved?.icon)).toBe(true);+ await runDeletionWorker(harness);+ expect(storedRoleIconKeys(harness, role.id)).toEqual([`role-icons/${role.id}/${saved.icon}`]);+ });++ test('an image upload clears the emoji', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Mods', unicode_emoji: '🛡️'});+ const updated = await updateRole(harness, owner.token, guild.id, role.id, {icon: await pngDataUrl(48, 48)});+ expect(updated.unicode_emoji).toBeNull();+ expect(updated.icon).toMatch(/^[0-9a-f]{8}$/);+ });++ test('null clears and an absent field keeps the current value', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Admin', icon: await pngDataUrl(64, 64)});+ const renamed = await updateRole(harness, owner.token, guild.id, role.id, {name: 'Admins'});+ expect(renamed.icon).toBe(role.icon);++ const cleared = await updateRole(harness, owner.token, guild.id, role.id, {icon: null});+ expect(cleared.icon).toBeNull();+ expect((await drainDeletionQueue()).map((item) => item.s3Key)).toEqual([`role-icons/${role.id}/${role.icon}`]);++ const emoji = await updateRole(harness, owner.token, guild.id, role.id, {unicode_emoji: '🔥'});+ expect(emoji.unicode_emoji).toBe('🔥');+ const emojiCleared = await updateRole(harness, owner.token, guild.id, role.id, {unicode_emoji: null});+ expect(emojiCleared.unicode_emoji).toBeNull();++ const both = await updateRole(harness, owner.token, guild.id, role.id, {icon: null, unicode_emoji: null});+ expect(both).toMatchObject({icon: null, unicode_emoji: null});+ });++ test('dispatches both fields in GUILD_ROLE_UPDATE', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Mods'});+ gateway.dispatches.length = 0;+ await updateRole(harness, owner.token, guild.id, role.id, {unicode_emoji: '🛡️'});+ const dispatch = gateway.dispatches.find((entry) => entry.event === 'GUILD_ROLE_UPDATE');+ assert(dispatch !== undefined);+ expect((dispatch.data as {role: GuildRoleResponse}).role).toMatchObject({+ id: role.id,+ icon: null,+ unicode_emoji: '🛡️',+ });+ });++ test('role list includes both keys', async () => {+ await createRole(harness, owner.token, guild.id, {name: 'Mods', unicode_emoji: '🛡️'});+ const roles = await getRoles(harness, owner.token, guild.id);+ for (const role of roles) {+ expect(role).toHaveProperty('icon');+ expect(role).toHaveProperty('unicode_emoji');+ }+ expect(roles.find((role) => role.name === 'Mods')?.unicode_emoji).toBe('🛡️');+ });+ });++ describe('@everyone', () => {+ test('rejects an image without writing to storage', async () => {+ await expectRoleIconError(+ owner.token,+ {icon: await pngDataUrl(64, 64)},+ 'icon',+ ValidationErrorCodes.CANNOT_SET_ICON_ON_EVERYONE_ROLE,+ guild.id,+ );+ expect(roleIconUploads(harness)).toEqual([]);+ });++ test('rejects an emoji', async () => {+ await expectRoleIconError(+ owner.token,+ {unicode_emoji: '🔥'},+ 'unicode_emoji',+ ValidationErrorCodes.CANNOT_SET_ICON_ON_EVERYONE_ROLE,+ guild.id,+ );+ });++ test('accepts null for both fields', async () => {+ const role = await updateRole(harness, owner.token, guild.id, guild.id, {icon: null, unicode_emoji: null});+ expect(role).toMatchObject({icon: null, unicode_emoji: null});+ });+ });++ describe('permissions', () => {+ test('a member without manage roles gets 403 and nothing is uploaded', async () => {+ const plain = await createRole(harness, owner.token, guild.id, {name: 'Plain', permissions: '0'});+ const member = await addMemberWithRole(plain.id);+ await createBuilder(harness, member.token)+ .patch(`/guilds/${guild.id}/roles/${plain.id}`)+ .body({icon: await pngDataUrl(64, 64)})+ .expect(HTTP_STATUS.FORBIDDEN)+ .execute();+ await createBuilder(harness, member.token)+ .post(`/guilds/${guild.id}/roles`)+ .body({name: 'Sneaky', icon: await pngDataUrl(64, 64)})+ .expect(HTTP_STATUS.FORBIDDEN)+ .execute();+ expect(roleIconUploads(harness)).toEqual([]);+ });++ test('a manager below the role gets 403 and nothing is uploaded', async () => {+ const high = await createRole(harness, owner.token, guild.id, {name: 'High', permissions: '0'});+ const manager = await createRole(harness, owner.token, guild.id, {+ name: 'Manager',+ permissions: Permissions.MANAGE_ROLES.toString(),+ });+ await updateRolePositions(harness, owner.token, guild.id, [+ {id: high.id, position: 3},+ {id: manager.id, position: 2},+ ]);+ const member = await addMemberWithRole(manager.id);+ await createBuilder(harness, member.token)+ .patch(`/guilds/${guild.id}/roles/${high.id}`)+ .body({icon: await pngDataUrl(64, 64)})+ .expect(HTTP_STATUS.FORBIDDEN)+ .execute();+ expect(roleIconUploads(harness)).toEqual([]);+ });+ });++ describe('image limits', () => {+ test('rejects an image over 256 KiB', async () => {+ const image = Buffer.from((await pngDataUrl(64, 64)).split(',')[1], 'base64');+ const padded = Buffer.concat([image, Buffer.alloc(256 * 1024 + 1 - image.length)]);+ await expectRoleIconError(+ owner.token,+ {icon: dataUrl('image/png', padded)},+ 'icon',+ ValidationErrorCodes.IMAGE_SIZE_EXCEEDS_LIMIT,+ );+ });++ test('rejects images outside 32 to 1024 pixels', async () => {+ for (const [width, height] of [+ [16, 16],+ [2048, 2048],+ [64, 16],+ ]) {+ await expectRoleIconError(+ owner.token,+ {icon: await pngDataUrl(width, height)},+ 'icon',+ ValidationErrorCodes.IMAGE_DIMENSIONS_OUT_OF_RANGE,+ );+ }+ expect(roleIconUploads(harness)).toEqual([]);+ });++ test('rejects animated WebP, SVG and GIF', async () => {+ const svg = dataUrl('image/svg+xml', Buffer.from('<svg xmlns="http://www.w3.org/2000/svg"></svg>'));+ const gif = dataUrl(+ 'image/gif',+ Buffer.from('R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7', 'base64'),+ );+ for (const icon of [animatedWebpDataUrl(), svg, gif]) {+ await expectRoleIconError(owner.token, {icon}, 'icon', ValidationErrorCodes.INVALID_IMAGE_FORMAT);+ }+ expect(roleIconUploads(harness)).toEqual([]);+ });++ test('rejects a body over the role icon limit with 413', async () => {+ const limit = jsonAssetBodyLimit({role_icon: 1});+ const body = JSON.stringify({name: 'Huge', pad: 'a'.repeat(limit)});+ const response = await harness.requestJson({+ path: `/guilds/${guild.id}/roles`,+ method: 'POST',+ body,+ headers: {Authorization: owner.token},+ });+ expect(response.status).toBe(413);+ });+ });++ describe('copying the icon of another role', () => {+ async function createCopy(sourceRoleId: string): Promise<GuildRoleResponse> {+ return createBuilder<GuildRoleResponse>(harness, owner.token)+ .post(`/guilds/${guild.id}/roles`)+ .body({name: 'Copy', icon_source_role_id: sourceRoleId})+ .expect(HTTP_STATUS.OK)+ .execute();+ }++ test('stores its own copy of the image, which outlives the source role', async () => {+ const source = await createRole(harness, owner.token, guild.id, {name: 'Admin', icon: await pngDataUrl(64, 64)});+ await runDeletionWorker(harness);+ const copy = await createCopy(source.id);+ expect(copy).toMatchObject({icon: source.icon, unicode_emoji: null});+ const copyKey = `role-icons/${copy.id}/${copy.icon}`;+ expect(harness.storageService.hasObject(Config.s3.buckets.cdn, copyKey)).toBe(true);++ await createBuilder(harness, owner.token)+ .delete(`/guilds/${guild.id}/roles/${source.id}`)+ .expect(HTTP_STATUS.NO_CONTENT)+ .execute();+ await runDeletionWorker(harness);+ expect(harness.storageService.hasObject(Config.s3.buckets.cdn, `role-icons/${source.id}/${source.icon}`)).toBe(+ false,+ );+ expect(harness.storageService.hasObject(Config.s3.buckets.cdn, copyKey)).toBe(true);+ });++ test('changing the copy leaves the source image in place', async () => {+ const source = await createRole(harness, owner.token, guild.id, {name: 'Admin', icon: await pngDataUrl(64, 64)});+ const copy = await createCopy(source.id);+ await updateRole(harness, owner.token, guild.id, copy.id, {icon: null});+ await runDeletionWorker(harness);+ expect(storedRoleIconKeys(harness, copy.id)).toEqual([]);+ expect(storedRoleIconKeys(harness, source.id)).toEqual([`role-icons/${source.id}/${source.icon}`]);+ });++ test('copies a Unicode emoji', async () => {+ const source = await createRole(harness, owner.token, guild.id, {name: 'Mods', unicode_emoji: '🛡️'});+ expect(await createCopy(source.id)).toMatchObject({icon: null, unicode_emoji: '🛡️'});+ expect(harness.storageService.getCopiedObjects()).toEqual([]);+ });++ test('a source role without an icon gives a role without an icon', async () => {+ const source = await createRole(harness, owner.token, guild.id, {name: 'Plain'});+ expect(await createCopy(source.id)).toMatchObject({icon: null, unicode_emoji: null});+ });++ test('a source image missing from storage gives a role without an icon', async () => {+ const source = await createRole(harness, owner.token, guild.id, {name: 'Admin', icon: await pngDataUrl(64, 64)});+ await harness.storageService.deleteObject(Config.s3.buckets.cdn, `role-icons/${source.id}/${source.icon}`);+ expect(await createCopy(source.id)).toMatchObject({icon: null, unicode_emoji: null});+ });++ test('rejects a role from another community', async () => {+ const otherGuild = await createGuild(harness, owner.token, 'Other Guild');+ const foreign = await createRole(harness, owner.token, otherGuild.id, {name: 'Foreign', unicode_emoji: '🔥'});+ await createBuilder(harness, owner.token)+ .post(`/guilds/${guild.id}/roles`)+ .body({name: 'Copy', icon_source_role_id: foreign.id})+ .expect(HTTP_STATUS.NOT_FOUND, APIErrorCodes.UNKNOWN_ROLE)+ .execute();+ });++ test('rejects a source role together with a new icon', async () => {+ const source = await createRole(harness, owner.token, guild.id, {name: 'Mods', unicode_emoji: '🛡️'});+ await expectRoleIconError(+ owner.token,+ {icon_source_role_id: source.id, unicode_emoji: '🔥'},+ 'icon_source_role_id',+ ValidationErrorCodes.ROLE_ICON_SOURCE_AND_ICON_EXCLUSIVE,+ );+ });+ });++ test('deleting a role queues its icon', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Doomed', icon: await pngDataUrl(64, 64)});+ await createBuilder(harness, owner.token)+ .delete(`/guilds/${guild.id}/roles/${role.id}`)+ .expect(HTTP_STATUS.NO_CONTENT)+ .execute();+ const queued = await drainDeletionQueue();+ expect(queued).toHaveLength(1);+ expect(queued[0]).toMatchObject({+ s3Key: `role-icons/${role.id}/${role.icon}`,+ staleReference: {entityType: 'role', assetType: 'role_icon', entityId: role.id, guildId: guild.id},+ });+ });++ test.each([+ {label: 'an image', initial: {icon: 'image'}},+ {label: 'no icon', initial: {}},+ ])('an image saved while a role with $label is deleted is queued with the old one', async ({initial}) => {+ const role = await createRole(harness, owner.token, guild.id, {+ name: 'Doomed',+ ...(initial.icon ? {icon: await pngDataUrl(64, 64, 1)} : {}),+ });+ let saved: GuildRoleResponse | undefined;+ const spy = vi.spyOn(gateway, 'getMembersWithRole').mockImplementationOnce(async () => {+ saved = await updateRole(harness, owner.token, guild.id, role.id, {icon: await pngDataUrl(64, 64, 2)});+ await runDeletionWorker(harness);+ return [];+ });+ try {+ await createBuilder(harness, owner.token)+ .delete(`/guilds/${guild.id}/roles/${role.id}`)+ .expect(HTTP_STATUS.NO_CONTENT)+ .execute();+ } finally {+ spy.mockRestore();+ }+ assert(saved?.icon != null);+ const queued = await drainDeletionQueue();+ const expected = [role.icon, saved.icon]+ .filter((hash) => hash != null)+ .map((hash) => `role-icons/${role.id}/${hash}`);+ expect(new Set(queued.map((entry) => entry.s3Key))).toEqual(new Set(expected));+ await Promise.all(queued.map((entry) => getAssetDeletionQueue().requeueItem(entry)));+ await runDeletionWorker(harness);+ expect(storedRoleIconKeys(harness, role.id)).toEqual([]);+ });++ test('the guild roles RPC collection includes both keys', async () => {+ await createRole(harness, owner.token, guild.id, {name: 'Mods', unicode_emoji: '🛡️'});+ const response = await createBuilder<{data: {roles: Array<GuildRoleResponse>}}>(harness, '')+ .post('/test/rpc-session-init')+ .body({type: 'guild_collection', guild_id: guild.id, collection: 'roles'})+ .expect(HTTP_STATUS.OK)+ .execute();+ const mods = response.data.roles.find((role) => role.name === 'Mods');+ expect(mods).toMatchObject({icon: null, unicode_emoji: '🛡️'});+ for (const role of response.data.roles) {+ expect(role).toHaveProperty('icon');+ }+ });++ test('template import drops an invalid unicode_emoji', async () => {+ const imported = await createBuilder<GuildResponse>(harness, owner.token)+ .post('/guilds')+ .body({+ name: 'Template Icons',+ template: {+ name: 'Source',+ description: null,+ roles: [+ {id: 1, name: '@everyone', permissions: '0'},+ {id: 2, name: 'Valid', permissions: '0', unicode_emoji: '🔥'},+ {id: 3, name: 'Invalid', permissions: '0', unicode_emoji: 'not an emoji'},+ ],+ channels: [],+ },+ })+ .execute();+ const roles = await getRoles(harness, owner.token, imported.id);+ expect(roles.find((role) => role.name === 'Valid')?.unicode_emoji).toBe('🔥');+ expect(roles.find((role) => role.name === 'Invalid')?.unicode_emoji).toBeNull();+ });++ test('staff can clear a role icon', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Abusive', icon: await pngDataUrl(64, 64)});+ const admin = await setUserACLs(harness, owner, ['admin:authenticate', 'guild:update:settings']);+ gateway.dispatches.length = 0;+ await createBuilder(harness, admin.token)+ .delete(`/admin/guilds/${guild.id}/roles/${role.id}/icon`)+ .expect(HTTP_STATUS.NO_CONTENT)+ .execute();+ const roles = await getRoles(harness, owner.token, guild.id);+ expect(roles.find((entry) => entry.id === role.id)).toMatchObject({icon: null, unicode_emoji: null});+ expect((await drainDeletionQueue()).map((item) => item.s3Key)).toEqual([`role-icons/${role.id}/${role.icon}`]);+ const dispatch = gateway.dispatches.find((entry) => entry.event === 'GUILD_ROLE_UPDATE');+ assert(dispatch !== undefined);+ expect((dispatch.data as {role: GuildRoleResponse}).role).toMatchObject({id: role.id, icon: null});+ });++ test('staff clearing a role icon keeps a rename made after the role was read', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Before', icon: await pngDataUrl(64, 64)});+ const admin = await setUserACLs(harness, owner, ['admin:authenticate', 'guild:update:settings']);+ const readRole = GuildRepository.prototype.getRole;+ const getRole = vi.spyOn(GuildRepository.prototype, 'getRole').mockImplementationOnce(async function (+ this: GuildRepository,+ ...args+ ) {+ const stale = await readRole.apply(this, args);+ getRole.mockRestore();+ await updateRole(harness, owner.token, guild.id, role.id, {name: 'Renamed'});+ return stale;+ });+ try {+ await createBuilder(harness, admin.token)+ .delete(`/admin/guilds/${guild.id}/roles/${role.id}/icon`)+ .expect(HTTP_STATUS.NO_CONTENT)+ .execute();+ } finally {+ getRole.mockRestore();+ }+ const roles = await getRoles(harness, owner.token, guild.id);+ expect(roles.find((entry) => entry.id === role.id)).toMatchObject({name: 'Renamed', icon: null});+ });++ test('clearing a role icon needs the guild settings ACL', async () => {+ const role = await createRole(harness, owner.token, guild.id, {name: 'Mods', unicode_emoji: '🛡️'});+ const admin = await setUserACLs(harness, owner, ['admin:authenticate']);+ await createBuilder(harness, admin.token)+ .delete(`/admin/guilds/${guild.id}/roles/${role.id}/icon`)+ .expect(HTTP_STATUS.FORBIDDEN)+ .execute();+ });+});diff --git a/fluxer_api/src/api/infrastructure/AssetDeletionQueue.ts b/fluxer_api/src/api/infrastructure/AssetDeletionQueue.tsindex fb9aa5e17..004d247e5 100644--- a/fluxer_api/src/api/infrastructure/AssetDeletionQueue.ts+++ b/fluxer_api/src/api/infrastructure/AssetDeletionQueue.ts@@ -16,12 +16,16 @@ const MAX_RETRIES = 5;function isQueuedAssetReference(value: unknown): value is QueuedAssetReference {if (!isJsonRecord(value)) return false;return (- (value.entityType === 'user' || value.entityType === 'guild' || value.entityType === 'guild_member') &&+ (value.entityType === 'user' ||+ value.entityType === 'guild' ||+ value.entityType === 'guild_member' ||+ value.entityType === 'role') &&(value.assetType === 'avatar' ||value.assetType === 'banner' ||value.assetType === 'icon' ||value.assetType === 'splash' ||- value.assetType === 'embed_splash') &&+ value.assetType === 'embed_splash' ||+ value.assetType === 'role_icon') &&typeof value.entityId === 'string' &&(value.guildId === undefined || typeof value.guildId === 'string') &&typeof value.hash === 'string'diff --git a/fluxer_api/src/api/infrastructure/EntityAssetService.ts b/fluxer_api/src/api/infrastructure/EntityAssetService.tsindex 12dfbbd92..4cb3fff33 100644--- a/fluxer_api/src/api/infrastructure/EntityAssetService.ts+++ b/fluxer_api/src/api/infrastructure/EntityAssetService.ts@@ -27,8 +27,9 @@ type AssetType =| 'embed_splash'| 'branding'| 'branding_backdrop'- | 'custom_badge';-type EntityType = 'user' | 'guild' | 'guild_member' | 'instance';+ | 'custom_badge'+ | 'role_icon';+type EntityType = 'user' | 'guild' | 'guild_member' | 'instance' | 'role';const ASSET_TYPE_TO_PREFIX: Record<AssetType, string> = {avatar: 'avatars',@@ -39,6 +40,7 @@ const ASSET_TYPE_TO_PREFIX: Record<AssetType, string> = {branding: 'branding',branding_backdrop: 'branding-backdrops',custom_badge: 'custom-badges',+ role_icon: 'role-icons',};function normalizeContentType(contentType: string | null | undefined): string {@@ -51,6 +53,19 @@ function isSvgMetadata(metadata: MediaProxyMetadataResponse): boolean {return format === 'svg' || contentType === 'image/svg+xml' || contentType === 'image/svg';}+function requireDimensionsWithinPolicy(metadata: MediaProxyMetadataResponse, kind: AssetKind, errorPath: string): void {+ const dims = getPolicy(kind).dims;+ if (!dims) return;+ const {width, height} = metadata;+ const inRange = (value: number | null | undefined) => value != null && value >= dims.min && value <= dims.max;+ if (!inRange(width) || !inRange(height)) {+ throw InputValidationError.fromCode(errorPath, ValidationErrorCodes.IMAGE_DIMENSIONS_OUT_OF_RANGE, {+ min: dims.min,+ max: dims.max,+ });+ }+}+export interface PreparedAssetUpload {newHash: string | null;previousHash: string | null;@@ -65,6 +80,7 @@ export interface PreparedAssetUpload {format?: string | null;contentType?: string | null;previousReference: QueuedAssetReference | null;+ newReference: QueuedAssetReference | null;_uploaded: boolean;}@@ -105,6 +121,8 @@ export class EntityAssetService {return 'embed_splash';case 'branding_backdrop':return 'sign_in_backdrop';+ case 'role_icon':+ return 'role_icon';}}@@ -127,6 +145,7 @@ export class EntityAssetService {newCdnUrl: null,previousCdnUrl,previousReference,+ newReference: null,_uploaded: false,format: null,contentType: null,@@ -154,6 +173,7 @@ export class EntityAssetService {newCdnUrl,previousCdnUrl,previousReference,+ newReference: this.buildQueuedAssetReference(assetType, entityType, entityId, newHash, guildId),height,width,_uploaded: false,@@ -189,6 +209,49 @@ export class EntityAssetService {return prepared;}+ async prepareAssetCopy(options: {+ assetType: AssetType;+ entityType: EntityType;+ sourceEntityId: bigint;+ entityId: bigint;+ guildId?: bigint;+ hash: string;+ errorPath: string;+ }): Promise<PreparedAssetUpload | null> {+ const {assetType, entityType, sourceEntityId, entityId, guildId, hash, errorPath} = options;+ const objectName = stripAnimationPrefix(hash);+ const sourceS3Key = `${this.buildS3KeyBase(assetType, entityType, sourceEntityId, guildId)}/${objectName}`;+ if ((await this.storageService.getObjectMetadata(Config.s3.buckets.cdn, sourceS3Key)) === null) {+ Logger.warn({sourceS3Key, assetType, entityType}, 'Asset to copy does not exist, leaving the copy without it');+ return null;+ }+ const s3KeyBase = this.buildS3KeyBase(assetType, entityType, entityId, guildId);+ const newS3Key = `${s3KeyBase}/${objectName}`;+ const prepared: PreparedAssetUpload = {+ newHash: hash,+ previousHash: null,+ isAnimated: hash.startsWith('a_'),+ newS3Key,+ previousS3Key: null,+ newCdnUrl: `${Config.endpoints.media}/${s3KeyBase}/${hash}`,+ previousCdnUrl: null,+ previousReference: null,+ newReference: this.buildQueuedAssetReference(assetType, entityType, entityId, hash, guildId),+ _uploaded: false,+ };+ await this.storageService.copyObject({+ sourceBucket: Config.s3.buckets.cdn,+ sourceKey: sourceS3Key,+ destinationBucket: Config.s3.buckets.cdn,+ destinationKey: newS3Key,+ });+ if (!(await this.verifyAssetExistsWithRetry(assetType, entityType, newS3Key))) {+ throw InputValidationError.fromCode(errorPath, ValidationErrorCodes.FAILED_TO_UPLOAD_IMAGE);+ }+ prepared._uploaded = true;+ return prepared;+ }+async commitAssetChange(prepared: PreparedAssetUpload): Promise<void> {if (!prepared.previousHash || !prepared.previousS3Key || prepared.newHash === prepared.previousHash) {return;@@ -205,6 +268,18 @@ export class EntityAssetService {);}+ async queueUploadForStaleCheck(prepared: PreparedAssetUpload): Promise<void> {+ if (!prepared._uploaded || !prepared.newS3Key || !prepared.newReference) {+ return;+ }+ await this.assetDeletionQueue.queueDeletion({+ s3Key: prepared.newS3Key,+ cdnUrl: null,+ reason: 'asset_upload_stale_check',+ staleReference: prepared.newReference,+ });+ }+async commitAssetChanges(preparedAssets: ReadonlyArray<PreparedAssetUpload | null>): Promise<void> {await awaitAll(preparedAssets.filter((prepared) => prepared !== null).map(async (prepared) => this.commitAssetChange(prepared)),@@ -297,10 +372,13 @@ export class EntityAssetService {errorPath,kind,maxSize:- kind === 'sign_in_backdrop'+ kind === 'sign_in_backdrop' || kind === 'role_icon'? getPolicy(kind).maxBytes: resolveAssetSizeLimit(this.limitConfigService, 'avatar_max_size', AVATAR_MAX_SIZE, null, uploader),});+ if (kind === 'role_icon') {+ requireDimensionsWithinPolicy(metadata, kind, errorPath);+ }const isAnimatedImage = metadata.animated ?? false;const keepDimensions = !isSvgMetadata(metadata);return {diff --git a/fluxer_api/src/api/infrastructure/IAssetDeletionQueue.ts b/fluxer_api/src/api/infrastructure/IAssetDeletionQueue.tsindex 6f1559814..3f05f7605 100644--- a/fluxer_api/src/api/infrastructure/IAssetDeletionQueue.ts+++ b/fluxer_api/src/api/infrastructure/IAssetDeletionQueue.ts@@ -1,6 +1,6 @@// SPDX-License-Identifier: AGPL-3.0-or-later-export type QueuedAssetEntityType = 'user' | 'guild' | 'guild_member' | 'instance';+export type QueuedAssetEntityType = 'user' | 'guild' | 'guild_member' | 'instance' | 'role';export type QueuedAssetType =| 'avatar'| 'banner'@@ -9,7 +9,8 @@ export type QueuedAssetType =| 'embed_splash'| 'branding'| 'branding_backdrop'- | 'custom_badge';+ | 'custom_badge'+ | 'role_icon';export interface QueuedAssetReference {entityType: QueuedAssetEntityType;diff --git a/fluxer_api/src/api/openapi/openapi.json b/fluxer_api/src/api/openapi/openapi.jsonindex 174f4160e..1e27d7915 100644--- a/fluxer_api/src/api/openapi/openapi.json+++ b/fluxer_api/src/api/openapi/openapi.json@@ -10613,7 +10613,7 @@"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}},- "description": "Create guild role. Requires manage_roles permission. Creates a new role with specified name, permissions, and color.",+ "description": "Create guild role. Requires manage_roles permission. Creates a new role with specified name, permissions, colour and an optional icon image or Unicode emoji.","security": [{"botToken": []}, {"sessionToken": []}],"parameters": [{@@ -10860,7 +10860,7 @@"content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}},- "description": "Update guild role. Requires manage_roles permission. Modifies role name, permissions, color, and other settings.",+ "description": "Update guild role. Requires manage_roles permission. Modifies role name, permissions, colour, icon and other settings.","security": [{"botToken": []}, {"sessionToken": []}],"parameters": [{@@ -33440,7 +33440,15 @@"description": "The position of the role in the hoisted member list","anyOf": [{"type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991}, {"type": "null"}]},- "mentionable": {"description": "Whether the role can be mentioned by anyone", "type": "boolean"}+ "mentionable": {"description": "Whether the role can be mentioned by anyone", "type": "boolean"},+ "icon": {+ "description": "Base64 data URI for the role icon image, or null to remove it",+ "anyOf": [{"$ref": "#/components/schemas/Base64ImageType"}, {"type": "null"}]+ },+ "unicode_emoji": {+ "description": "A single Unicode emoji to use as the role icon, or null to remove it",+ "anyOf": [{"type": "string", "maxLength": 64}, {"type": "null"}]+ }}},"GuildRoleResponse": {@@ -33466,9 +33474,13 @@},"hoist": {"type": "boolean", "description": "Whether this role is displayed separately in the member list"},"mentionable": {"type": "boolean", "description": "Whether this role can be mentioned by anyone"},- "unicode_emoji": {"description": "The unicode emoji for this role", "type": ["string", "null"]}+ "icon": {"description": "The hash of the role icon image, or null", "type": ["string", "null"]},+ "unicode_emoji": {+ "description": "The Unicode emoji used as the role icon, or null",+ "type": ["string", "null"]+ }},- "required": ["id", "name", "color", "position", "permissions", "hoist", "mentionable"],+ "required": ["id", "name", "color", "position", "permissions", "hoist", "mentionable", "icon", "unicode_emoji"],"additionalProperties": false},"GuildRoleHoistPositionsRequest": {@@ -33517,6 +33529,18 @@"permissions": {"description": "The permissions bitfield for the role","$ref": "#/components/schemas/UnsignedInt64Type"+ },+ "icon": {+ "description": "Base64 data URI for the role icon image, or null to remove it",+ "anyOf": [{"$ref": "#/components/schemas/Base64ImageType"}, {"type": "null"}]+ },+ "unicode_emoji": {+ "description": "A single Unicode emoji to use as the role icon, or null to remove it",+ "anyOf": [{"type": "string", "maxLength": 64}, {"type": "null"}]+ },+ "icon_source_role_id": {+ "description": "The ID of a role in this community whose icon the new role copies. An image is stored again for the new role",+ "$ref": "#/components/schemas/SnowflakeType"}},"required": ["name"]diff --git a/fluxer_api/src/api/test/TestMediaService.ts b/fluxer_api/src/api/test/TestMediaService.tsindex a198fe0a8..063df287b 100644--- a/fluxer_api/src/api/test/TestMediaService.ts+++ b/fluxer_api/src/api/test/TestMediaService.ts@@ -116,14 +116,15 @@ export class TestMediaService extends IMediaService {if (!format) {return null;}+ const dimensions = this.readPngDimensions(buffer, format);return {format,content_type: this.contentTypeForFormat(format),content_hash: crypto.createHash('md5').update(buffer).digest('hex'),size: buffer.length,- width: 128,- height: 128,- animated: format === 'gif',+ width: dimensions?.width ?? 128,+ height: dimensions?.height ?? 128,+ animated: this.isAnimatedImage(buffer, format),nsfw: false,};} catch (_error) {@@ -131,6 +132,15 @@ export class TestMediaService extends IMediaService {}}+ private readPngDimensions(buffer: Buffer, format: string): {width: number; height: number} | null {+ if (format !== 'png' || buffer.length < 24 || buffer.toString('latin1', 12, 16) !== 'IHDR') {+ return null;+ }+ const width = buffer.readUInt32BE(16);+ const height = buffer.readUInt32BE(20);+ return width > 0 && height > 0 ? {width, height} : null;+ }+private detectImageFormat(buffer: Buffer): string | null {if (this.isSvg(buffer)) {return 'svg';diff --git a/fluxer_api/src/api/worker/tasks/HarvestGuildData.ts b/fluxer_api/src/api/worker/tasks/HarvestGuildData.tsindex 1e2c9b100..3ace792cb 100644--- a/fluxer_api/src/api/worker/tasks/HarvestGuildData.ts+++ b/fluxer_api/src/api/worker/tasks/HarvestGuildData.ts@@ -168,6 +168,8 @@ const harvestGuildData: ArchiveTaskHandler = async (payload, helpers, attempt) =permissions: r.permissions.toString(),mentionable: r.isMentionable,hoist: r.isHoisted,+ icon: r.iconHash,+ unicode_emoji: r.unicodeEmoji,})),members: members.map((m) => ({user_id: m.userId.toString(),@@ -283,6 +285,20 @@ const harvestGuildData: ArchiveTaskHandler = async (payload, helpers, attempt) =dest: path.join(contentDir, 'assets', 'guild', `${fileName}.${ext}`),});}+ for (const role of roles) {+ if (!role.iconHash) continue;+ const id = role.id.toString();+ assetJobs.push({+ key: buildHashedAssetKey('role-icons', id, role.iconHash),+ dest: path.join(+ contentDir,+ 'assets',+ 'guild',+ 'role-icons',+ `${id}.${getAnimatedAssetExtension(role.iconHash)}`,+ ),+ });+ }for (const emoji of emojis) {const id = emoji.id.toString();assetJobs.push({diff --git a/fluxer_api/src/api/worker/tasks/ProcessAssetDeletionQueue.ts b/fluxer_api/src/api/worker/tasks/ProcessAssetDeletionQueue.tsindex 11be0bae8..46d423384 100644--- a/fluxer_api/src/api/worker/tasks/ProcessAssetDeletionQueue.ts+++ b/fluxer_api/src/api/worker/tasks/ProcessAssetDeletionQueue.ts@@ -1,6 +1,6 @@// SPDX-License-Identifier: AGPL-3.0-or-later-import {createGuildID, createUserID} from '@app/api/BrandedTypes';+import {createGuildID, createRoleID, createUserID} from '@app/api/BrandedTypes';import {Config} from '@app/api/Config';import type {GuildRepository} from '@app/api/guild/repositories/GuildRepository';import {stripAnimationPrefix} from '@app/api/infrastructure/AssetEntitlementUtils';@@ -31,7 +31,7 @@ interface ProcessItemResult {interface AssetReferenceRepositories {userRepository: Pick<UserRepository, 'findUnique'>;- guildRepository: Pick<GuildRepository, 'findUnique' | 'getMember'>;+ guildRepository: Pick<GuildRepository, 'findUnique' | 'getMember' | 'getRole'>;instanceConfigRepository: Pick<InstanceConfigRepository,'readStoredBrandingAssetKeys' | 'readStoredCustomBadgeAssetKeys'@@ -187,6 +187,9 @@ async function isQueuedAssetStillCurrent(if (item.s3Key.startsWith('custom-badges/')) {return (await deps.instanceConfigRepository.readStoredCustomBadgeAssetKeys()).has(item.s3Key);}+ if (item.s3Key.startsWith('role-icons/')) {+ return isRoleIconStillCurrent(item, deps);+ }const references = inferAssetReferencesFromS3Key(item.s3Key);const {staleReference} = item;if (@@ -212,6 +215,28 @@ async function isQueuedAssetStillCurrent(return false;}+async function isRoleIconStillCurrent(item: QueuedAssetDeletion, deps: AssetReferenceRepositories): Promise<boolean> {+ const parts = item.s3Key.split('/');+ const reference = item.staleReference;+ if (+ parts.length !== 3 ||+ !reference ||+ reference.entityType !== 'role' ||+ reference.assetType !== 'role_icon' ||+ !reference.guildId ||+ reference.entityId !== parts[1] ||+ stripAnimationPrefix(reference.hash) !== parts[2]+ ) {+ Logger.warn({s3Key: item.s3Key}, 'Role icon deletion has no matching reference, keeping the asset');+ return true;+ }+ const role = await deps.guildRepository.getRole(+ createRoleID(parseAssetEntityId(reference.entityId, 'entityId')),+ createGuildID(parseAssetEntityId(reference.guildId, 'guildId')),+ );+ return role?.iconHash != null && stripAnimationPrefix(role.iconHash) === parts[2];+}+async function getCurrentAssetHash(reference: QueuedAssetReference,deps: AssetReferenceRepositories,diff --git a/fluxer_api/src/api/worker/tests/ProcessAssetDeletionQueue.test.ts b/fluxer_api/src/api/worker/tests/ProcessAssetDeletionQueue.test.tsindex c4c8f1444..fefdbbfd3 100644--- a/fluxer_api/src/api/worker/tests/ProcessAssetDeletionQueue.test.ts+++ b/fluxer_api/src/api/worker/tests/ProcessAssetDeletionQueue.test.ts@@ -1,5 +1,7 @@// SPDX-License-Identifier: AGPL-3.0-or-later+import {createGuildID, createRoleID} from '@app/api/BrandedTypes';+import {Config} from '@app/api/Config';import {GuildRepository} from '@app/api/guild/repositories/GuildRepository';import {AssetDeletionQueue} from '@app/api/infrastructure/AssetDeletionQueue';import {NoopPurgeQueue} from '@app/api/infrastructure/CachePurgeQueue';@@ -14,14 +16,62 @@ import {afterEach, describe, expect, it} from 'vitest';function createHarness(storageService: MockStorageService) {const kvClient = new MockKVProvider();const assetDeletionQueue = new AssetDeletionQueue(kvClient);+ const guildRepository = new GuildRepository();setWorkerDependenciesForTest({assetDeletionQueue,purgeQueue: new NoopPurgeQueue(),storageService,userRepository: new UserRepository(kvClient),- guildRepository: new GuildRepository(),+ guildRepository,+ });+ return {assetDeletionQueue, guildRepository};+}++const ROLE_GUILD_ID = createGuildID(1430000000000000000n);+const ROLE_ID = createRoleID(1430000000000000001n);++async function seedRoleIcon(guildRepository: GuildRepository, iconHash: string | null): Promise<void> {+ await guildRepository.upsertRole({+ guild_id: ROLE_GUILD_ID,+ role_id: ROLE_ID,+ name: 'Artists',+ permissions: 0n,+ position: 1,+ hoist_position: null,+ color: 0,+ icon_hash: iconHash,+ unicode_emoji: null,+ hoist: false,+ mentionable: false,+ version: 1,+ });+}++function roleIconKey(hash: string): string {+ return `role-icons/${ROLE_ID}/${hash}`;+}++async function storeAndQueueRoleIcon(+ storageService: MockStorageService,+ assetDeletionQueue: AssetDeletionQueue,+ hash: string,+ withReference = true,+): Promise<void> {+ await storageService.uploadObject({bucket: Config.s3.buckets.cdn, key: roleIconKey(hash), body: new Uint8Array([1])});+ await assetDeletionQueue.queueDeletion({+ s3Key: roleIconKey(hash),+ cdnUrl: null,+ reason: 'asset_replaced',+ staleReference: withReference+ ? {+ entityType: 'role',+ assetType: 'role_icon',+ entityId: ROLE_ID.toString(),+ guildId: ROLE_GUILD_ID.toString(),+ hash,+ }+ : undefined,});- return {assetDeletionQueue};}async function queueAssets(assetDeletionQueue: AssetDeletionQueue, count: number): Promise<void> {@@ -68,4 +118,40 @@ describe('processAssetDeletionQueue', () => {expect(await assetDeletionQueue.getQueueSize()).toBe(0);});++ describe('role icons', () => {+ it('deletes a replaced role icon', async () => {+ const storageService = new MockStorageService();+ const {assetDeletionQueue, guildRepository} = createHarness(storageService);+ await seedRoleIcon(guildRepository, 'bbbbbbbb');+ await storeAndQueueRoleIcon(storageService, assetDeletionQueue, 'aaaaaaaa');++ await processAssetDeletionQueue({}, createTestWorkerHelpers());++ expect(storageService.hasObject(Config.s3.buckets.cdn, roleIconKey('aaaaaaaa'))).toBe(false);+ });++ it('keeps the current role icon', async () => {+ const storageService = new MockStorageService();+ const {assetDeletionQueue, guildRepository} = createHarness(storageService);+ await seedRoleIcon(guildRepository, 'aaaaaaaa');+ await storeAndQueueRoleIcon(storageService, assetDeletionQueue, 'aaaaaaaa');++ await processAssetDeletionQueue({}, createTestWorkerHelpers());++ expect(storageService.hasObject(Config.s3.buckets.cdn, roleIconKey('aaaaaaaa'))).toBe(true);+ });++ it('keeps a role icon queued without a stale reference', async () => {+ const storageService = new MockStorageService();+ const {assetDeletionQueue, guildRepository} = createHarness(storageService);+ await seedRoleIcon(guildRepository, null);+ await storeAndQueueRoleIcon(storageService, assetDeletionQueue, 'aaaaaaaa', false);++ await processAssetDeletionQueue({}, createTestWorkerHelpers());++ expect(storageService.hasObject(Config.s3.buckets.cdn, roleIconKey('aaaaaaaa'))).toBe(true);+ expect(await assetDeletionQueue.getQueueSize()).toBe(0);+ });+ });});diff --git a/fluxer_app/scripts/GenerateColorSystem.ts b/fluxer_app/scripts/GenerateColorSystem.tsindex 6541b335a..528225e37 100644--- a/fluxer_app/scripts/GenerateColorSystem.ts+++ b/fluxer_app/scripts/GenerateColorSystem.ts@@ -861,7 +861,7 @@ function generateCSS(darkLegacyTokens: Array<OutputToken>,): string {const blocks = [- renderBlock(':root', rootTokens, cfg.families),+ renderBlock(':root,\n.theme-dark', rootTokens, cfg.families),renderBlock('.theme-light', lightTokens, cfg.families),renderBlock('.theme-coal', coalTokens, cfg.families),renderBlock('.theme-dark_legacy', darkLegacyTokens, cfg.families),diff --git a/fluxer_app/src/features/channel/components/ChannelMembers.module.css b/fluxer_app/src/features/channel/components/ChannelMembers.module.cssindex a73a5567b..bc4f9e701 100644--- a/fluxer_app/src/features/channel/components/ChannelMembers.module.css+++ b/fluxer_app/src/features/channel/components/ChannelMembers.module.css@@ -30,6 +30,11 @@white-space: nowrap;}+.groupHeaderRoleIcon {+ flex-shrink: 0;+ margin-inline-end: 0.25rem;+}+.groupHeaderSeparator {flex-shrink: 0;}diff --git a/fluxer_app/src/features/channel/components/ChannelMessage.tsx b/fluxer_app/src/features/channel/components/ChannelMessage.tsxindex fea35e218..10e80d0da 100644--- a/fluxer_app/src/features/channel/components/ChannelMessage.tsx+++ b/fluxer_app/src/features/channel/components/ChannelMessage.tsx@@ -21,6 +21,7 @@ import {useMessageHoverState} from '@app/features/channel/components/MessageHoveimport {MessageViewContextProvider} from '@app/features/channel/components/MessageViewContext';import type {Channel} from '@app/features/channel/models/Channel';import DeveloperOptions from '@app/features/devtools/state/DeveloperOptions';+import type {GuildRole} from '@app/features/guild/models/GuildRole';import {parse} from '@app/features/messaging/components/markdown/renderers';import {MarkdownContext} from '@app/features/messaging/components/markdown/renderers/RendererTypes';import type {Message as MessageModel} from '@app/features/messaging/models/MessagingMessage';@@ -202,6 +203,7 @@ interface MessageProps {previewOverrides?: {usernameColor?: string;displayName?: string;+ iconRole?: GuildRole | null;};removeTopSpacing?: boolean;isJumpTarget?: boolean;diff --git a/fluxer_app/src/features/channel/components/CompactMessageLayout.tsx b/fluxer_app/src/features/channel/components/CompactMessageLayout.tsxindex f97f27c68..7ba848d89 100644--- a/fluxer_app/src/features/channel/components/CompactMessageLayout.tsx+++ b/fluxer_app/src/features/channel/components/CompactMessageLayout.tsx@@ -7,7 +7,9 @@ import {MessageTimeoutIndicator} from '@app/features/channel/components/MessageTimport {MessageUsername} from '@app/features/channel/components/MessageUsername';import {TimestampWithTooltip} from '@app/features/channel/components/TimestampWithTooltip';import {isOriginalPoster} from '@app/features/forum/utils/ForumChannelUtils';+import {RoleIcon} from '@app/features/guild/components/RoleIcon';import type {Guild} from '@app/features/guild/models/Guild';+import type {GuildRole} from '@app/features/guild/models/GuildRole';import type {GuildMember} from '@app/features/member/models/GuildMember';import type {Message} from '@app/features/messaging/models/MessagingMessage';import {compactMessagePrefixProps} from '@app/features/theme/layout/MessageLayoutAttributes';@@ -42,6 +44,7 @@ interface CompactAuthorPrefixProps {previewOverrides?: {usernameColor?: string;displayName?: string;+ iconRole?: GuildRole | null;};}@@ -168,6 +171,7 @@ export function CompactAuthorPrefix({previewOverrides,}: CompactAuthorPrefixProps): React.ReactElement {const isPreview = Boolean(previewContext);+ const iconRole = previewOverrides?.iconRole !== undefined ? previewOverrides.iconRole : member?.getIconRole();return (<spanclassName={styles.compactAuthorPrefix}@@ -215,17 +219,30 @@ export function CompactAuthorPrefix({data-flx="channel.compact-message-layout.compact-author-prefix.message-timeout-indicator"/>)}- <MessageUsername- user={author}- message={message}- guild={guild}- member={member}- className={styles.messageUsername}- isPreview={isPreview}- previewColor={previewOverrides?.usernameColor}- previewName={previewOverrides?.displayName}- data-flx="channel.compact-message-layout.compact-author-prefix.message-username"- />+ <span+ className={styles.messageAuthorName}+ data-flx="channel.compact-message-layout.compact-author-prefix.message-author-name"+ >+ <MessageUsername+ user={author}+ message={message}+ guild={guild}+ member={member}+ className={styles.messageUsername}+ isPreview={isPreview}+ previewColor={previewOverrides?.usernameColor}+ previewName={previewOverrides?.displayName}+ data-flx="channel.compact-message-layout.compact-author-prefix.message-username"+ />+ {iconRole && (+ <RoleIcon+ role={iconRole}+ size={16}+ className={styles.messageRoleIcon}+ data-flx="channel.compact-message-layout.compact-author-prefix.role-icon"+ />+ )}+ </span></span><span className={styles.copyOnly} data-flx="channel.compact-message-layout.compact-author-prefix.copy-only--2">:{' '}diff --git a/fluxer_app/src/features/channel/components/EmojiPicker.tsx b/fluxer_app/src/features/channel/components/EmojiPicker.tsxindex b53f84f01..bec639778 100644--- a/fluxer_app/src/features/channel/components/EmojiPicker.tsx+++ b/fluxer_app/src/features/channel/components/EmojiPicker.tsx@@ -39,6 +39,7 @@ import {} from '@app/features/expressions/components/popouts/ExpressionPickerPopout';import {checkEmojiAvailability,+ checkRoleIconEmojiAvailability,shouldShowEmojiPremiumUpsell,} from '@app/features/expressions/utils/ExpressionPermissionUtils';@@ -60,7 +61,15 @@ const NO_EMOJIS_MATCH_YOUR_SEARCH_DESCRIPTOR = msg({comment: 'Empty-state text in the channel and chat emoji picker.',});export const EmojiPicker = observer(- ({channelId, handleSelect}: {channelId?: string; handleSelect: (emoji: FlatEmoji, shiftKey?: boolean) => void}) => {+ ({+ channelId,+ roleIconGuildId,+ handleSelect,+ }: {+ channelId?: string;+ roleIconGuildId?: string;+ handleSelect: (emoji: FlatEmoji, shiftKey?: boolean) => void;+ }) => {const PREMIUM_PRODUCT_NAME = getPremiumProductName();const headerContext = useContext(ExpressionPickerHeaderContext);if (!headerContext) {@@ -85,8 +94,11 @@ export const EmojiPicker = observer(const skinTone = Emoji.skinTone;const shouldAnimateEmoji = useShouldAnimate({kind: 'emoji'});const getEmojiAvailability = useCallback(- (emoji: FlatEmoji) => checkEmojiAvailability(i18n, emoji, channel),- [channel, i18n, permissionVersion],+ (emoji: FlatEmoji) =>+ roleIconGuildId+ ? checkRoleIconEmojiAvailability(emoji, roleIconGuildId)+ : checkEmojiAvailability(i18n, emoji, channel),+ [channel, i18n, permissionVersion, roleIconGuildId],);const getEmojiGuildId = useCallback((emoji: FlatEmoji) => emoji.guildId, []);const renderEmojiPreviewItem = useCallback(@@ -101,8 +113,12 @@ export const EmojiPicker = observer(}, []);useSearchInputAutofocus(searchInputRef);const searchItems = useMemo(- () => Emoji.search(channel, normalizedSearchTerm).slice(),- [channel, normalizedSearchTerm, emojiDataVersion],+ () =>+ (roleIconGuildId+ ? Emoji.searchForRoleIcon(roleIconGuildId, normalizedSearchTerm)+ : Emoji.search(channel, normalizedSearchTerm)+ ).slice(),+ [channel, normalizedSearchTerm, emojiDataVersion, roleIconGuildId],);const searchUpsell = usePremiumUpsellData({items: searchItems,@@ -110,7 +126,10 @@ export const EmojiPicker = observer(getGuildId: getEmojiGuildId,});const renderedEmojis = searchUpsell.accessibleItems;- const allItems = useMemo(() => Emoji.getAllEmojis(channel).slice(), [channel, emojiDataVersion]);+ const allItems = useMemo(+ () => (roleIconGuildId ? Emoji.getAllEmojisForRoleIcon(roleIconGuildId) : Emoji.getAllEmojis(channel)).slice(),+ [channel, emojiDataVersion, roleIconGuildId],+ );const allUpsell = usePremiumUpsellData({items: allItems,getAvailability: getEmojiAvailability,@@ -198,14 +217,15 @@ export const EmojiPicker = observer(const handleEmojiSelect = useCallback((emoji: FlatEmoji, shiftKey?: boolean) => {- const availability = checkEmojiAvailability(i18n, emoji, channel);- if (!availability.canUse) {+ if (!getEmojiAvailability(emoji).canUse) {return;}- EmojiPickerState.trackEmoji(emoji);+ if (!roleIconGuildId) {+ EmojiPickerState.trackEmoji(emoji);+ }handleSelect(emoji, shiftKey);},- [channel, handleSelect, i18n],+ [getEmojiAvailability, handleSelect, roleIconGuildId],);const handleSelectEmoji = useCallback(@@ -279,7 +299,7 @@ export const EmojiPicker = observer(handleHover={handleHover}handleSelect={handleEmojiSelect}skinTone={skinTone}- channel={channel}+ getAvailability={getEmojiAvailability}allowAnimation={shouldAnimateEmoji}gridColumns={gridColumns}cellTrackWidth={EMOJI_GRID_TRACK_WIDTH}@@ -309,7 +329,9 @@ export const EmojiPicker = observer()}</div></div>- <EmojiPickerInspector hoveredEmoji={hoveredEmoji} data-flx="channel.emoji-picker.emoji-picker-inspector" />+ {!roleIconGuildId && (+ <EmojiPickerInspector hoveredEmoji={hoveredEmoji} data-flx="channel.emoji-picker.emoji-picker-inspector" />+ )}</div><EmojiPickerCategoryListcustomEmojisByGuildId={customEmojisByGuildId}diff --git a/fluxer_app/src/features/channel/components/MemberListGroupHeader.tsx b/fluxer_app/src/features/channel/components/MemberListGroupHeader.tsxindex 63a90872e..43200c902 100644--- a/fluxer_app/src/features/channel/components/MemberListGroupHeader.tsx+++ b/fluxer_app/src/features/channel/components/MemberListGroupHeader.tsx@@ -1,6 +1,7 @@// SPDX-License-Identifier: AGPL-3.0-or-laterimport styles from '@app/features/channel/components/ChannelMembers.module.css';+import {RoleIcon} from '@app/features/guild/components/RoleIcon';import type {GuildRole} from '@app/features/guild/models/GuildRole';import {getCachedNumberFormat} from '@app/features/i18n/utils/IntlCache';import {openRoleContextMenu, openRoleContextMenuForElement} from '@app/features/ui/action_menu/RoleContextMenu';@@ -50,6 +51,15 @@ export function MemberListGroupHeader({data-member-list-focus-item={guildRole ? 'true' : undefined}data-flx="channel.member-list-group-header">+ {guildRole && (+ <RoleIcon+ role={guildRole}+ size={16}+ decorative={true}+ className={styles.groupHeaderRoleIcon}+ data-flx="channel.member-list-group-header.group-header-role-icon"+ />+ )}<span className={styles.groupHeaderLabel} data-flx="channel.member-list-group-header.label">{name}</span>diff --git a/fluxer_app/src/features/channel/components/MessageViewContext.ts b/fluxer_app/src/features/channel/components/MessageViewContext.tsindex a6fefc32c..12a0bb586 100644--- a/fluxer_app/src/features/channel/components/MessageViewContext.ts+++ b/fluxer_app/src/features/channel/components/MessageViewContext.ts@@ -1,6 +1,7 @@// SPDX-License-Identifier: AGPL-3.0-or-laterimport type {Channel} from '@app/features/channel/models/Channel';+import type {GuildRole} from '@app/features/guild/models/GuildRole';import type {Message} from '@app/features/messaging/models/MessagingMessage';import type {MessagePreviewContext} from '@fluxer/constants/src/ChannelConstants';import React, {useContext} from 'react';@@ -8,6 +9,7 @@ import React, {useContext} from 'react';interface MessagePreviewOverrides {usernameColor?: string;displayName?: string;+ iconRole?: GuildRole | null;}export interface MessageViewContextValue {diff --git a/fluxer_app/src/features/channel/components/MobileEmojiPicker.tsx b/fluxer_app/src/features/channel/components/MobileEmojiPicker.tsxindex db930e11b..7fb65bd26 100644--- a/fluxer_app/src/features/channel/components/MobileEmojiPicker.tsx+++ b/fluxer_app/src/features/channel/components/MobileEmojiPicker.tsx@@ -284,7 +284,7 @@ export const MobileEmojiPicker = observer(handleHover={handleHover}handleSelect={handleSelect}skinTone={skinTone}- channel={channel}+ getAvailability={getEmojiAvailability}allowAnimation={shouldAnimateEmoji}gridColumns={gridColumns}gridWidth={gridWidth}diff --git a/fluxer_app/src/features/channel/components/SystemMessageUsername.tsx b/fluxer_app/src/features/channel/components/SystemMessageUsername.tsxindex a32c2f9dc..515ca31f3 100644--- a/fluxer_app/src/features/channel/components/SystemMessageUsername.tsx+++ b/fluxer_app/src/features/channel/components/SystemMessageUsername.tsx@@ -9,43 +9,46 @@ import styles from '@app/features/theme/styles/Message.module.css';import type {User} from '@app/features/user/models/User';import * as NicknameUtils from '@app/features/user/utils/NicknameUtils';import {clsx} from 'clsx';+import {observer} from 'mobx-react-lite';import React, {useRef} from 'react';-export const SystemMessageUsername = React.forwardRef<- HTMLElement,- {- author: User;- guild?: Guild;- message: Message;- }->(({author, guild, message}, ref) => {- const usernameRef = useRef<HTMLSpanElement | null>(null);- const contextMenuOpen = useContextMenuHoverState(usernameRef);- const member = GuildMembers.getMember(guild?.id ?? '', author.id);- return (- <PreloadableUserPopout- ref={ref}- user={author}- isWebhook={false}- guildId={guild?.id}- channelId={message.channelId}- message={message}- enableLongPressActions={true}- longPressWrapperElement="span"- data-flx="channel.system-message-username.preloadable-user-popout"- >- <span- className={clsx(styles.systemMessageLink, contextMenuOpen && styles.contextMenuUnderline)}- role="button"- tabIndex={-1}- style={{color: member?.getColorString()}}- data-user-id={author.id}- data-guild-id={guild?.id}- ref={usernameRef}- data-flx="channel.system-message-username.system-message-link"+export const SystemMessageUsername = observer(+ React.forwardRef<+ HTMLElement,+ {+ author: User;+ guild?: Guild;+ message: Message;+ }+ >(({author, guild, message}, ref) => {+ const usernameRef = useRef<HTMLSpanElement | null>(null);+ const contextMenuOpen = useContextMenuHoverState(usernameRef);+ const member = GuildMembers.getMember(guild?.id ?? '', author.id);+ return (+ <PreloadableUserPopout+ ref={ref}+ user={author}+ isWebhook={false}+ guildId={guild?.id}+ channelId={message.channelId}+ message={message}+ enableLongPressActions={true}+ longPressWrapperElement="span"+ data-flx="channel.system-message-username.preloadable-user-popout">- {NicknameUtils.getNickname(author, guild?.id)}- </span>- </PreloadableUserPopout>- );-});+ <span+ className={clsx(styles.systemMessageLink, contextMenuOpen && styles.contextMenuUnderline)}+ role="button"+ tabIndex={-1}+ style={{color: member?.getColorString()}}+ data-user-id={author.id}+ data-guild-id={guild?.id}+ ref={usernameRef}+ data-flx="channel.system-message-username.system-message-link"+ >+ {NicknameUtils.getNickname(author, guild?.id)}+ </span>+ </PreloadableUserPopout>+ );+ }),+);diff --git a/fluxer_app/src/features/channel/components/UserMessage.tsx b/fluxer_app/src/features/channel/components/UserMessage.tsxindex 3ede089c2..0e36a855b 100644--- a/fluxer_app/src/features/channel/components/UserMessage.tsx+++ b/fluxer_app/src/features/channel/components/UserMessage.tsx@@ -19,6 +19,7 @@ import {createSystemMessage} from '@app/features/devtools/utils/CommandUtils';import Emoji from '@app/features/emoji/state/Emoji';import {checkEmojiAvailability} from '@app/features/expressions/utils/ExpressionPermissionUtils';import {isOriginalPoster} from '@app/features/forum/utils/ForumChannelUtils';+import {RoleIcon} from '@app/features/guild/components/RoleIcon';import Guilds from '@app/features/guild/state/Guilds';import {TRY_AGAIN_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';import {dropTrailingEmptyBlockquoteLines} from '@app/features/lexical/composer/blockquoteLines';@@ -175,6 +176,7 @@ export const UserMessage = observer(() => {const hasStyleableTextContent = useMemo(() => hasStyleableMessageText(astNodes), [astNodes]);const guild = Guilds.getGuild(channel.guildId ?? '');const member = GuildMembers.getMember(guild?.id ?? '', author?.id ?? '');+ const iconRole = previewOverrides?.iconRole !== undefined ? previewOverrides.iconRole : member?.getIconRole();const mobileLayout = MobileLayout;const shouldShowFailedFooter =message.state === MessageStates.FAILED && (mobileLayout.enabled || shouldHideContent || !hasStyleableTextContent);@@ -501,17 +503,27 @@ export const UserMessage = observer(() => {userId={author.id}data-flx="channel.user-message.message-timeout-indicator"/>- <MessageUsername- user={author}- message={message}- guild={guild}- member={member ?? undefined}- className={styles.messageUsername}- isPreview={!!previewContext}- previewColor={previewOverrides?.usernameColor}- previewName={previewOverrides?.displayName}- data-flx="channel.user-message.message-username--2"- />+ <span className={styles.messageAuthorName} data-flx="channel.user-message.message-author-name">+ <MessageUsername+ user={author}+ message={message}+ guild={guild}+ member={member ?? undefined}+ className={styles.messageUsername}+ isPreview={!!previewContext}+ previewColor={previewOverrides?.usernameColor}+ previewName={previewOverrides?.displayName}+ data-flx="channel.user-message.message-username--2"+ />+ {iconRole && (+ <RoleIcon+ role={iconRole}+ size={20}+ className={styles.messageRoleIcon}+ data-flx="channel.user-message.role-icon"+ />+ )}+ </span>{(author.bot || message.isCrosspostCopy) && (<UserTagclassName={styles.userTagOffset}diff --git a/fluxer_app/src/features/channel/components/emoji_picker/EmojiRenderer.tsx b/fluxer_app/src/features/channel/components/emoji_picker/EmojiRenderer.tsxindex bd92cca61..17640f9df 100644--- a/fluxer_app/src/features/channel/components/emoji_picker/EmojiRenderer.tsx+++ b/fluxer_app/src/features/channel/components/emoji_picker/EmojiRenderer.tsx@@ -5,10 +5,9 @@ import {getEmojiSpriteSheetLayout,getSpriteSheetBackground,} from '@app/features/channel/components/emoji_picker/EmojiPickerConstants';-import type {Channel} from '@app/features/channel/models/Channel';import EmojiPicker, {getEmojiUsageKey} from '@app/features/emoji/state/EmojiPicker';import type {FlatEmoji} from '@app/features/emoji/types/EmojiTypes';-import {checkEmojiAvailability} from '@app/features/expressions/utils/ExpressionPermissionUtils';+import type {AvailabilityCheck} from '@app/features/expressions/utils/ExpressionPermissionUtils';import {getEmojiDisplayDataWithSkinTone} from '@app/features/expressions/utils/SkinToneUtils';import UnicodeEmojis, {EMOJI_SPRITES} from '@app/features/expressions/utils/UnicodeEmojis';import {loadImage} from '@app/features/messaging/utils/ImageCacheUtils';@@ -17,7 +16,6 @@ import {EmojiContextMenuItems} from '@app/features/ui/action_menu/items/EmojiConimport * as ContextMenuCommands from '@app/features/ui/commands/ContextMenuCommands';import FocusRing from '@app/features/ui/focus_ring/FocusRing';import {isFirefoxBrowser} from '@app/features/ui/utils/NativeUtils';-import {useLingui} from '@lingui/react/macro';import {clsx} from 'clsx';import React, {useEffect, useImperativeHandle, useMemo, useRef} from 'react';@@ -83,7 +81,7 @@ interface EmojiRendererProps {handleHover: (emoji: FlatEmoji | null) => void;handleSelect: (emoji: FlatEmoji, shiftKey?: boolean) => void;skinTone: string;- channel: Channel | null;+ getAvailability: (emoji: FlatEmoji) => AvailabilityCheck;shouldAnimate: boolean;isHighlighted?: boolean;shouldScrollIntoView?: boolean;@@ -96,7 +94,7 @@ export const EmojiRenderer = React.forwardRef<HTMLButtonElement, EmojiRendererPrhandleHover,handleSelect,skinTone,- channel,+ getAvailability,shouldAnimate,isHighlighted = false,shouldScrollIntoView = false,@@ -105,14 +103,13 @@ export const EmojiRenderer = React.forwardRef<HTMLButtonElement, EmojiRendererPrforwardedRef,) => {const emojiRef = useRef<HTMLButtonElement | null>(null);- const {i18n} = useLingui();useImperativeHandle(forwardedRef, () => emojiRef.current!);useEffect(() => {if (shouldScrollIntoView && emojiRef.current) {emojiRef.current.scrollIntoView({block: 'nearest', inline: 'nearest'});}}, [shouldScrollIntoView]);- const availability = checkEmojiAvailability(i18n, emoji, channel);+ const availability = getAvailability(emoji);const customEmojiUrl = useMemo(() =>emoji.iddiff --git a/fluxer_app/src/features/channel/components/emoji_picker/VirtualRow.tsx b/fluxer_app/src/features/channel/components/emoji_picker/VirtualRow.tsxindex 831cbcc97..54c77e97b 100644--- a/fluxer_app/src/features/channel/components/emoji_picker/VirtualRow.tsx+++ b/fluxer_app/src/features/channel/components/emoji_picker/VirtualRow.tsx@@ -4,10 +4,10 @@ import styles from '@app/features/channel/components/EmojiPicker.module.css';import {EMOJI_ROW_HEIGHT} from '@app/features/channel/components/emoji_picker/EmojiPickerConstants';import {EmojiRenderer} from '@app/features/channel/components/emoji_picker/EmojiRenderer';import {PickerCategoryHeaderRow} from '@app/features/channel/components/pickers/shared/PickerCategoryHeaderRow';-import type {Channel} from '@app/features/channel/models/Channel';import EmojiPicker from '@app/features/emoji/state/EmojiPicker';import type {FlatEmoji} from '@app/features/emoji/types/EmojiTypes';+import type {AvailabilityCheck} from '@app/features/expressions/utils/ExpressionPermissionUtils';import {remFromPx} from '@app/features/theme/layout/RemFromPx';@@ -23,7 +23,7 @@ interface VirtualRowRendererProps {handleHover: (emoji: FlatEmoji | null, row?: number, column?: number) => void;handleSelect: (emoji: FlatEmoji, shiftKey?: boolean) => void;skinTone: string;- channel: Channel | null;+ getAvailability: (emoji: FlatEmoji) => AvailabilityCheck;shouldAnimate: boolean;gridColumns?: number;gridWidth?: number;@@ -40,7 +40,7 @@ const VirtualRowRenderer: React.FC<VirtualRowRendererProps> = React.memo(handleHover,handleSelect,skinTone,- channel,+ getAvailability,shouldAnimate,gridColumns = 9,gridWidth,@@ -89,7 +89,7 @@ const VirtualRowRenderer: React.FC<VirtualRowRendererProps> = React.memo(handleHover={(e) => handleHover(e, emojiRowIndex, colIndex)}handleSelect={handleSelect}skinTone={skinTone}- channel={channel}+ getAvailability={getAvailability}shouldAnimate={shouldAnimate}isHighlighted={shouldHighlight}shouldScrollIntoView={isSelected && shouldScrollOnSelection}@@ -116,7 +116,7 @@ interface VirtualizedRowProps {handleHover: (emoji: FlatEmoji | null, row?: number, column?: number) => void;handleSelect: (emoji: FlatEmoji, shiftKey?: boolean) => void;skinTone: string;- channel: Channel | null;+ getAvailability: (emoji: FlatEmoji) => AvailabilityCheck;allowAnimation: boolean;gridColumns?: number;gridWidth?: number;@@ -134,7 +134,7 @@ export const VirtualizedRow: React.FC<VirtualizedRowProps> = observer(handleHover,handleSelect,skinTone,- channel,+ getAvailability,allowAnimation,gridColumns,gridWidth,@@ -152,7 +152,7 @@ export const VirtualizedRow: React.FC<VirtualizedRowProps> = observer(handleHover={handleHover}handleSelect={handleSelect}skinTone={skinTone}- channel={channel}+ getAvailability={getAvailability}shouldAnimate={allowAnimation}gridColumns={gridColumns}gridWidth={gridWidth}diff --git a/fluxer_app/src/features/emoji/components/popouts/EmojiPickerPopout.tsx b/fluxer_app/src/features/emoji/components/popouts/EmojiPickerPopout.tsxindex 88bd7d0b6..961d0ddd6 100644--- a/fluxer_app/src/features/emoji/components/popouts/EmojiPickerPopout.tsx+++ b/fluxer_app/src/features/emoji/components/popouts/EmojiPickerPopout.tsx@@ -8,10 +8,12 @@ import {useCallback} from 'react';export const EmojiPickerPopout = observer(({channelId,+ roleIconGuildId,handleSelect,onClose,}: {channelId: string | null;+ roleIconGuildId?: string;handleSelect: (emoji: FlatEmoji, shiftKey?: boolean) => void;onClose?: () => void;}) => {@@ -27,6 +29,7 @@ export const EmojiPickerPopout = observer(return (<ExpressionPickerPopoutchannelId={channelId ?? undefined}+ roleIconGuildId={roleIconGuildId}onEmojiSelect={handleEmojiSelect}onClose={onClose}visibleTabs={['emojis']}diff --git a/fluxer_app/src/features/emoji/state/Emoji.ts b/fluxer_app/src/features/emoji/state/Emoji.tsindex ea20742c0..e52353448 100644--- a/fluxer_app/src/features/emoji/state/Emoji.ts+++ b/fluxer_app/src/features/emoji/state/Emoji.ts@@ -9,7 +9,10 @@ import {createEmojiSearchIndex, type EmojiSearchIndex} from '@app/features/emojiimport type {FlatEmoji, UnicodeEmoji} from '@app/features/emoji/types/EmojiTypes';import {GuildEmoji} from '@app/features/expressions/models/GuildEmoji';import {patchGuildEmojiCacheFromGateway} from '@app/features/expressions/state/GuildExpressionTabCache';-import {checkEmojiAvailability} from '@app/features/expressions/utils/ExpressionPermissionUtils';+import {+ checkEmojiAvailability,+ checkRoleIconEmojiAvailability,+} from '@app/features/expressions/utils/ExpressionPermissionUtils';import UnicodeEmojis from '@app/features/expressions/utils/UnicodeEmojis';import type {GuildReadyData} from '@app/features/gateway/types/GatewayGuildTypes';import GuildList from '@app/features/guild/state/GuildList';@@ -422,6 +425,19 @@ class Emoji {);}+ getAllEmojisForRoleIcon(guildId: string): ReadonlyArray<FlatEmoji> {+ return emojiGuildRegistry.getAllEmojis(guildId);+ }++ searchForRoleIcon(guildId: string, query: string): ReadonlyArray<FlatEmoji> {+ return emojiGuildRegistry.search(+ guildId,+ normalizeEmojiSearchQuery(query),+ 0,+ (emoji) => checkRoleIconEmojiAvailability(emoji, guildId).canUse,+ );+ }+setSkinTone(skinTone: string): void {this.skinTone = skinTone;UnicodeEmojis.setDefaultSkinTone(skinTone);diff --git a/fluxer_app/src/features/expressions/components/modals/AssetCropModal.tsx b/fluxer_app/src/features/expressions/components/modals/AssetCropModal.tsxindex 6abf00a41..9497e0020 100644--- a/fluxer_app/src/features/expressions/components/modals/AssetCropModal.tsx+++ b/fluxer_app/src/features/expressions/components/modals/AssetCropModal.tsx@@ -7,6 +7,7 @@ import {isOriginalImageWithinAssetBounds,} from '@app/features/expressions/utils/AssetImageGeometry';import {ImageCropModal} from '@app/features/messaging/components/modals/ImageCropModal';+import {getPolicy} from '@fluxer/constants/src/AssetFormatPolicy';import type {ValueOf} from '@fluxer/constants/src/ValueOf';import type {I18n} from '@lingui/core';import {msg} from '@lingui/core/macro';@@ -38,6 +39,10 @@ const CROP_COMMUNITY_ICON_TITLE_DESCRIPTOR = msg({message: 'Crop community icon',comment: 'Modal title for cropping a community icon before upload.',});+const CROP_ROLE_ICON_TITLE_DESCRIPTOR = msg({+ message: 'Crop role icon',+ comment: 'Modal title for cropping a role icon before upload.',+});const CROP_GROUP_ICON_TITLE_DESCRIPTOR = msg({message: 'Crop group icon',comment: 'Modal title for cropping a group DM icon before upload.',@@ -70,6 +75,12 @@ const COMMUNITY_ICON_CROP_DESCRIPTION_DESCRIPTOR = msg({comment:'Description in the community icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.',});+const ROLE_ICON_CROP_DESCRIPTION_DESCRIPTOR = msg({+ message:+ 'Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels.',+ comment:+ 'Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.',+});const GROUP_ICON_CROP_DESCRIPTION_DESCRIPTOR = msg({message:'Drag to reposition your group icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels.',@@ -124,6 +135,7 @@ export const AssetType = {PROFILE_BANNER: 'profile_banner',SPLASH: 'splash',EMBED_SPLASH: 'embed_splash',+ ROLE_ICON: 'role_icon',} as const;export type AssetType = ValueOf<typeof AssetType>;@@ -202,6 +214,14 @@ const ASSET_CONFIGS: Record<AssetType, AssetConfig> = {minHeightRatio: 0.5,maxHeightRatio: 1,},+ [AssetType.ROLE_ICON]: {+ aspectRatio: 1,+ cropShape: 'rect',+ maxWidth: 256,+ maxHeight: 256,+ minWidth: 64,+ minHeight: 64,+ },};export const getAssetConfig = (type: AssetType): AssetConfig => ASSET_CONFIGS[type];const getAssetAspectRatioRange = (type: AssetType) => {@@ -210,6 +230,9 @@ const getAssetAspectRatioRange = (type: AssetType) => {};const canSkipOriginalAssetImage = (type: AssetType, dimensions: ImageDimensions): boolean => {const config = getAssetConfig(type);+ if (type === AssetType.ROLE_ICON && (dimensions.width < config.minWidth || dimensions.height < config.minHeight)) {+ return false;+ }return isOriginalImageWithinAssetBounds(dimensions,getAssetAspectRatioRange(type),@@ -233,6 +256,8 @@ const getTitle = (i18n: I18n, assetType: AssetType): string => {return i18n._(CROP_INVITE_BACKGROUND_TITLE_DESCRIPTOR);case AssetType.EMBED_SPLASH:return i18n._(CROP_CHAT_EMBED_BACKGROUND_TITLE_DESCRIPTOR);+ case AssetType.ROLE_ICON:+ return i18n._(CROP_ROLE_ICON_TITLE_DESCRIPTOR);}};const getDescription = (i18n: I18n, assetType: AssetType): string => {@@ -253,6 +278,8 @@ const getDescription = (i18n: I18n, assetType: AssetType): string => {return i18n._(INVITE_BACKGROUND_CROP_DESCRIPTION_DESCRIPTOR, dimensions);case AssetType.EMBED_SPLASH:return i18n._(CHAT_EMBED_BACKGROUND_CROP_DESCRIPTION_DESCRIPTOR, dimensions);+ case AssetType.ROLE_ICON:+ return i18n._(ROLE_ICON_CROP_DESCRIPTION_DESCRIPTOR, dimensions);}};const getSaveButtonLabel = (i18n: I18n, assetType: AssetType): string => {@@ -261,6 +288,7 @@ const getSaveButtonLabel = (i18n: I18n, assetType: AssetType): string => {return i18n._(SAVE_AVATAR_DESCRIPTOR);case AssetType.GUILD_ICON:case AssetType.CHANNEL_ICON:+ case AssetType.ROLE_ICON:return i18n._(SAVE_ICON_DESCRIPTOR);case AssetType.GUILD_BANNER:case AssetType.PROFILE_BANNER:@@ -276,6 +304,7 @@ const getErrorMessage = (i18n: I18n, assetType: AssetType): string => {return i18n._(FAILED_TO_CROP_AVATAR_PLEASE_TRY_AGAIN_DESCRIPTOR);case AssetType.GUILD_ICON:case AssetType.CHANNEL_ICON:+ case AssetType.ROLE_ICON:return i18n._(FAILED_TO_CROP_ICON_PLEASE_TRY_AGAIN_DESCRIPTOR);case AssetType.GUILD_BANNER:case AssetType.PROFILE_BANNER:@@ -310,7 +339,9 @@ export const AssetCropModal: React.FC<AssetCropModalProps> = observer(cropShape={config.cropShape}maxWidth={config.maxWidth}maxHeight={config.maxHeight}- sizeLimitBytes={GlobalLimits.getAvatarMaxSize()}+ sizeLimitBytes={+ assetType === AssetType.ROLE_ICON ? getPolicy('role_icon').maxBytes : GlobalLimits.getAvatarMaxSize()+ }minHeightRatio={config.minHeightRatio}maxHeightRatio={config.maxHeightRatio}canSkipOriginal={(dimensions) => canSkipOriginalAssetImage(assetType, dimensions)}diff --git a/fluxer_app/src/features/expressions/components/popouts/ExpressionPickerPopout.tsx b/fluxer_app/src/features/expressions/components/popouts/ExpressionPickerPopout.tsxindex 5c19c99b2..56fdeed57 100644--- a/fluxer_app/src/features/expressions/components/popouts/ExpressionPickerPopout.tsx+++ b/fluxer_app/src/features/expressions/components/popouts/ExpressionPickerPopout.tsx@@ -82,6 +82,11 @@ const EXPRESSION_PICKER_WIDTH_SNAP = {};const EXPRESSION_PICKER_DEFAULT_SIZE = {width: 592, height: 690};const EXPRESSION_PICKER_MIN_SIZE = {width: 360, height: 360};+const ROLE_ICON_PICKER_COLUMNS = 8;+const ROLE_ICON_PICKER_SIZE = {+ width: EXPRESSION_PICKER_GRID_CHROME_WIDTH + EMOJI_GRID_TRACK_WIDTH * ROLE_ICON_PICKER_COLUMNS,+ height: EXPRESSION_PICKER_MIN_SIZE.height,+};const EXPRESSION_PICKER_VIEWPORT_PADDING = 16;const EXPRESSION_PICKER_RESIZING_CLASS = 'expression-picker-resizing';const EXPRESSION_PICKER_RESIZE_CURSOR_PROPERTY = '--expression-picker-resize-cursor';@@ -107,6 +112,7 @@ interface ExpressionPickerCategory {label: string;renderComponent: (props: {channelId?: string;+ roleIconGuildId?: string;onSelect: (emoji: FlatEmoji, shiftKey?: boolean) => void;onClose?: () => void;}) => React.ReactNode;@@ -155,9 +161,10 @@ const createAllCategories = (i18n: I18n): Array<ExpressionPickerCategory> => [{type: 'emojis' as const,label: i18n._(EMOJIS_DESCRIPTOR),- renderComponent: ({channelId, onSelect}) => (+ renderComponent: ({channelId, roleIconGuildId, onSelect}) => (<EmojiPickerchannelId={channelId}+ roleIconGuildId={roleIconGuildId}handleSelect={onSelect}data-flx="expressions.expression-picker-popout.render-component.emoji-picker"/>@@ -167,6 +174,7 @@ const createAllCategories = (i18n: I18n): Array<ExpressionPickerCategory> => [interface ExpressionPickerPopoutProps {channelId?: string;+ roleIconGuildId?: string;onEmojiSelect: (emoji: FlatEmoji, shiftKey?: boolean) => void;onClose?: () => void;visibleTabs?: Array<ExpressionPickerTabType>;@@ -186,6 +194,7 @@ const RESIZE_HANDLE_LABELS: ResizablePaneHandleLabels = {export const ExpressionPickerPopout = observer(({channelId,+ roleIconGuildId,onEmojiSelect,onClose,visibleTabs = ['gifs', 'memes', 'stickers', 'emojis'],@@ -265,6 +274,8 @@ export const ExpressionPickerPopout = observer([categories, setSelectedTab],);const showTabs = categories.length > 1;+ const isRoleIconPicker = roleIconGuildId !== undefined;+ const pickerSize = isRoleIconPicker ? ROLE_ICON_PICKER_SIZE : size;const [headerPortalElement, setHeaderPortalElement] = useState<HTMLDivElement | null>(null);const headerPortalCallback = useCallback((node: HTMLDivElement | null) => {setHeaderPortalElement(node);@@ -275,7 +286,7 @@ export const ExpressionPickerPopout = observer(<divref={containerRef}className={clsx(styles.container, showTabs ? styles.containerWithTabs : styles.containerNoTabs)}- style={{width: remFromPx(size.width), height: remFromPx(size.height)}}+ style={{width: remFromPx(pickerSize.width), height: remFromPx(pickerSize.height)}}data-flx="expressions.expression-picker-popout.container"><div className={styles.header} data-flx="expressions.expression-picker-popout.header">@@ -323,13 +334,15 @@ export const ExpressionPickerPopout = observer(/></div><div className={styles.content} data-flx="expressions.expression-picker-popout.content">- {selectedCategory.renderComponent({channelId, onSelect: handleEmojiSelect, onClose})}+ {selectedCategory.renderComponent({channelId, roleIconGuildId, onSelect: handleEmojiSelect, onClose})}</div>- <ResizablePaneHandles- getHandleProps={getHandleProps}- labels={RESIZE_HANDLE_LABELS}- data-flx="expressions.expression-picker-popout.resizable-pane-handles"- />+ {!isRoleIconPicker && (+ <ResizablePaneHandles+ getHandleProps={getHandleProps}+ labels={RESIZE_HANDLE_LABELS}+ data-flx="expressions.expression-picker-popout.resizable-pane-handles"+ />+ )}</div></ExpressionPickerHeaderContext.Provider>);diff --git a/fluxer_app/src/features/expressions/utils/ExpressionPermissionUtils.ts b/fluxer_app/src/features/expressions/utils/ExpressionPermissionUtils.tsindex bd9dbff40..91f5f0748 100644--- a/fluxer_app/src/features/expressions/utils/ExpressionPermissionUtils.ts+++ b/fluxer_app/src/features/expressions/utils/ExpressionPermissionUtils.ts@@ -57,6 +57,14 @@ export function checkEmojiAvailability(i18n: I18n, emoji: FlatEmoji, channel: Chreturn checkEmojiAvailabilityWithGuildFallback(i18n, emoji, channel, null);}+export function checkRoleIconEmojiAvailability(emoji: FlatEmoji, guildId: string): AvailabilityCheck {+ return {+ canUse: !emoji.guildId || emoji.guildId === guildId,+ isLockedByPremium: false,+ isLockedByPermission: false,+ };+}+export function checkEmojiAvailabilityWithGuildFallback(i18n: I18n,emoji: FlatEmoji,diff --git a/fluxer_app/src/features/expressions/utils/ImageCropUtils.ts b/fluxer_app/src/features/expressions/utils/ImageCropUtils.tsindex b7dca2f31..697993a63 100644--- a/fluxer_app/src/features/expressions/utils/ImageCropUtils.ts+++ b/fluxer_app/src/features/expressions/utils/ImageCropUtils.ts@@ -78,12 +78,21 @@ async function containToSquareBase64(maxBytes: number,preferredMime: StaticOutputMime,): Promise<string> {+ return readBlobAsBase64NoPrefix(await containImageInSquare(file, target, maxBytes, preferredMime));+}++export async function containImageInSquare(+ image: Blob,+ target: number,+ maxBytes: number,+ preferredMime: StaticOutputMime = 'image/png',+): Promise<Blob> {const canvas = document.createElement('canvas');canvas.width = target;canvas.height = target;const ctx = canvas.getContext('2d');if (!ctx) throw new Error('Could not create canvas context');- const objectUrl = URL.createObjectURL(file);+ const objectUrl = URL.createObjectURL(image);try {const img = await loadImageElement(objectUrl);const sourcePixels = img.naturalWidth * img.naturalHeight;@@ -104,7 +113,7 @@ async function containToSquareBase64(URL.revokeObjectURL(objectUrl);}- return readBlobAsBase64NoPrefix(await encodeCanvasWithinBytes(canvas, ctx, preferredMime, maxBytes));+ return encodeCanvasWithinBytes(canvas, ctx, preferredMime, maxBytes);}export async function fitImageWithin(file: File, maxSide: number, maxBytes: number): Promise<Blob> {diff --git a/fluxer_app/src/features/guild/commands/GuildCommands.ts b/fluxer_app/src/features/guild/commands/GuildCommands.tsindex c0b8d1a1f..47ddc41c6 100644--- a/fluxer_app/src/features/guild/commands/GuildCommands.ts+++ b/fluxer_app/src/features/guild/commands/GuildCommands.ts@@ -259,12 +259,13 @@ export async function updateVanityURL(guildId: string, code: string | null): Proexport async function createRole(guildId: string,name: string,- options?: {color?: number; permissions?: bigint},+ options?: {color?: number; permissions?: bigint; iconSourceRoleId?: string},): Promise<GuildRole> {try {- const body: {name: string; color?: number; permissions?: string} = {name};+ const body: {name: string; color?: number; permissions?: string; icon_source_role_id?: string} = {name};if (options?.color !== undefined) body.color = options.color;if (options?.permissions !== undefined) body.permissions = options.permissions.toString();+ if (options?.iconSourceRoleId !== undefined) body.icon_source_role_id = options.iconSourceRoleId;const response = await http.post<GuildRole>(Endpoints.GUILD_ROLES(guildId), {body});logger.debug(`Created role "${name}" in guild ${guildId}`);return response.body;diff --git a/fluxer_app/src/features/guild/components/RoleIcon.module.css b/fluxer_app/src/features/guild/components/RoleIcon.module.cssnew file mode 100644index 000000000..fa1aa46b0--- /dev/null+++ b/fluxer_app/src/features/guild/components/RoleIcon.module.css@@ -0,0 +1,28 @@+/* SPDX-License-Identifier: AGPL-3.0-or-later */++.roleIcon {+ display: inline-flex;+ flex-shrink: 0;+ align-items: center;+ justify-content: center;+ cursor: default;+ user-select: none;+ -webkit-user-select: none;+}++.roleIconImage {+ display: block;+ object-fit: contain;+ pointer-events: none;+ filter: var(--role-icon-image-filter, none);+}++:global(.theme-light) {+ --role-icon-image-filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.35));+}++:global(.theme-dark),+:global(.theme-coal),+:global(.theme-dark_legacy) {+ --role-icon-image-filter: none;+}diff --git a/fluxer_app/src/features/guild/components/RoleIcon.tsx b/fluxer_app/src/features/guild/components/RoleIcon.tsxnew file mode 100644index 000000000..a8f66fbb0--- /dev/null+++ b/fluxer_app/src/features/guild/components/RoleIcon.tsx@@ -0,0 +1,85 @@+// SPDX-License-Identifier: AGPL-3.0-or-later++import * as EmojiUtils from '@app/features/expressions/utils/EmojiUtils';+import UnicodeEmojis from '@app/features/expressions/utils/UnicodeEmojis';+import styles from '@app/features/guild/components/RoleIcon.module.css';+import type {GuildRole} from '@app/features/guild/models/GuildRole';+import {remFromPx} from '@app/features/theme/layout/RemFromPx';+import {Tooltip} from '@app/features/ui/tooltip/Tooltip';+import {getRoleIconURL} from '@app/features/user/utils/AvatarUtils';+import {msg} from '@lingui/core/macro';+import {useLingui} from '@lingui/react/macro';+import {clsx} from 'clsx';+import {observer} from 'mobx-react-lite';+import {useState} from 'react';++export type RoleIconSize = 16 | 20 | 40;++const ROLE_ICON_LABEL_DESCRIPTOR = msg({+ message: 'Role icon, {roleName}',+ comment:+ 'Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.',+});++const EMOJI_IMAGE_SIZE: Record<RoleIconSize, number> = {16: 14, 20: 18, 40: 36};++interface RoleIconProps {+ role: Pick<GuildRole, 'id' | 'name' | 'icon' | 'unicodeEmoji'>;+ size: RoleIconSize;+ decorative?: boolean;+ className?: string;+}++function getImageSize(role: RoleIconProps['role'], size: RoleIconSize): number {+ return role.icon ? size : EMOJI_IMAGE_SIZE[size];+}++function resolveRoleIconSource(role: RoleIconProps['role'], size: RoleIconSize): string | null {+ if (role.icon) {+ return getRoleIconURL({id: role.id, icon: role.icon}, size) || null;+ }+ if (role.unicodeEmoji) {+ return EmojiUtils.getEmojiURL(UnicodeEmojis.normalizeEmojiNameToSurrogate(role.unicodeEmoji));+ }+ return null;+}++export const RoleIcon = observer(function RoleIcon({role, size, decorative = false, className}: RoleIconProps) {+ const {i18n} = useLingui();+ const src = resolveRoleIconSource(role, size);+ const [failedSrc, setFailedSrc] = useState<string | null>(null);+ if (!src || failedSrc === src) {+ return null;+ }+ const imageSize = getImageSize(role, size);+ const labelProps = decorative+ ? {'aria-hidden': true}+ : {role: 'img', 'aria-label': i18n._(ROLE_ICON_LABEL_DESCRIPTOR, {roleName: role.name})};+ const icon = (+ <span+ className={clsx(styles.roleIcon, className)}+ style={{width: remFromPx(size), height: remFromPx(size)}}+ {...labelProps}+ data-flx="guild.role-icon.role-icon"+ >+ <img+ src={src}+ alt=""+ style={{width: remFromPx(imageSize), height: remFromPx(imageSize)}}+ draggable={false}+ loading="lazy"+ className={styles.roleIconImage}+ onError={() => setFailedSrc(src)}+ data-flx="guild.role-icon.role-icon-image"+ />+ </span>+ );+ if (decorative) {+ return icon;+ }+ return (+ <Tooltip text={role.name} ariaHidden={true} data-flx="guild.role-icon.tooltip">+ {icon}+ </Tooltip>+ );+});diff --git a/fluxer_app/src/features/guild/components/RoleManagement.module.css b/fluxer_app/src/features/guild/components/RoleManagement.module.cssindex dae69e3e0..ea9ee1a6a 100644--- a/fluxer_app/src/features/guild/components/RoleManagement.module.css+++ b/fluxer_app/src/features/guild/components/RoleManagement.module.css@@ -21,6 +21,7 @@border: 0.0625rem solid var(--background-header-secondary);background-color: var(--background-primary);padding: 0.25rem;+ gap: 0.25rem;font-weight: 600;font-size: 0.75rem;line-height: 1rem;diff --git a/fluxer_app/src/features/guild/components/RoleManagement.tsx b/fluxer_app/src/features/guild/components/RoleManagement.tsxindex 5b34aa2ee..e08e81bec 100644--- a/fluxer_app/src/features/guild/components/RoleManagement.tsx+++ b/fluxer_app/src/features/guild/components/RoleManagement.tsx@@ -2,6 +2,7 @@import {ConfirmModal} from '@app/features/app/components/dialogs/ConfirmModal';import {GuildSettingsModal} from '@app/features/app/components/dialogs/LoadableSettingsModals';+import {RoleIcon} from '@app/features/guild/components/RoleIcon';import styles from '@app/features/guild/components/RoleManagement.module.css';import type {GuildRole} from '@app/features/guild/models/GuildRole';import GuildSettingsModalState from '@app/features/guild/state/GuildSettingsModal';@@ -109,6 +110,7 @@ const RoleBadge: React.FC<{{roleIndicator}</div>)}+ <RoleIcon role={role} size={16} decorative={true} data-flx="guild.role-management.role-badge.role-icon" /><div className={styles.roleName} data-flx="guild.role-management.role-badge.role-name">{role.name}</div>diff --git a/fluxer_app/src/features/guild/components/modals/guild_tabs/GuildRolesTab.module.css b/fluxer_app/src/features/guild/components/modals/guild_tabs/GuildRolesTab.module.cssindex 450e6c3c5..161513267 100644--- a/fluxer_app/src/features/guild/components/modals/guild_tabs/GuildRolesTab.module.css+++ b/fluxer_app/src/features/guild/components/modals/guild_tabs/GuildRolesTab.module.css@@ -215,6 +215,15 @@flex-shrink: 0;}+.roleIconSlot {+ display: flex;+ width: 1rem;+ height: 1rem;+ flex-shrink: 0;+ align-items: center;+ justify-content: center;+}+.overwriteName {flex: 1 1 0%;min-width: 0;diff --git a/fluxer_app/src/features/guild/components/modals/guild_tabs/GuildRolesTab.tsx b/fluxer_app/src/features/guild/components/modals/guild_tabs/GuildRolesTab.tsxindex f13dfff0d..f00032b47 100644--- a/fluxer_app/src/features/guild/components/modals/guild_tabs/GuildRolesTab.tsx+++ b/fluxer_app/src/features/guild/components/modals/guild_tabs/GuildRolesTab.tsx@@ -319,6 +319,13 @@ const GuildRolesTab: React.FC<{guildId: string}> = observer(({guildId}) => {if (updates.permissions !== undefined) {updateData.permissions = (updates.permissions & ~retiredPermissions).toString();}+ const originalRole = guild.roles[roleId];+ if (updates.icon !== undefined && updates.icon !== originalRole?.icon) {+ updateData.icon = updates.icon;+ }+ if (updates.unicodeEmoji !== undefined && updates.unicodeEmoji !== originalRole?.unicodeEmoji) {+ updateData.unicode_emoji = updates.unicodeEmoji;+ }await GuildCommands.updateRole(guild.id, roleId, updateData);}setRoleUpdates(new Map());@@ -367,7 +374,9 @@ const GuildRolesTab: React.FC<{guildId: string}> = observer(({guildId}) => {(merged.color !== undefined && merged.color !== originalRole.color) ||(merged.hoist !== undefined && merged.hoist !== originalRole.hoist) ||(merged.mentionable !== undefined && merged.mentionable !== originalRole.mentionable) ||- (merged.permissions !== undefined && merged.permissions !== originalRole.permissions);+ (merged.permissions !== undefined && merged.permissions !== originalRole.permissions) ||+ (merged.icon !== undefined && merged.icon !== originalRole.icon) ||+ (merged.unicodeEmoji !== undefined && merged.unicodeEmoji !== originalRole.unicodeEmoji);if (hasChanges) newMap.set(roleId, merged);else newMap.delete(roleId);return newMap;@@ -402,6 +411,7 @@ const GuildRolesTab: React.FC<{guildId: string}> = observer(({guildId}) => {const createdRole = await GuildCommands.createRole(guild.id, copyName, {color: sourceRole.color,permissions: grantablePermissions,+ iconSourceRoleId: sourceRole.icon || sourceRole.unicodeEmoji ? sourceRole.id : undefined,});const orderedRoleIds = roles.map((role: GuildRole) => role.id).filter((id) => id !== createdRole.id);const sourceIndex = orderedRoleIds.indexOf(sourceRoleId);@@ -616,6 +626,15 @@ const GuildRolesTab: React.FC<{guildId: string}> = observer(({guildId}) => {}, [selectedRole, handleRoleUpdate]);const handleEnterHoistOrderMode = useCallback(() => setHoistOrderMode(true), []);const handleExitHoistOrderMode = useCallback(() => setHoistOrderMode(false), []);+ const reserveIconSlot = useMemo(+ () =>+ roles.some((role) => {+ if (role.isEveryone) return false;+ const roleWithUpdates = applyRoleUpdate(role, roleUpdates.get(role.id));+ return Boolean(roleWithUpdates.icon || roleWithUpdates.unicodeEmoji);+ }),+ [roles, roleUpdates],+ );const sidebarContent = useMemo(() => {if (!guild || !currentUser) return null;return (@@ -628,6 +647,7 @@ const GuildRolesTab: React.FC<{guildId: string}> = observer(({guildId}) => {hoistOrderMode={hoistOrderMode}hasCustomHoistOrder={hasCustomHoistOrder}roleUpdates={roleUpdates}+ reserveIconSlot={reserveIconSlot}isRoleLocked={isRoleLocked}onSelectRole={setSelectedRoleId}onCreateRole={handleCreateRole}@@ -660,6 +680,7 @@ const GuildRolesTab: React.FC<{guildId: string}> = observer(({guildId}) => {handleHoistDrop,handleResetHoistOrder,roleUpdates,+ reserveIconSlot,isRoleLocked,hoistOrderMode,hasCustomHoistOrder,diff --git a/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsx b/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxindex 376f422b6..b40f28db5 100644--- a/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsx+++ b/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsx@@ -3,6 +3,7 @@import {PermissionRoleCategory} from '@app/features/app/components/dialogs/shared/PermissionComponents';import {LayoutToggleButtons} from '@app/features/channel/components/modals/channel_tabs/channel_permissions_tab/LayoutToggleButtons';import styles from '@app/features/guild/components/modals/guild_tabs/GuildRolesTab.module.css';+import {RoleIconField} from '@app/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField';import type {RoleUpdate} from '@app/features/guild/components/modals/guild_tabs/guild_roles_tab/shared';import type {GuildRole} from '@app/features/guild/models/GuildRole';import type * as PermissionUtils from '@app/features/permissions/utils/PermissionUtils';@@ -174,6 +175,15 @@ export const RoleEditor: React.FC<RoleEditorProps> = observer(/></div></div>+ {!selectedRoleWithUpdates.isEveryone && (+ <RoleIconField+ key={selectedRoleWithUpdates.id}+ role={selectedRoleWithUpdates}+ disabled={selectedRoleLocked || !canManageRoles}+ onChange={(updates) => selectedRole && onRoleUpdate(selectedRole.id, updates)}+ data-flx="guild.guild-tabs.guild-roles-tab.role-editor.role-icon-field"+ />+ )}{!selectedRoleWithUpdates.isEveryone && (<div className={styles.settingsGroup} data-flx="guild.guild-tabs.guild-roles-tab.settings-group"><Switchdiff --git a/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.module.css b/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.module.cssnew file mode 100644index 000000000..1900f7035--- /dev/null+++ b/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.module.css@@ -0,0 +1,134 @@+/* SPDX-License-Identifier: AGPL-3.0-or-later */++.field {+ display: flex;+ flex-direction: column;+ gap: 0.5rem;+ margin-top: 1rem;+}++.label {+ margin: 0;+ font-weight: 500;+ font-size: 0.875rem;+ line-height: 1.25rem;+ color: var(--text-primary);+}++.description {+ margin: 0;+ font-size: 0.875rem;+ line-height: 1.25rem;+ color: var(--text-primary-muted);+}++.body {+ display: flex;+ align-items: center;+ gap: 1rem;+}++.preview,+.emptyPreview {+ display: flex;+ box-sizing: border-box;+ flex-shrink: 0;+ align-items: center;+ justify-content: center;+ width: 4rem;+ height: 4rem;+ padding: 0.75rem;+ border-radius: 0.5rem;+ background-color: var(--background-secondary);+ color: var(--text-primary-muted);+}++.preview {+ border: 0.0625rem solid var(--background-header-secondary);+ cursor: pointer;+}++.preview:hover:not(:disabled) {+ background-color: var(--background-modifier-hover);+}++.preview:disabled {+ cursor: default;+}++.emptyPreview {+ border: 0.0625rem dashed var(--background-modifier-accent);+ cursor: pointer;+}++.emptyPreview > svg {+ pointer-events: none;+}++.emptyPreview:hover:not(:disabled),+.previewDragging {+ border-color: var(--brand-primary);+ background-color: var(--background-modifier-hover);+ color: var(--text-primary);+}++.emptyPreview:disabled {+ cursor: not-allowed;+ opacity: 0.5;+}++.controls {+ display: flex;+ min-width: 0;+ flex-direction: column;+ gap: 0.5rem;+}++.buttons {+ display: flex;+ flex-wrap: wrap;+ align-items: center;+ gap: 0.5rem;+}++.hint {+ margin: 0;+ font-size: 0.75rem;+ line-height: 1rem;+ color: var(--text-primary-muted);+}++.usagePreview {+ display: grid;+ margin-top: 0.5rem;+ overflow: hidden;+ border-radius: 0.5rem;+ border: 0.0625rem solid var(--background-header-secondary);+}++.usagePreviewSurface {+ --message-timestamp-color: var(--text-primary-muted);+ padding: 1rem;+ background-color: var(--background-primary);+ color: var(--text-primary);+}++.error {+ margin: 0;+ font-size: 0.875rem;+ line-height: 1.25rem;+ color: color-mix(in srgb, var(--status-danger) 78%, var(--text-primary) 22%);+}++.liveRegion {+ position: absolute;+ width: 0.0625rem;+ height: 0.0625rem;+ margin: -0.0625rem;+ padding: 0;+ border: 0;+ overflow: hidden;+ clip: rect(0 0 0 0);+ clip-path: inset(50%);+ white-space: nowrap;+}diff --git a/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx b/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxnew file mode 100644index 000000000..2c3cfad2c--- /dev/null+++ b/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx@@ -0,0 +1,479 @@+// SPDX-License-Identifier: AGPL-3.0-or-later++import {getRoleColor} from '@app/features/app/components/dialogs/shared/PermissionComponents';+import {Message} from '@app/features/channel/components/ChannelMessage';+import {Channel} from '@app/features/channel/models/Channel';+import Channels from '@app/features/channel/state/Channels';+import {EmojiPickerPopout} from '@app/features/emoji/components/popouts/EmojiPickerPopout';+import type {FlatEmoji, UnicodeEmoji} from '@app/features/emoji/types/EmojiTypes';+import {AssetCropModal, AssetType} from '@app/features/expressions/components/modals/AssetCropModal';+import {inspectImageFile} from '@app/features/expressions/utils/AnimatedImageUtils';+import {buildCustomEmojiURL} from '@app/features/expressions/utils/CustomEmojiImageUrl';+import {containImageInSquare} from '@app/features/expressions/utils/ImageCropUtils';+import UnicodeEmojis from '@app/features/expressions/utils/UnicodeEmojis';+import styles from '@app/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.module.css';+import type {RoleUpdate} from '@app/features/guild/components/modals/guild_tabs/guild_roles_tab/shared';+import {RoleIcon} from '@app/features/guild/components/RoleIcon';+import type {GuildRole} from '@app/features/guild/models/GuildRole';+import {Message as MessageModel} from '@app/features/messaging/models/MessagingMessage';+import {wrapDesktopLocalResourceURL} from '@app/features/messaging/utils/DesktopResourceUrl';+import {openFilePicker} from '@app/features/messaging/utils/FilePickerUtils';+import {formatFileSize} from '@app/features/messaging/utils/FileUtils';+import {toReactionEmoji} from '@app/features/messaging/utils/ReactionUtils';+import {readBlobAsDataUrl} from '@app/features/platform/utils/BlobDataUrl';+import {Button} from '@app/features/ui/button/Button';+import * as ModalCommands from '@app/features/ui/commands/ModalCommands';+import {modal} from '@app/features/ui/commands/ModalCommands';+import FocusRing from '@app/features/ui/focus_ring/FocusRing';+import {Popout} from '@app/features/ui/popover/PopoverPopout';+import type {User} from '@app/features/user/models/User';+import Users from '@app/features/user/state/Users';+import * as NicknameUtils from '@app/features/user/utils/NicknameUtils';+import {+ formatAssetUploadExtensions,+ getAcceptString,+ getPolicy,+ isExtensionAllowed,+} from '@fluxer/constants/src/AssetFormatPolicy';+import {MessagePreviewContext, MessageStates, MessageTypes} from '@fluxer/constants/src/ChannelConstants';+import type {I18n, MessageDescriptor} from '@lingui/core';+import {msg} from '@lingui/core/macro';+import {Trans, useLingui} from '@lingui/react/macro';+import {ImageIcon} from '@phosphor-icons/react';+import {clsx} from 'clsx';+import {observer} from 'mobx-react-lite';+import {type DragEvent, useEffect, useId, useMemo, useRef, useState} from 'react';++const ROLE_ICON_DESCRIPTOR = msg({+ message: 'Role icon',+ comment: 'Label of the role icon field in the community role editor.',+});+const ROLE_ICON_HELP_DESCRIPTOR = msg({+ message: 'Upload an image or pick an emoji. Members get the icon of their highest role that has one.',+ comment: 'Helper text under the role icon label in the community role editor.',+});+const CHOOSE_EMOJI_DESCRIPTOR = msg({+ message: 'Choose emoji',+ comment: 'Button in the role icon field that opens the emoji picker. Keep it short.',+});+const ROLE_ICON_UPLOAD_HINT_DESCRIPTOR = msg({+ message: '{formats}. At least {minimumSize}, up to {maxSize}.',+ comment:+ 'Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.',+});+const UPLOAD_ROLE_ICON_DESCRIPTOR = msg({+ message: 'Upload role icon',+ comment:+ 'Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.',+});+const CURRENT_EMOJI_ROLE_ICON_DESCRIPTOR = msg({+ message: 'Current role icon, {emojiName}',+ comment:+ 'Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.',+});+const CURRENT_IMAGE_ROLE_ICON_DESCRIPTOR = msg({+ message: 'Current role icon, uploaded image',+ comment:+ 'Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.',+});+const USAGE_PREVIEW_MESSAGE_DESCRIPTOR = msg({+ message: 'This is how messages appear',+ comment: 'Sample message text in the role icon preview of the community role editor.',+});+const ANIMATED_ROLE_ICON_DESCRIPTOR = msg({+ message: 'Animated icons are not supported. Use a static image.',+ comment: 'Error under the role icon buttons when the picked image is animated.',+});+const UNSUPPORTED_ROLE_ICON_TYPE_DESCRIPTOR = msg({+ message: 'This file type is not supported. Supported types are {formats}.',+ comment:+ 'Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.',+});+const IMAGE_COULD_NOT_BE_LOADED_DESCRIPTOR = msg({+ message: 'This image could not be loaded. Try another one.',+ comment: 'Error under the role icon buttons when the picked image or emoji could not be used.',+});++const ROLE_ICON_POLICY = getPolicy('role_icon');+const ROLE_ICON_MAX_BYTES = ROLE_ICON_POLICY.maxBytes;+const ROLE_ICON_MIN_DIMENSION = ROLE_ICON_POLICY.dims?.min ?? 0;+const CUSTOM_EMOJI_ICON_SIZE = 128;+const USAGE_PREVIEW_CHANNEL_ID = '1000000000000000060';+const USAGE_PREVIEW_MESSAGE_ID = '1000000000000000061';++interface RoleIconFieldProps {+ role: GuildRole;+ disabled: boolean;+ onChange: (updates: Pick<RoleUpdate, 'icon' | 'unicodeEmoji'>) => void;+}++async function fetchCustomEmojiDataUrl(id: string): Promise<string> {+ const response = await fetch(+ wrapDesktopLocalResourceURL(buildCustomEmojiURL({id, animated: false, size: CUSTOM_EMOJI_ICON_SIZE})),+ );+ if (!response.ok) {+ throw new Error(`Emoji image request failed with status ${response.status}`);+ }+ const square = await containImageInSquare(await response.blob(), CUSTOM_EMOJI_ICON_SIZE, ROLE_ICON_MAX_BYTES);+ return readBlobAsDataUrl(square);+}++async function raiseToMinimumSize(image: Blob): Promise<Blob> {+ const bitmap = await createImageBitmap(image);+ const {width, height} = bitmap;+ bitmap.close();+ if (width >= ROLE_ICON_MIN_DIMENSION && height >= ROLE_ICON_MIN_DIMENSION) {+ return image;+ }+ return containImageInSquare(image, ROLE_ICON_MIN_DIMENSION * 2, ROLE_ICON_MAX_BYTES);+}++function getTileLabel(i18n: I18n, role: GuildRole): string {+ if (role.icon) {+ return i18n._(CURRENT_IMAGE_ROLE_ICON_DESCRIPTOR);+ }+ if (role.unicodeEmoji) {+ const surrogate = UnicodeEmojis.normalizeEmojiNameToSurrogate(role.unicodeEmoji);+ return i18n._(CURRENT_EMOJI_ROLE_ICON_DESCRIPTOR, {+ emojiName: UnicodeEmojis.nameForSurrogate(surrogate, true, role.unicodeEmoji),+ });+ }+ return i18n._(UPLOAD_ROLE_ICON_DESCRIPTOR);+}++const RoleIconUsagePreview = observer(function RoleIconUsagePreview({role, user}: {role: GuildRole; user: User}) {+ const {i18n} = useLingui();+ const channel = useMemo(+ () =>+ new Channel({+ id: USAGE_PREVIEW_CHANNEL_ID,+ type: 0,+ name: 'role-icon-preview',+ position: 0,+ parent_id: null,+ topic: null,+ url: null,+ nsfw: false,+ last_message_id: null,+ last_pin_timestamp: null,+ bitrate: null,+ user_limit: null,+ permission_overwrites: [],+ }),+ [],+ );+ useEffect(() => {+ Channels.handleChannelCreate({channel: channel.toJSON()});+ return () => {+ Channels.handleChannelDelete({channel: channel.toJSON()});+ };+ }, [channel]);+ const message = useMemo(+ () =>+ new MessageModel(+ {+ id: USAGE_PREVIEW_MESSAGE_ID,+ channel_id: USAGE_PREVIEW_CHANNEL_ID,+ author: user.toJSON(),+ type: MessageTypes.DEFAULT,+ flags: 0,+ pinned: false,+ mention_everyone: false,+ content: i18n._(USAGE_PREVIEW_MESSAGE_DESCRIPTOR),+ timestamp: new Date().toISOString(),+ state: MessageStates.SENT,+ },+ {skipUserCache: true},+ ),+ [user, i18n.locale],+ );+ const previewOverrides = useMemo(+ () => ({+ usernameColor: role.color === 0 ? undefined : getRoleColor(role.color),+ displayName: NicknameUtils.getNickname(user, role.guildId),+ iconRole: role,+ }),+ [role, user],+ );+ return (+ <div+ className={styles.usagePreview}+ aria-hidden="true"+ inert={true}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.usage-preview"+ >+ {(['dark', 'light'] as const).map((theme) => (+ <div+ key={theme}+ className={clsx(`theme-${theme}`, styles.usagePreviewSurface)}+ data-flx={`guild.guild-tabs.guild-roles-tab.role-icon-field.usage-preview.${theme}`}+ >+ <Message+ channel={channel}+ message={message}+ compact={false}+ removeTopSpacing={true}+ previewContext={MessagePreviewContext.SETTINGS}+ previewOverrides={previewOverrides}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.usage-preview.message"+ />+ </div>+ ))}+ </div>+ );+});++export const RoleIconField = observer(function RoleIconField({role, disabled, onChange}: RoleIconFieldProps) {+ const {i18n} = useLingui();+ const [error, setError] = useState<MessageDescriptor | null>(null);+ const [isDraggingFile, setIsDraggingFile] = useState(false);+ const [announcement, setAnnouncement] = useState('');+ const tileRef = useRef<HTMLButtonElement>(null);+ const focusTileRef = useRef(false);+ const announceRef = useRef(false);+ const stageTokenRef = useRef(0);+ const labelId = useId();+ const descriptionId = useId();+ const hintId = useId();+ const hasIcon = role.icon !== null || role.unicodeEmoji !== null;+ const currentIconLabel = getTileLabel(i18n, role);+ const currentUser = Users.getCurrentUser();+ const formats = formatAssetUploadExtensions('role_icon');+ useEffect(() => {+ setError(null);+ if (announceRef.current && hasIcon) {+ setAnnouncement(currentIconLabel);+ }+ announceRef.current = false;+ }, [role.icon, role.unicodeEmoji]);+ useEffect(() => {+ if (!hasIcon && focusTileRef.current) {+ focusTileRef.current = false;+ tileRef.current?.focus();+ }+ }, [hasIcon]);+ const uploadHint = i18n._(ROLE_ICON_UPLOAD_HINT_DESCRIPTOR, {+ formats,+ minimumSize: `${ROLE_ICON_MIN_DIMENSION}×${ROLE_ICON_MIN_DIMENSION}px`,+ maxSize: formatFileSize(i18n.locale, ROLE_ICON_MAX_BYTES),+ });+ const stageImage = (dataUrl: string) => {+ stageTokenRef.current += 1;+ setError(null);+ announceRef.current = true;+ onChange({icon: dataUrl, unicodeEmoji: null});+ };+ const handleFile = async (file: File) => {+ stageTokenRef.current += 1;+ setError(null);+ const {format, animated} = await inspectImageFile(file);+ if (!isExtensionAllowed('role_icon', format)) {+ setError(UNSUPPORTED_ROLE_ICON_TYPE_DESCRIPTOR);+ return;+ }+ if (animated) {+ setError(ANIMATED_ROLE_ICON_DESCRIPTOR);+ return;+ }+ let source: string;+ try {+ source = await readBlobAsDataUrl(file);+ } catch {+ setError(IMAGE_COULD_NOT_BE_LOADED_DESCRIPTOR);+ return;+ }+ ModalCommands.push(+ modal(() => (+ <AssetCropModal+ assetType={AssetType.ROLE_ICON}+ imageUrl={source}+ onCropComplete={async (croppedBlob) => {+ const token = ++stageTokenRef.current;+ try {+ const dataUrl = await readBlobAsDataUrl(await raiseToMinimumSize(croppedBlob));+ if (token === stageTokenRef.current) {+ stageImage(dataUrl);+ }+ } catch {+ if (token === stageTokenRef.current) {+ setError(IMAGE_COULD_NOT_BE_LOADED_DESCRIPTOR);+ }+ }+ }}+ onSkip={file.size <= ROLE_ICON_MAX_BYTES ? () => stageImage(source) : undefined}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.handle-file.asset-crop-modal"+ />+ )),+ );+ };+ const handleUpload = async () => {+ const [file] = await openFilePicker({accept: getAcceptString('role_icon')});+ if (file) {+ await handleFile(file);+ }+ };+ const handleDragOver = (event: DragEvent<HTMLButtonElement>) => {+ if (disabled || !event.dataTransfer.types.includes('Files')) {+ return;+ }+ event.preventDefault();+ event.stopPropagation();+ event.dataTransfer.dropEffect = 'copy';+ setIsDraggingFile(true);+ };+ const handleDrop = async (event: DragEvent<HTMLButtonElement>) => {+ setIsDraggingFile(false);+ if (disabled) {+ return;+ }+ event.preventDefault();+ event.stopPropagation();+ const [file] = event.dataTransfer.files;+ if (file) {+ await handleFile(file);+ }+ };+ const handleEmojiSelect = async (emoji: FlatEmoji) => {+ setError(null);+ const token = ++stageTokenRef.current;+ if (!emoji.id) {+ announceRef.current = true;+ onChange({icon: null, unicodeEmoji: toReactionEmoji(emoji as UnicodeEmoji).name});+ return;+ }+ try {+ const dataUrl = await fetchCustomEmojiDataUrl(emoji.id);+ if (token === stageTokenRef.current) {+ stageImage(dataUrl);+ }+ } catch {+ if (token === stageTokenRef.current) {+ setError(IMAGE_COULD_NOT_BE_LOADED_DESCRIPTOR);+ }+ }+ };+ return (+ <div+ className={styles.field}+ role="group"+ aria-labelledby={labelId}+ aria-describedby={`${descriptionId} ${hintId}`}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.field"+ >+ <div data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.div">+ <p id={labelId} className={styles.label} data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.label">+ {i18n._(ROLE_ICON_DESCRIPTOR)}+ </p>+ <p+ id={descriptionId}+ className={styles.description}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.description"+ >+ {i18n._(ROLE_ICON_HELP_DESCRIPTOR)}+ </p>+ </div>+ <div className={styles.body} data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.body">+ <FocusRing offset={-2} data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.focus-ring">+ <button+ ref={tileRef}+ type="button"+ className={clsx(hasIcon ? styles.preview : styles.emptyPreview, isDraggingFile && styles.previewDragging)}+ onClick={handleUpload}+ onDragOver={handleDragOver}+ onDragLeave={() => setIsDraggingFile(false)}+ onDrop={handleDrop}+ disabled={disabled}+ aria-label={currentIconLabel}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.tile.upload"+ >+ {hasIcon ? (+ <RoleIcon+ role={role}+ size={40}+ decorative={true}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.role-icon"+ />+ ) : (+ <ImageIcon+ size={24}+ aria-hidden="true"+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.image-icon"+ />+ )}+ </button>+ </FocusRing>+ <div className={styles.controls} data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.controls">+ <div className={styles.buttons} data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.buttons">+ <Button+ variant="secondary"+ onClick={handleUpload}+ disabled={disabled}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.button.upload"+ >+ <Trans>Upload image</Trans>+ </Button>+ <Popout+ position="bottom-start"+ offsetMainAxis={8}+ render={({onClose}) => (+ <EmojiPickerPopout+ channelId={null}+ roleIconGuildId={role.guildId}+ handleSelect={handleEmojiSelect}+ onClose={onClose}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.emoji-picker-popout"+ />+ )}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.popout"+ >+ <Button+ variant="secondary"+ disabled={disabled}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.button.choose-emoji"+ >+ {i18n._(CHOOSE_EMOJI_DESCRIPTOR)}+ </Button>+ </Popout>+ {hasIcon && (+ <Button+ variant="secondary"+ onClick={() => {+ stageTokenRef.current += 1;+ setError(null);+ focusTileRef.current = true;+ onChange({icon: null, unicodeEmoji: null});+ }}+ disabled={disabled}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.button.remove-icon"+ >+ <Trans>Remove icon</Trans>+ </Button>+ )}+ </div>+ {error && (+ <p role="alert" className={styles.error} data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.error">+ {i18n._(error, {formats})}+ </p>+ )}+ <p id={hintId} className={styles.hint} data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.hint">+ {uploadHint}+ </p>+ <span+ className={styles.liveRegion}+ aria-live="polite"+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.live-region"+ >+ {announcement}+ </span>+ </div>+ </div>+ {currentUser && (+ <RoleIconUsagePreview+ role={role}+ user={currentUser}+ data-flx="guild.guild-tabs.guild-roles-tab.role-icon-field.role-icon-usage-preview"+ />+ )}+ </div>+ );+});diff --git a/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleItem.tsx b/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleItem.tsxindex 711f77f09..c673af646 100644--- a/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleItem.tsx+++ b/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleItem.tsx@@ -16,6 +16,7 @@ import {type RoleReorderTarget,selectRoleReorderResolution,} from '@app/features/guild/components/modals/guild_tabs/RoleReorderStateMachine';+import {RoleIcon} from '@app/features/guild/components/RoleIcon';import type {GuildRole} from '@app/features/guild/models/GuildRole';import {openRoleContextMenu} from '@app/features/ui/action_menu/RoleContextMenu';import MobileLayout from '@app/features/ui/state/MobileLayout';@@ -41,6 +42,7 @@ interface RoleItemProps {role: GuildRole;isSelected: boolean;isLocked: boolean;+ reserveIconSlot: boolean;isGuildOwner: boolean;isTerminal: boolean;canManageRoles: boolean;@@ -60,6 +62,7 @@ export const RoleItem: React.FC<RoleItemProps> = observer(role,isSelected,isLocked,+ reserveIconSlot,isGuildOwner,isTerminal,canManageRoles,@@ -73,6 +76,7 @@ export const RoleItem: React.FC<RoleItemProps> = observer(const elementRef = useRef<HTMLButtonElement | null>(null);const [dropIndicator, setDropIndicator] = useState<{position: 'top' | 'bottom'; isValid: boolean} | null>(null);const contextMenuOpen = useContextMenuHoverState(elementRef, !MobileLayout.enabled);+ const hasIcon = Boolean(role.icon || role.unicodeEmoji);const canDelete = canManageRoles && !role.isEveryone && !isLocked;const handleContextMenu = useCallback((event: React.MouseEvent<HTMLButtonElement>) => {@@ -240,6 +244,18 @@ export const RoleItem: React.FC<RoleItemProps> = observer(style={{backgroundColor: role.color === 0 ? DEFAULT_ROLE_COLOR_HEX : getRoleColor(role.color)}}data-flx="guild.guild-tabs.guild-roles-tab.role-item.role-dot"/>+ {(hasIcon || reserveIconSlot) && (+ <span className={styles.roleIconSlot} data-flx="guild.guild-tabs.guild-roles-tab.role-item.role-icon-slot">+ {hasIcon && (+ <RoleIcon+ role={role}+ size={16}+ decorative={true}+ data-flx="guild.guild-tabs.guild-roles-tab.role-item.role-icon"+ />+ )}+ </span>+ )}<span className={styles.overwriteName} data-flx="guild.guild-tabs.guild-roles-tab.role-item.overwrite-name">{role.name || '\u00A0'}</span>diff --git a/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleSidebar.tsx b/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleSidebar.tsxindex 83619446d..5123e5885 100644--- a/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleSidebar.tsx+++ b/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleSidebar.tsx@@ -41,6 +41,7 @@ interface RoleSidebarProps {hoistOrderMode: boolean;hasCustomHoistOrder: boolean;roleUpdates: Map<string, RoleUpdate>;+ reserveIconSlot: boolean;isRoleLocked: (role: GuildRole) => boolean;onSelectRole: (roleId: string) => void;onCreateRole: () => void;@@ -73,6 +74,7 @@ export const RoleSidebar: React.FC<RoleSidebarProps> = observer(hoistOrderMode,hasCustomHoistOrder,roleUpdates,+ reserveIconSlot,isRoleLocked,onSelectRole,onCreateRole,@@ -155,6 +157,7 @@ export const RoleSidebar: React.FC<RoleSidebarProps> = observer(role={roleWithUpdates}isSelected={selectedRoleId === role.id}isLocked={isRoleLocked(role)}+ reserveIconSlot={reserveIconSlot}isGuildOwner={isGuildOwner}isTerminal={index === hoistedRoles.length - 1}canManageRoles={canManageRoles}@@ -253,6 +256,7 @@ export const RoleSidebar: React.FC<RoleSidebarProps> = observer(role={roleWithUpdates}isSelected={selectedRoleId === role.id}isLocked={isRoleLocked(role)}+ reserveIconSlot={reserveIconSlot}isGuildOwner={isGuildOwner}isTerminal={index === roles.length - 1}canManageRoles={canManageRoles}diff --git a/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/shared.ts b/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/shared.tsindex 0e1cea54f..5d4eb4f1a 100644--- a/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/shared.ts+++ b/fluxer_app/src/features/guild/components/modals/guild_tabs/guild_roles_tab/shared.ts@@ -19,6 +19,8 @@ export interface RoleUpdate {hoist?: boolean;mentionable?: boolean;permissions?: bigint;+ icon?: string | null;+ unicodeEmoji?: string | null;}export function applyRoleUpdate(role: GuildRole, updates: RoleUpdate | undefined): GuildRole {@@ -30,5 +32,7 @@ export function applyRoleUpdate(role: GuildRole, updates: RoleUpdate | undefinedmentionable: updates.mentionable ?? role.mentionable,permissions: updates.permissions?.toString() ?? role.permissions.toString(),position: role.position,+ icon: updates.icon !== undefined ? updates.icon : role.icon,+ unicode_emoji: updates.unicodeEmoji !== undefined ? updates.unicodeEmoji : role.unicodeEmoji,});}diff --git a/fluxer_app/src/features/guild/models/GuildRole.ts b/fluxer_app/src/features/guild/models/GuildRole.tsindex cfde8d611..71acd7c2c 100644--- a/fluxer_app/src/features/guild/models/GuildRole.ts+++ b/fluxer_app/src/features/guild/models/GuildRole.ts@@ -19,6 +19,8 @@ export class GuildRole {readonly permissions: bigint;readonly hoist: boolean;readonly mentionable: boolean;+ readonly icon: string | null;+ readonly unicodeEmoji: string | null;constructor(guildId: string, guildRole: WireGuildRole, options?: GuildRoleRecordOptions) {this.instanceId = options?.instanceId ?? RuntimeConfig.localInstanceDomain;@@ -31,6 +33,8 @@ export class GuildRole {this.permissions = BigInt(guildRole.permissions);this.hoist = guildRole.hoist;this.mentionable = guildRole.mentionable;+ this.icon = guildRole.icon ?? null;+ this.unicodeEmoji = guildRole.unicode_emoji ?? null;noteText(this.name);}@@ -50,6 +54,8 @@ export class GuildRole {permissions: updates.permissions ?? this.permissions.toString(),hoist: updates.hoist ?? this.hoist,mentionable: updates.mentionable ?? this.mentionable,+ icon: updates.icon !== undefined ? updates.icon : this.icon,+ unicode_emoji: updates.unicode_emoji !== undefined ? updates.unicode_emoji : this.unicodeEmoji,},{instanceId: this.instanceId},);@@ -69,6 +75,8 @@ export class GuildRole {permissions: this.permissions.toString(),hoist: this.hoist,mentionable: this.mentionable,+ icon: this.icon,+ unicode_emoji: this.unicodeEmoji,};}}diff --git a/fluxer_app/src/features/i18n/locales/ar/messages.po b/fluxer_app/src/features/i18n/locales/ar/messages.poindex a483dcb88..29dfb1ccb 100644--- a/fluxer_app/src/features/i18n/locales/ar/messages.po+++ b/fluxer_app/src/features/i18n/locales/ar/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} دقيقة"msgid "{folderName} folder"msgstr "مجلد {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. بحجم {minimumSize} على الأقل، وحتى {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "الأيقونات المتحركة غير مدعومة عند إنشاء مجتمع جديد. استخدم صورة ثابتة."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "الأيقونات المتحركة غير مدعومة. استخدم صورة ثابتة."@@ -8375,6 +8382,11 @@ msgstr "اختيار الخلفية"msgid "Choose either guild_id or channel_id, not both."msgstr "اختر guild_id أو channel_id، وليس كليهما."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "اختيار رمز تعبيري"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "معاينة القص"msgid "Crop profile banner"msgstr "قص لافتة الملف الشخصي"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "قص أيقونة الدور"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "المطابقة الحالية"msgid "Current ping:"msgstr "زمن الاستجابة الحالي:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "أيقونة الدور الحالية، {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "أيقونة الدور الحالية، صورة مرفوعة"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "الجلسة الحالية"@@ -14192,6 +14219,11 @@ msgstr "اسحب لتغيير موضع أيقونة مجموعتك واستخدmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "اسحب لتغيير موضع خلفية دعوتك واستخدم عجلة التمرير أو إصبعين للتكبير والتصغير. الحد الأدنى الموصى به للحجم هو {minimumWidth}×{minimumHeight} بكسل (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "اسحب لتغيير موضع أيقونة الدور واستخدم عجلة التمرير أو إصبعين للتكبير والتصغير. الحد الأدنى الموصى به للحجم هو {minimumWidth}×{minimumHeight} بكسل."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "إزالة من صور GIF المفضلة (بالرابط فقط)"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "إزالة الأيقونة"@@ -30577,6 +30610,16 @@ msgstr "تم حذف الدور"msgid "Role deleted successfully"msgstr "تم حذف الدور بنجاح"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "أيقونة الدور"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "أيقونة الدور، {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "حجم هذا الملف هو {fileSize}، وهو يتجاوز الحدmsgid "This file is larger than {size}. Choose a smaller one."msgstr "حجم هذا الملف أكبر من {size}. اختر ملفًا أصغر."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "نوع هذا الملف غير مدعوم. الأنواع المدعومة هي {formats}."@@ -37281,6 +37326,11 @@ msgstr "انتهت صلاحية رمز التسليم هذا. أنشئ رمزًmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "تعذّر تحميل هذه الصورة بعد الحفظ. اضغط على \"متابعة\" للمحاولة مرة أخرى، أو اختر ملفًا آخر."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "تعذّر تحميل هذه الصورة. جرّب صورة أخرى."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "هذا معطّل"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "هكذا تظهر الرسائل"@@ -39917,6 +39969,11 @@ msgstr "حمّل صوتًا مخصصًا يُشغَّل تلقائيًا عندmsgid "Upload a file"msgstr "تحميل ملف"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "حمّل صورة أو اختر رمزًا تعبيريًا. يظهر بجانب اسم كل عضو أيقونة أعلى دور لديه يحمل أيقونة."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "تحميل الأصول"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "تحميل أيقونة"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "تحميل صورة"@@ -40002,6 +40060,11 @@ msgstr "تحميل رموز تعبيرية وملصقات جديدة، وإداmsgid "Upload preview frames for screen shares."msgstr "تحميل إطارات معاينة لمشاركة الشاشة."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "تحميل أيقونة الدور"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/bg/messages.po b/fluxer_app/src/features/i18n/locales/bg/messages.poindex 5ffb2c000..c8839b3c3 100644--- a/fluxer_app/src/features/i18n/locales/bg/messages.po+++ b/fluxer_app/src/features/i18n/locales/bg/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} минути"msgid "{folderName} folder"msgstr "Папка {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Поне {minimumSize}, до {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Анимираните икони не се поддържат при създаване на нова общност. Използвай статично изображение."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Анимираните икони не се поддържат. Използвай статично изображение."@@ -8375,6 +8382,11 @@ msgstr "Избери фон"msgid "Choose either guild_id or channel_id, not both."msgstr "Избери guild_id или channel_id, не и двете."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Избери емоджи"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Преглед на изрязването"msgid "Crop profile banner"msgstr "Изрязване на банер на профил"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Изрязване на икона на роля"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Текущо съвпадение"msgid "Current ping:"msgstr "Текущ пинг:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Текуща икона на ролята, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Текуща икона на ролята, качено изображение"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Текуща сесия"@@ -14192,6 +14219,11 @@ msgstr "Плъзни, за да преместиш иконата на групmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Плъзни, за да преместиш фона на поканата си, и използвай колелцето на мишката или щипка, за да мащабираш. Препоръчителният минимален размер е {minimumWidth}×{minimumHeight} пиксела (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Плъзни, за да преместиш иконата на ролята, и използвай колелцето на мишката или щипка, за да мащабираш. Препоръчителният минимален размер е {minimumWidth}×{minimumHeight} пиксела."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Премахване от любимите GIF файлове, запа#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Премахване на икона"@@ -30577,6 +30610,16 @@ msgstr "Ролята е изтрита"msgid "Role deleted successfully"msgstr "Ролята е изтрита успешно"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Икона на ролята"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Икона на ролята, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Този файл е {fileSize}, над лимита от {maxSize}. Аmsgid "This file is larger than {size}. Choose a smaller one."msgstr "Този файл е по-голям от {size}. Избери по-малък."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Този тип файл не се поддържа. Поддържаните типове са {formats}."@@ -37281,6 +37326,11 @@ msgstr "Този код за прехвърляне е изтекъл. Генеmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Това изображение не можа да бъде заредено след запазване. Натиснете „Продължи“, за да опитате отново, или изберете друг файл."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Това изображение не може да се зареди. Опитай с друго."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Деактивирано е"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Така изглеждат съобщенията"@@ -39917,6 +39969,11 @@ msgstr "Качи персонализиран звук, който автомаmsgid "Upload a file"msgstr "Качване на файл"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Качи изображение или избери емоджи. До името на всеки член се показва иконата на най-високата му роля, която има икона."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Качване на ресурси"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Качване на икона"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Качване на изображение"@@ -40002,6 +40060,11 @@ msgstr "Качване на нови емоджита и стикери и упmsgid "Upload preview frames for screen shares."msgstr "Качване на кадри за визуализация при споделяне на екран."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Качване на икона на ролята"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/cs/messages.po b/fluxer_app/src/features/i18n/locales/cs/messages.poindex 6d0df1782..757011167 100644--- a/fluxer_app/src/features/i18n/locales/cs/messages.po+++ b/fluxer_app/src/features/i18n/locales/cs/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minut"msgid "{folderName} folder"msgstr "Složka {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Alespoň {minimumSize}, nejvýše {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Animované ikony nejsou podporovány při vytváření nové komunity. Použijte statický obrázek."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Animované ikony nejsou podporovány. Použijte statický obrázek."@@ -8375,6 +8382,11 @@ msgstr "Vybrat pozadí"msgid "Choose either guild_id or channel_id, not both."msgstr "Zvolte buď guild_id, nebo channel_id, ne obojí."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Vybrat emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Náhled ořezu"msgid "Crop profile banner"msgstr "Oříznout banner profilu"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Oříznout ikonu role"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Aktuální výskyt"msgid "Current ping:"msgstr "Aktuální odezva:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Aktuální ikona role, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Aktuální ikona role, nahraný obrázek"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Aktuální relace"@@ -14192,6 +14219,11 @@ msgstr "Přetažením změňte polohu ikony skupiny. Kolečkem myši nebo gestemmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Přetažením změňte polohu pozadí pozvánky. Kolečkem myši nebo gestem dvěma prsty upravte přiblížení. Doporučené minimální rozměry jsou {minimumWidth} × {minimumHeight} pixelů (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Přetažením změňte polohu ikony role. Kolečkem myši nebo gestem dvěma prsty upravte přiblížení. Doporučené minimální rozměry jsou {minimumWidth} × {minimumHeight} pixelů."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Odebrat z oblíbených GIFů uložených pouze jako URL"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Odebrat ikonu"@@ -30577,6 +30610,16 @@ msgstr "Role smazána"msgid "Role deleted successfully"msgstr "Role úspěšně smazána"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Ikona role"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Ikona role, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Tento soubor má velikost {fileSize}, což překračuje limit {maxSize}.msgid "This file is larger than {size}. Choose a smaller one."msgstr "Tento soubor je větší než {size}. Vyberte menší."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Tento typ souboru není podporován. Podporované typy jsou {formats}."@@ -37281,6 +37326,11 @@ msgstr "Tento kód pro předání vypršel. Vygenerujte si nový, abyste mohli pmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Tento obrázek se po uložení nepodařilo načíst. Stiskněte „Pokračovat“ pro opakování, nebo vyberte jiný soubor."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Tento obrázek se nepodařilo načíst. Zkuste jiný."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Toto je zakázáno"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Takto se zobrazují zprávy"@@ -39917,6 +39969,11 @@ msgstr "Nahrajte vlastní zvuk, který se automaticky přehraje při připojenímsgid "Upload a file"msgstr "Nahrát soubor"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Nahrajte obrázek nebo vyberte emoji. Vedle jména člena se zobrazí ikona jeho nejvyšší role, která ikonu má."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Nahrát soubory"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Nahrát ikonu"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Nahrát obrázek"@@ -40002,6 +40060,11 @@ msgstr "Nahrávat nová emoji a samolepky a spravovat vlastní výtvory."msgid "Upload preview frames for screen shares."msgstr "Nahrávat snímky náhledů sdílených obrazovek."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Nahrát ikonu role"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/da/messages.po b/fluxer_app/src/features/i18n/locales/da/messages.poindex 9265e6e00..55994094a 100644--- a/fluxer_app/src/features/i18n/locales/da/messages.po+++ b/fluxer_app/src/features/i18n/locales/da/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minutter"msgid "{folderName} folder"msgstr "Mappen {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Mindst {minimumSize}, højst {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Animerede ikoner understøttes ikke, når du opretter et nyt fællesskab. Brug et statisk billede."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Animerede ikoner understøttes ikke. Brug et statisk billede."@@ -8375,6 +8382,11 @@ msgstr "Vælg baggrund"msgid "Choose either guild_id or channel_id, not both."msgstr "Vælg enten guild_id eller channel_id, ikke begge."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Vælg emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Beskæringsforhåndsvisning"msgid "Crop profile banner"msgstr "Beskær profilbanner"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Beskær rolleikon"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Nuværende fund"msgid "Current ping:"msgstr "Aktuel ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Nuværende rolleikon, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Nuværende rolleikon, uploadet billede"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Aktuel session"@@ -14192,6 +14219,11 @@ msgstr "Træk for at flytte dit gruppeikon, og brug musehjulet eller knib med tomsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Træk for at flytte din invitationsbaggrund, og brug musehjulet eller knib med to fingre for at zoome. Den anbefalede minimumsstørrelse er {minimumWidth}×{minimumHeight} pixels (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Træk for at flytte rolleikonet, og brug musehjulet eller knib med to fingre for at zoome. Den anbefalede minimumsstørrelse er {minimumWidth}×{minimumHeight} pixels."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Fjern fra URL-baserede GIF-favoritter"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Fjern ikon"@@ -30577,6 +30610,16 @@ msgstr "Rolle slettet"msgid "Role deleted successfully"msgstr "Rolle slettet"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Rolleikon"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Rolleikon, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Filen er {fileSize}, hvilket er over grænsen på {maxSize}. Animerede kmsgid "This file is larger than {size}. Choose a smaller one."msgstr "Filen er større end {size}. Vælg en mindre fil."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Filtypen understøttes ikke. Understøttede typer er {formats}."@@ -37281,6 +37326,11 @@ msgstr "Denne overdragelseskode er udløbet. Generer en ny for at fortsætte."msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Billedet kunne ikke indlæses efter gemning. Tryk på \"Fortsæt\" for at prøve igen, eller vælg en anden fil."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Billedet kunne ikke indlæses. Prøv et andet."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Dette er deaktiveret"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Sådan vises beskeder"@@ -39917,6 +39969,11 @@ msgstr "Upload en tilpasset lyd, der afspilles automatisk, når du deltager i enmsgid "Upload a file"msgstr "Upload en fil"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Upload et billede eller vælg en emoji. Ved et medlems navn vises ikonet fra medlemmets højeste rolle med et ikon."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Upload ressourcer"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Upload ikon"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Upload billede"@@ -40002,6 +40060,11 @@ msgstr "Upload nye emojis og klistermærker, og administrer dine egne kreationermsgid "Upload preview frames for screen shares."msgstr "Upload forhåndsvisningsbilleder fra skærmdelinger."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Upload rolleikon"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/de/messages.po b/fluxer_app/src/features/i18n/locales/de/messages.poindex a08730ec0..335338ad3 100644--- a/fluxer_app/src/features/i18n/locales/de/messages.po+++ b/fluxer_app/src/features/i18n/locales/de/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} Minuten"msgid "{folderName} folder"msgstr "Ordner \"{folderName}\""+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Mindestens {minimumSize}, höchstens {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Animierte Symbole werden beim Erstellen einer neuen Community nicht unterstützt. Verwende ein statisches Bild."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Animierte Symbole werden nicht unterstützt. Verwende ein statisches Bild."@@ -8375,6 +8382,11 @@ msgstr "Hintergrund auswählen"msgid "Choose either guild_id or channel_id, not both."msgstr "Wähle entweder „guild_id“ oder „channel_id“, nicht beides."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Emoji auswählen"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Vorschau zuschneiden"msgid "Crop profile banner"msgstr "Profilbanner zuschneiden"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Rollensymbol zuschneiden"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Aktuelles Ergebnis"msgid "Current ping:"msgstr "Aktueller Ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Aktuelles Rollensymbol, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Aktuelles Rollensymbol, hochgeladenes Bild"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Aktuelle Sitzung"@@ -14192,6 +14219,11 @@ msgstr "Ziehe, um dein Gruppensymbol neu zu positionieren, und verwende das Mausmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Ziehe, um den Hintergrund deiner Einladung neu zu positionieren, und verwende das Mausrad oder die Pinch-Geste zum Zoomen. Die empfohlene Mindestgröße beträgt {minimumWidth}×{minimumHeight} Pixel (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Ziehe, um das Rollensymbol neu zu positionieren, und verwende das Mausrad oder die Pinch-Geste zum Zoomen. Die empfohlene Mindestgröße beträgt {minimumWidth}×{minimumHeight} Pixel."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Aus der Liste der per URL gespeicherten GIFs entfernen"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Symbol entfernen"@@ -30577,6 +30610,16 @@ msgstr "Rolle gelöscht"msgid "Role deleted successfully"msgstr "Rolle erfolgreich gelöscht"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Rollensymbol"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Rollensymbol, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Diese Datei ist {fileSize} groß und überschreitet das Limit von {maxSimsgid "This file is larger than {size}. Choose a smaller one."msgstr "Diese Datei ist größer als {size}. Wähle eine kleinere aus."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Dieser Dateityp wird nicht unterstützt. Unterstützte Typen sind {formats}."@@ -37281,6 +37326,11 @@ msgstr "Dieser Übergabecode ist abgelaufen. Erstelle einen neuen, um fortzufahrmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Dieses Bild konnte nach dem Speichern nicht geladen werden. Drücke „Weiter“, um es erneut zu versuchen, oder wähle eine andere Datei aus."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Dieses Bild konnte nicht geladen werden. Versuch es mit einem anderen."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Dies ist deaktiviert"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "So werden Nachrichten angezeigt"@@ -39917,6 +39969,11 @@ msgstr "Lade einen eigenen Ton hoch, der automatisch abgespielt wird, wenn du eimsgid "Upload a file"msgstr "Datei hochladen"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Lade ein Bild hoch oder wähle ein Emoji. Neben dem Namen eines Mitglieds erscheint das Symbol seiner höchsten Rolle, die ein Symbol hat."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Assets hochladen"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Symbol hochladen"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Bild hochladen"@@ -40002,6 +40060,11 @@ msgstr "Neue Emojis und Sticker hochladen und eigene Kreationen verwalten."msgid "Upload preview frames for screen shares."msgstr "Vorschaubilder für Bildschirmfreigaben hochladen."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Rollensymbol hochladen"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/el/messages.po b/fluxer_app/src/features/i18n/locales/el/messages.poindex c70950c07..946845667 100644--- a/fluxer_app/src/features/i18n/locales/el/messages.po+++ b/fluxer_app/src/features/i18n/locales/el/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} λεπτά"msgid "{folderName} folder"msgstr "Φάκελος {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Τουλάχιστον {minimumSize}, έως {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Τα κινούμενα εικονίδια δεν υποστηρίζονται κατά τη δημιουργία νέας κοινότητας. Χρησιμοποιήστε μια στατική εικόνα."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Τα κινούμενα εικονίδια δεν υποστηρίζονται. Χρησιμοποιήστε μια στατική εικόνα."@@ -8375,6 +8382,11 @@ msgstr "Επιλέξτε φόντο"msgid "Choose either guild_id or channel_id, not both."msgstr "Επιλέξτε είτε guild_id είτε channel_id, όχι και τα δύο."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Επιλογή emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Προεπισκόπηση περικοπής"msgid "Crop profile banner"msgstr "Περικοπή banner προφίλ"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Περικοπή εικονιδίου ρόλου"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Τρέχον ταίριασμα"msgid "Current ping:"msgstr "Τρέχον ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Τρέχον εικονίδιο ρόλου, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Τρέχον εικονίδιο ρόλου, εικόνα που ανέβηκε"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Τρέχουσα συνεδρία"@@ -14192,6 +14219,11 @@ msgstr "Σύρετε για να αλλάξετε τη θέση του εικοmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Σύρετε για να αλλάξετε τη θέση της εικόνας φόντου της πρόσκλησής σας και χρησιμοποιήστε τον τροχό κύλισης ή τσιμπήστε για μεγέθυνση. Το προτεινόμενο ελάχιστο μέγεθος είναι {minimumWidth}×{minimumHeight} pixel (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Σύρετε για να αλλάξετε τη θέση του εικονιδίου του ρόλου και χρησιμοποιήστε τον τροχό κύλισης ή τσιμπήστε για μεγέθυνση. Το προτεινόμενο ελάχιστο μέγεθος είναι {minimumWidth}×{minimumHeight} pixel."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Αφαίρεση από τα αγαπημένα GIF που αποθηκ#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Αφαίρεση εικονιδίου"@@ -30577,6 +30610,16 @@ msgstr "Ο ρόλος διαγράφηκε"msgid "Role deleted successfully"msgstr "Ο ρόλος διαγράφηκε με επιτυχία"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Εικονίδιο ρόλου"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Εικονίδιο ρόλου, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Αυτό το αρχείο είναι {fileSize}, πάνω από τοmsgid "This file is larger than {size}. Choose a smaller one."msgstr "Αυτό το αρχείο είναι μεγαλύτερο από {size}. Επιλέξτε ένα μικρότερο."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Αυτός ο τύπος αρχείου δεν υποστηρίζεται. Οι υποστηριζόμενοι τύποι είναι {formats}."@@ -37281,6 +37326,11 @@ msgstr "Αυτός ο κωδικός παράδοσης έχει λήξει. Δmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Αυτή η εικόνα δεν φορτώθηκε μετά την αποθήκευση. Πάτησε «Συνέχεια» για να δοκιμάσεις ξανά ή επίλεξε άλλο αρχείο."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Δεν ήταν δυνατή η φόρτωση αυτής της εικόνας. Δοκιμάστε άλλη."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Αυτό είναι απενεργοποιημένο"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Έτσι εμφανίζονται τα μηνύματα"@@ -39917,6 +39969,11 @@ msgstr "Ανεβάστε έναν προσαρμοσμένο ήχο που ανmsgid "Upload a file"msgstr "Ανέβασμα αρχείου"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Ανεβάστε μια εικόνα ή επιλέξτε ένα emoji. Δίπλα στο όνομα κάθε μέλους εμφανίζεται το εικονίδιο του υψηλότερου ρόλου του που έχει εικονίδιο."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Ανέβασμα στοιχείων"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Ανέβασμα εικονιδίου"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Ανέβασμα εικόνας"@@ -40002,6 +40060,11 @@ msgstr "Ανέβασμα νέων emoji και αυτοκόλλητων καιmsgid "Upload preview frames for screen shares."msgstr "Ανέβασμα καρέ προεπισκόπησης για την κοινή χρήση οθόνης."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Ανέβασμα εικονιδίου ρόλου"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/en-GB/messages.po b/fluxer_app/src/features/i18n/locales/en-GB/messages.poindex 4e6209c18..f5b199e8d 100644--- a/fluxer_app/src/features/i18n/locales/en-GB/messages.po+++ b/fluxer_app/src/features/i18n/locales/en-GB/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minutes"msgid "{folderName} folder"msgstr "{folderName} folder"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. At least {minimumSize}, up to {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Animated icons are not supported when creating a new community. Use a static image."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Animated icons are not supported. Use a static image."@@ -8375,6 +8382,11 @@ msgstr "Choose background"msgid "Choose either guild_id or channel_id, not both."msgstr "Choose either guild_id or channel_id, not both."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Choose emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Crop preview"msgid "Crop profile banner"msgstr "Crop profile banner"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Crop role icon"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Current match"msgid "Current ping:"msgstr "Current ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Current role icon, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Current role icon, uploaded image"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Current session"@@ -14192,6 +14219,11 @@ msgstr "Drag to reposition your group icon and use the scroll wheel or pinch tomsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Remove from URL-only GIF favourites"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Remove icon"@@ -30577,6 +30610,16 @@ msgstr "Role deleted"msgid "Role deleted successfully"msgstr "Role deleted successfully"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Role icon"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Role icon, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "This file is {fileSize}, over the {maxSize} limit. Animated stickers andmsgid "This file is larger than {size}. Choose a smaller one."msgstr "This file is larger than {size}. Choose a smaller one."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "This file type is not supported. Supported types are {formats}."@@ -37281,6 +37326,11 @@ msgstr "This handoff code has expired. Generate a new one to continue."msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "This image could not be loaded. Try another one."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "This is disabled"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "This is how messages appear"@@ -39917,6 +39969,11 @@ msgstr "Upload a custom sound that plays automatically when you join a voice chamsgid "Upload a file"msgstr "Upload a file"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Upload assets"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Upload icon"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Upload image"@@ -40002,6 +40060,11 @@ msgstr "Upload new emoji and stickers, and manage your own creations."msgid "Upload preview frames for screen shares."msgstr "Upload preview frames for screen shares."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Upload role icon"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/en-US/messages.po b/fluxer_app/src/features/i18n/locales/en-US/messages.poindex 80bc268c9..f181b81cc 100644--- a/fluxer_app/src/features/i18n/locales/en-US/messages.po+++ b/fluxer_app/src/features/i18n/locales/en-US/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minutes"msgid "{folderName} folder"msgstr "{folderName} folder"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. At least {minimumSize}, up to {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Animated icons are not supported when creating a new community. Use a static image."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Animated icons are not supported. Use a static image."@@ -8375,6 +8382,11 @@ msgstr "Choose background"msgid "Choose either guild_id or channel_id, not both."msgstr "Choose either guild_id or channel_id, not both."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Choose emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Crop preview"msgid "Crop profile banner"msgstr "Crop profile banner"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Crop role icon"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Current match"msgid "Current ping:"msgstr "Current ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Current role icon, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Current role icon, uploaded image"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Current session"@@ -14192,6 +14219,11 @@ msgstr "Drag to reposition your group icon and use the scroll wheel or pinch tomsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Remove from URL-only GIF favorites"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Remove icon"@@ -30577,6 +30610,16 @@ msgstr "Role deleted"msgid "Role deleted successfully"msgstr "Role deleted successfully"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Role icon"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Role icon, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "This file is {fileSize}, over the {maxSize} limit. Animated stickers andmsgid "This file is larger than {size}. Choose a smaller one."msgstr "This file is larger than {size}. Choose a smaller one."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "This file type is not supported. Supported types are {formats}."@@ -37281,6 +37326,11 @@ msgstr "This handoff code has expired. Generate a new one to continue."msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "This image could not be loaded. Try another one."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "This is disabled"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "This is how messages appear"@@ -39917,6 +39969,11 @@ msgstr "Upload a custom sound that plays automatically when you join a voice chamsgid "Upload a file"msgstr "Upload a file"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Upload assets"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Upload icon"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Upload image"@@ -40002,6 +40060,11 @@ msgstr "Upload new emoji and stickers, and manage your own creations."msgid "Upload preview frames for screen shares."msgstr "Upload preview frames for screen shares."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Upload role icon"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/es-419/messages.po b/fluxer_app/src/features/i18n/locales/es-419/messages.poindex 4200fba93..4d90beaeb 100644--- a/fluxer_app/src/features/i18n/locales/es-419/messages.po+++ b/fluxer_app/src/features/i18n/locales/es-419/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minutos"msgid "{folderName} folder"msgstr "Carpeta {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Mínimo {minimumSize}, hasta {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "No se admiten íconos animados al crear una nueva comunidad. Usa una imagen estática."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "No se admiten íconos animados. Usa una imagen estática."@@ -8375,6 +8382,11 @@ msgstr "Elige un fondo"msgid "Choose either guild_id or channel_id, not both."msgstr "Elige guild_id o channel_id, no ambos."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Elegir emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Vista previa del recorte"msgid "Crop profile banner"msgstr "Recortar banner de perfil"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Recortar ícono del rol"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Coincidencia actual"msgid "Current ping:"msgstr "Ping actual:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Ícono actual del rol, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Ícono actual del rol, imagen subida"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Sesión actual"@@ -14192,6 +14219,11 @@ msgstr "Arrastra para reposicionar el ícono de tu grupo y usa la rueda de desplmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Arrastra para reubicar el fondo de tu invitación y usa la rueda de desplazamiento o pellizca para hacer zoom. El tamaño mínimo recomendado es de {minimumWidth}×{minimumHeight} píxeles (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Arrastra para cambiar la posición del ícono del rol y usa la rueda de desplazamiento o pellizca para hacer zoom. El tamaño mínimo recomendado es de {minimumWidth}×{minimumHeight} píxeles."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Quitar de los GIF favoritos guardados por URL"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Quitar ícono"@@ -30577,6 +30610,16 @@ msgstr "Rol eliminado"msgid "Role deleted successfully"msgstr "Rol eliminado con éxito"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Ícono del rol"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Ícono del rol, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Este archivo es de {fileSize}, lo que supera el límite de {maxSize}. Lomsgid "This file is larger than {size}. Choose a smaller one."msgstr "Este archivo pesa más de {size}. Elige uno más pequeño."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Este tipo de archivo no es compatible. Los tipos compatibles son {formats}."@@ -37281,6 +37326,11 @@ msgstr "Este código de transferencia ha expirado. Genera uno nuevo para continumsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "No se pudo cargar esta imagen después de guardar. Pulsa \"Continuar\" para intentar de nuevo o elige otro archivo."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "No se pudo cargar esta imagen. Prueba con otra."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Esto está deshabilitado"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Así se ven los mensajes"@@ -39917,6 +39969,11 @@ msgstr "Sube un sonido personalizado que se reproducirá automáticamente cuandomsgid "Upload a file"msgstr "Subir un archivo"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Sube una imagen o elige un emoji. Junto al nombre de cada miembro aparece el ícono de su rol más alto que tenga uno."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Subir recursos"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Subir ícono"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Subir imagen"@@ -40002,6 +40060,11 @@ msgstr "Sube nuevos emojis y stickers, y administra tus propias creaciones."msgid "Upload preview frames for screen shares."msgstr "Subir fotogramas de vista previa de la pantalla compartida."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Subir ícono del rol"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/es-ES/messages.po b/fluxer_app/src/features/i18n/locales/es-ES/messages.poindex 050b8c9bf..29b99aee0 100644--- a/fluxer_app/src/features/i18n/locales/es-ES/messages.po+++ b/fluxer_app/src/features/i18n/locales/es-ES/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minutos"msgid "{folderName} folder"msgstr "Carpeta {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Mínimo {minimumSize}, hasta {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "No se admiten iconos animados al crear una nueva comunidad. Usa una imagen estática."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "No se admiten iconos animados. Usa una imagen estática."@@ -8375,6 +8382,11 @@ msgstr "Elige un fondo"msgid "Choose either guild_id or channel_id, not both."msgstr "Elige guild_id o channel_id, no ambos."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Elegir emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Vista previa del recorte"msgid "Crop profile banner"msgstr "Recortar el banner del perfil"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Recortar icono del rol"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Coincidencia actual"msgid "Current ping:"msgstr "Ping actual:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Icono actual del rol, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Icono actual del rol, imagen subida"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Sesión actual"@@ -14192,6 +14219,11 @@ msgstr "Arrastra para cambiar la posición del icono de tu grupo y usa la ruedamsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Arrastra para cambiar la posición de tu fondo de invitación y usa la rueda de desplazamiento o pellizca para hacer zoom. El tamaño mínimo recomendado es de {minimumWidth}×{minimumHeight} píxeles (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Arrastra para cambiar la posición del icono del rol y usa la rueda de desplazamiento o pellizca para hacer zoom. El tamaño mínimo recomendado es de {minimumWidth}×{minimumHeight} píxeles."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Eliminar de los GIF favoritos guardados por URL"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Eliminar icono"@@ -30577,6 +30610,16 @@ msgstr "Rol eliminado"msgid "Role deleted successfully"msgstr "Rol eliminado correctamente"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Icono del rol"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Icono del rol, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Este archivo ocupa {fileSize} y supera el límite de {maxSize}. Las pegamsgid "This file is larger than {size}. Choose a smaller one."msgstr "Este archivo ocupa más de {size}. Elige uno más pequeño."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Este tipo de archivo no es compatible. Los tipos compatibles son {formats}."@@ -37281,6 +37326,11 @@ msgstr "Este código de transferencia ha caducado. Genera uno nuevo para continumsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "No se pudo cargar esta imagen después de guardar. Pulsa \"Continuar\" para intentarlo de nuevo o elige otro archivo."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "No se ha podido cargar esta imagen. Prueba con otra."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Esto está deshabilitado"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Así se muestran los mensajes"@@ -39917,6 +39969,11 @@ msgstr "Sube un sonido personalizado que se reproducirá automáticamente cuandomsgid "Upload a file"msgstr "Subir un archivo"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Sube una imagen o elige un emoji. Junto al nombre de cada miembro aparece el icono de su rol más alto que tenga uno."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Subir recursos"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Subir icono"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Subir imagen"@@ -40002,6 +40060,11 @@ msgstr "Sube nuevos emojis y pegatinas, y gestiona tus propias creaciones."msgid "Upload preview frames for screen shares."msgstr "Subir fotogramas de vista previa de la pantalla compartida."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Subir icono del rol"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/fi/messages.po b/fluxer_app/src/features/i18n/locales/fi/messages.poindex a0fd3b39d..7e24df521 100644--- a/fluxer_app/src/features/i18n/locales/fi/messages.po+++ b/fluxer_app/src/features/i18n/locales/fi/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minuuttia"msgid "{folderName} folder"msgstr "Kansio: {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Vähintään {minimumSize}, enintään {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Uutta yhteisöä luotaessa ei tueta animoituja kuvakkeita. Käytä staattista kuvaa."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Animoituja kuvakkeita ei tueta. Käytä staattista kuvaa."@@ -8375,6 +8382,11 @@ msgstr "Valitse tausta"msgid "Choose either guild_id or channel_id, not both."msgstr "Valitse joko guild_id tai channel_id, älä molempia."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Valitse emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Rajauksen esikatselu"msgid "Crop profile banner"msgstr "Rajaa profiilibanneri"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Rajaa roolin kuvake"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Nykyinen osuma"msgid "Current ping:"msgstr "Nykyinen ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Roolin nykyinen kuvake, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Roolin nykyinen kuvake, ladattu kuva"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Nykyinen istunto"@@ -14192,6 +14219,11 @@ msgstr "Siirrä ryhmäkuvaketta vetämällä ja zoomaa vierityspyörällä tai nmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Siirrä kutsun taustakuvaa vetämällä ja zoomaa vierityspyörällä tai nipistämällä. Suositeltu vähimmäiskoko on {minimumWidth}×{minimumHeight} pikseliä (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Siirrä roolin kuvaketta vetämällä ja zoomaa vierityspyörällä tai nipistämällä. Suositeltu vähimmäiskoko on {minimumWidth}×{minimumHeight} pikseliä."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Poista URL-osoitteena tallennetuista GIF-suosikeista"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Poista kuvake"@@ -30577,6 +30610,16 @@ msgstr "Rooli poistettu"msgid "Role deleted successfully"msgstr "Rooli poistettu"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Roolin kuvake"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Roolin kuvake, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Tiedoston koko on {fileSize}, ja raja on {maxSize}. Animoitujen tarrojenmsgid "This file is larger than {size}. Choose a smaller one."msgstr "Tiedosto on suurempi kuin {size}. Valitse pienempi tiedosto."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Tätä tiedostotyyppiä ei tueta. Tuetut tyypit ovat {formats}."@@ -37281,6 +37326,11 @@ msgstr "Tämä siirtokoodi on vanhentunut. Luo uusi jatkaaksesi."msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Tätä kuvaa ei voitu ladata tallennuksen jälkeen. Paina \"Jatka\" yrittääksesi uudelleen tai valitse toinen tiedosto."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Kuvaa ei voitu ladata. Kokeile toista."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Tämä on poistettu käytöstä"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Näin viestit näkyvät"@@ -39917,6 +39969,11 @@ msgstr "Lataa mukautettu ääni, joka toistetaan automaattisesti, kun liityt ämsgid "Upload a file"msgstr "Lähetä tiedosto"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Lataa kuva tai valitse emoji. Jäsenen nimen vieressä näkyy hänen korkeimman sellaisen roolinsa kuvake, jolla on kuvake."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Lataa resursseja"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Lataa kuvake"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Lataa kuva"@@ -40002,6 +40060,11 @@ msgstr "Lataa uusia emojeita ja tarroja sekä hallinnoi omia luomuksiasi."msgid "Upload preview frames for screen shares."msgstr "Lataa esikatselukuvia näytönjakoja varten."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Lataa roolin kuvake"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/fr/messages.po b/fluxer_app/src/features/i18n/locales/fr/messages.poindex 56498b15f..38f504b52 100644--- a/fluxer_app/src/features/i18n/locales/fr/messages.po+++ b/fluxer_app/src/features/i18n/locales/fr/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minutes"msgid "{folderName} folder"msgstr "Dossier {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Au moins {minimumSize}, {maxSize} maximum."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Les icônes animées ne sont pas prises en charge lors de la création d’une nouvelle communauté. Utilisez une image statique."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Les icônes animées ne sont pas prises en charge. Utilisez une image statique."@@ -8375,6 +8382,11 @@ msgstr "Choisir un arrière-plan"msgid "Choose either guild_id or channel_id, not both."msgstr "Choisissez guild_id ou channel_id, pas les deux."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Choisir un emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Aperçu du recadrage"msgid "Crop profile banner"msgstr "Recadrer la bannière de profil"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Recadrer l'icône du rôle"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Correspondance actuelle"msgid "Current ping:"msgstr "Ping actuel :"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Icône actuelle du rôle, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Icône actuelle du rôle, image importée"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Session actuelle"@@ -14192,6 +14219,11 @@ msgstr "Faites glisser pour repositionner l'icône de votre groupe et utilisez lmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Faites glisser pour repositionner l'arrière-plan de votre invitation et utilisez la molette de défilement ou le pincement pour zoomer. La taille minimale recommandée est de {minimumWidth}×{minimumHeight} pixels (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Faites glisser pour repositionner l'icône du rôle et utilisez la molette de défilement ou le pincement pour zoomer. La taille minimale recommandée est de {minimumWidth}×{minimumHeight} pixels."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Supprimer des favoris GIF enregistrés par URL"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Supprimer l'icône"@@ -30577,6 +30610,16 @@ msgstr "Rôle supprimé"msgid "Role deleted successfully"msgstr "Rôle supprimé avec succès"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Icône du rôle"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Icône du rôle, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Ce fichier fait {fileSize}, ce qui dépasse la limite de {maxSize}. Lesmsgid "This file is larger than {size}. Choose a smaller one."msgstr "Ce fichier dépasse {size}. Choisissez-en un plus petit."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Ce type de fichier n'est pas pris en charge. Les types pris en charge sont {formats}."@@ -37281,6 +37326,11 @@ msgstr "Ce code de transfert a expiré. Générez-en un nouveau pour continuer."msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Impossible de charger cette image après l’enregistrement. Appuyez sur « Continuer » pour réessayer ou choisissez un autre fichier."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Impossible de charger cette image. Essayez-en une autre."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Ceci est désactivé"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Voici comment les messages s'affichent"@@ -39917,6 +39969,11 @@ msgstr "Importez un son personnalisé qui sera joué automatiquement lorsque voumsgid "Upload a file"msgstr "Importer un fichier"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Importez une image ou choisissez un emoji. À côté du nom de chaque membre s'affiche l'icône de son rôle le plus élevé qui en a une."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Importer des ressources"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Importer une icône"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Importer une image"@@ -40002,6 +40060,11 @@ msgstr "Importer de nouveaux emojis et stickers et gérer vos propres créationsmsgid "Upload preview frames for screen shares."msgstr "Envoyer des images d’aperçu pour les partages d’écran."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Importer l'icône du rôle"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/he/messages.po b/fluxer_app/src/features/i18n/locales/he/messages.poindex 29b0c3169..d5385c6a3 100644--- a/fluxer_app/src/features/i18n/locales/he/messages.po+++ b/fluxer_app/src/features/i18n/locales/he/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} דקות"msgid "{folderName} folder"msgstr "תיקיית {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. לפחות {minimumSize}, עד {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "לא ניתן להשתמש באייקונים מונפשים בעת יצירת קהילה חדשה. השתמש בתמונה סטטית."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "אייקונים מונפשים אינם נתמכים. השתמש בתמונה סטטית."@@ -8375,6 +8382,11 @@ msgstr "בחר רקע"msgid "Choose either guild_id or channel_id, not both."msgstr "יש לבחור guild_id או channel_id, לא את שניהם."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "בחירת אימוג'י"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "תצוגה מקדימה של חיתוך"msgid "Crop profile banner"msgstr "חיתוך באנר פרופיל"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "חיתוך סמל התפקיד"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "התאמה נוכחית"msgid "Current ping:"msgstr "פינג נוכחי:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "סמל התפקיד הנוכחי, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "סמל התפקיד הנוכחי, תמונה שהועלתה"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "הסשן הנוכחי"@@ -14192,6 +14219,11 @@ msgstr "גרור כדי למקם מחדש את אייקון הקבוצה שלךmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "גרור כדי למקם מחדש את רקע ההזמנה שלך והשתמש בגלגלת הגלילה או בצביטה כדי להתקרב או להתרחק. הגודל המינימלי המומלץ הוא {minimumWidth}×{minimumHeight} פיקסלים (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "גרור כדי למקם מחדש את סמל התפקיד והשתמש בגלגלת הגלילה או בצביטה כדי להתקרב או להתרחק. הגודל המינימלי המומלץ הוא {minimumWidth}×{minimumHeight} פיקסלים."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "הסרה מקובצי GIF מועדפים לפי כתובת URL בלבד"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "הסר אייקון"@@ -30577,6 +30610,16 @@ msgstr "תפקיד נמחק"msgid "Role deleted successfully"msgstr "התפקיד נמחק בהצלחה"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "סמל התפקיד"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "סמל התפקיד, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "גודל הקובץ הזה הוא {fileSize}, מעל המגבלה של {msgid "This file is larger than {size}. Choose a smaller one."msgstr "הקובץ גדול מ-{size}. בחר קובץ קטן יותר."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "סוג הקובץ הזה אינו נתמך. הסוגים הנתמכים הם {formats}."@@ -37281,6 +37326,11 @@ msgstr "תוקף קוד ההעברה הזה פג. יש ליצור קוד חדשmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "לא ניתן לטעון את התמונה לאחר השמירה. לחצו על \"המשך\" כדי לנסות שוב, או בחרו קובץ אחר."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "לא ניתן לטעון את התמונה הזו. נסה תמונה אחרת."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "זה מושבת"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "כך נראות ההודעות"@@ -39917,6 +39969,11 @@ msgstr "העלה צליל מותאם אישית שמתנגן באופן אוטוmsgid "Upload a file"msgstr "העלאת קובץ"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "העלה תמונה או בחר אימוג'י. ליד השם של כל חבר יופיע הסמל של התפקיד הגבוה ביותר שלו שיש לו סמל."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "העלאת נכסים"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "העלאת אייקון"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "העלאת תמונה"@@ -40002,6 +40060,11 @@ msgstr "העלה אימוג'י ומדבקות חדשים, ונהל את היציmsgid "Upload preview frames for screen shares."msgstr "העלה פריימים לתצוגה מקדימה עבור שיתופי מסך."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "העלאת סמל התפקיד"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/hi/messages.po b/fluxer_app/src/features/i18n/locales/hi/messages.poindex 8ba100f93..22216f535 100644--- a/fluxer_app/src/features/i18n/locales/hi/messages.po+++ b/fluxer_app/src/features/i18n/locales/hi/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} मिनट"msgid "{folderName} folder"msgstr "{folderName} फ़ोल्डर"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. कम से कम {minimumSize}, अधिकतम {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "नई कम्युनिटी बनाते समय एनिमेटेड आइकॉन समर्थित नहीं हैं। स्थिर इमेज इस्तेमाल करें।"#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "एनिमेटेड आइकॉन समर्थित नहीं हैं। स्थिर इमेज इस्तेमाल करें।"@@ -8375,6 +8382,11 @@ msgstr "बैकग्राउंड चुनें"msgid "Choose either guild_id or channel_id, not both."msgstr "guild_id या channel_id में से कोई एक चुनें, दोनों नहीं।"+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "इमोजी चुनें"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "क्रॉप का पूर्वावलोकन"msgid "Crop profile banner"msgstr "प्रोफ़ाइल बैनर क्रॉप करें"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "रोल आइकॉन क्रॉप करें"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "मौजूदा मेल"msgid "Current ping:"msgstr "मौजूदा पिंग:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "मौजूदा रोल आइकॉन, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "मौजूदा रोल आइकॉन, अपलोड की गई इमेज"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "मौजूदा सेशन"@@ -14192,6 +14219,11 @@ msgstr "अपने ग्रुप आइकॉन की जगह बदलmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "अपने इनवाइट बैकग्राउंड की जगह बदलने के लिए खींचें और ज़ूम करने के लिए स्क्रॉल व्हील या पिंच का इस्तेमाल करें। सुझाया गया न्यूनतम साइज़ {minimumWidth}×{minimumHeight} पिक्सल (16:9) है।"+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "रोल आइकॉन की जगह बदलने के लिए खींचें और ज़ूम करने के लिए स्क्रॉल व्हील या पिंच का इस्तेमाल करें। सुझाया गया न्यूनतम साइज़ {minimumWidth}×{minimumHeight} पिक्सल है।"+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "सिर्फ़ URL वाले पसंदीदा GIF से ह#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "आइकॉन हटाएँ"@@ -30577,6 +30610,16 @@ msgstr "रोल मिटाया गया"msgid "Role deleted successfully"msgstr "रोल सफलतापूर्वक मिटा दिया गया"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "रोल आइकॉन"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "रोल आइकॉन, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "यह फ़ाइल {fileSize} की है, जो {maxSize} कीmsgid "This file is larger than {size}. Choose a smaller one."msgstr "यह फ़ाइल {size} से बड़ी है। कोई छोटी फ़ाइल चुनें।"+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "यह फ़ाइल टाइप समर्थित नहीं है। समर्थित टाइप हैं: {formats}।"@@ -37281,6 +37326,11 @@ msgstr "यह हैंडऑफ़ कोड समाप्त हो गयmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "यह छवि सहेजने के बाद लोड नहीं हो सकी। फिर से प्रयास करने के लिए \"जारी रखें\" दबाएँ, या कोई दूसरी फ़ाइल चुनें।"+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "यह इमेज लोड नहीं हो सकी। कोई दूसरी आज़माएँ।"+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "यह अक्षम है"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "मैसेज ऐसे दिखते हैं"@@ -39917,6 +39969,11 @@ msgstr "एक कस्टम साउंड अपलोड करें जmsgid "Upload a file"msgstr "फ़ाइल अपलोड करें"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "इमेज अपलोड करें या इमोजी चुनें। हर सदस्य के नाम के पास उसके सबसे ऊँचे ऐसे रोल का आइकॉन दिखता है जिसमें आइकॉन हो।"+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "एसेट अपलोड करें"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "आइकॉन अपलोड करें"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "इमेज अपलोड करें"@@ -40002,6 +40060,11 @@ msgstr "नए इमोजी और स्टिकर अपलोड करmsgid "Upload preview frames for screen shares."msgstr "स्क्रीन शेयर के लिए प्रीव्यू फ़्रेम अपलोड करें।"+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "रोल आइकॉन अपलोड करें"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/hr/messages.po b/fluxer_app/src/features/i18n/locales/hr/messages.poindex 7824e7b42..f84fa8c1f 100644--- a/fluxer_app/src/features/i18n/locales/hr/messages.po+++ b/fluxer_app/src/features/i18n/locales/hr/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minuta"msgid "{folderName} folder"msgstr "Mapa {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Najmanje {minimumSize}, najviše {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Animirane ikone nisu podržane prilikom stvaranja nove zajednice. Koristite statičnu sliku."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Animirane ikone nisu podržane. Koristite statičnu sliku."@@ -8375,6 +8382,11 @@ msgstr "Odaberite pozadinu"msgid "Choose either guild_id or channel_id, not both."msgstr "Odaberite guild_id ili channel_id, ne oboje."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Odaberi emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Pretpregled obrezivanja"msgid "Crop profile banner"msgstr "Obreži naslovnu sliku profila"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Obreži ikonu uloge"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Trenutno podudaranje"msgid "Current ping:"msgstr "Trenutni ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Trenutačna ikona uloge, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Trenutačna ikona uloge, učitana slika"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Trenutna sesija"@@ -14192,6 +14219,11 @@ msgstr "Povucite za premještanje ikone grupe i koristite kotačić miša ili prmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Povucite za premještanje pozadine pozivnice i koristite kotačić miša ili prste za zumiranje. Preporučena minimalna veličina je {minimumWidth}×{minimumHeight} piksela (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Povucite za premještanje ikone uloge i koristite kotačić miša ili prste za zumiranje. Preporučena minimalna veličina je {minimumWidth}×{minimumHeight} piksela."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Ukloni iz favorita GIF-ova pohranjenih putem URL-a"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Ukloni ikonu"@@ -30577,6 +30610,16 @@ msgstr "Uloga izbrisana"msgid "Role deleted successfully"msgstr "Uloga je uspješno izbrisana"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Ikona uloge"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Ikona uloge, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Ova datoteka ima {fileSize}, što je iznad ograničenja od {maxSize}. Anmsgid "This file is larger than {size}. Choose a smaller one."msgstr "Ova je datoteka veća od {size}. Odaberite manju."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Ova vrsta datoteke nije podržana. Podržane vrste su {formats}."@@ -37281,6 +37326,11 @@ msgstr "Ovaj je kod za prijenos istekao. Generirajte novi za nastavak."msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Ova se slika nije mogla učitati nakon spremanja. Pritisni \"Nastavi\" za ponovni pokušaj ili odaberi drugu datoteku."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Ova se slika nije mogla učitati. Pokušajte s drugom."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Ovo je onemogućeno"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Ovako izgledaju poruke"@@ -39917,6 +39969,11 @@ msgstr "Učitajte prilagođeni zvuk koji se automatski reproducira kada se pridrmsgid "Upload a file"msgstr "Učitaj datoteku"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Učitajte sliku ili odaberite emoji. Uz ime člana prikazuje se ikona njegove najviše uloge koja ima ikonu."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Učitaj resurse"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Učitaj ikonu"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Učitaj sliku"@@ -40002,6 +40060,11 @@ msgstr "Prenesite nove emojije i naljepnice te upravljajte vlastitim kreacijama.msgid "Upload preview frames for screen shares."msgstr "Prenosi slike pregleda za dijeljenje zaslona."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Učitaj ikonu uloge"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/hu/messages.po b/fluxer_app/src/features/i18n/locales/hu/messages.poindex f2ff48181..3db24fb23 100644--- a/fluxer_app/src/features/i18n/locales/hu/messages.po+++ b/fluxer_app/src/features/i18n/locales/hu/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} perc"msgid "{folderName} folder"msgstr "{folderName} mappa"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Legalább {minimumSize}, legfeljebb {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Új közösség létrehozásakor nem támogatottak az animált ikonok. Használj statikus képet."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Az animált ikonok nem támogatottak. Használj statikus képet."@@ -8375,6 +8382,11 @@ msgstr "Háttér kiválasztása"msgid "Choose either guild_id or channel_id, not both."msgstr "Vagy a guild_id, vagy a channel_id mezőt add meg, ne mindkettőt."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Emoji kiválasztása"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Vágás előnézete"msgid "Crop profile banner"msgstr "Profil borítóképének körbevágása"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Szerepkör ikonjának körbevágása"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Aktuális találat"msgid "Current ping:"msgstr "Jelenlegi ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "A szerepkör jelenlegi ikonja, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "A szerepkör jelenlegi ikonja, feltöltött kép"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Jelenlegi munkamenet"@@ -14192,6 +14219,11 @@ msgstr "Húzd a csoportikon áthelyezéséhez, és használd a görgőt vagy a cmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Húzd a meghívó hátterét az áthelyezéshez, és használd a görgőt vagy a csippentést a nagyításhoz. Az ajánlott minimális méret {minimumWidth}×{minimumHeight} képpont (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Húzd a szerepkör ikonját az áthelyezéshez, és használd a görgőt vagy a csippentést a nagyításhoz. Az ajánlott minimális méret {minimumWidth}×{minimumHeight} képpont."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Eltávolítás az URL-en alapuló GIF-kedvencek közül"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Ikon eltávolítása"@@ -30577,6 +30610,16 @@ msgstr "Szerepkör törölve"msgid "Role deleted successfully"msgstr "Szerepkör sikeresen törölve"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Szerepkör ikonja"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Szerepkör ikonja, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Ez a fájl {fileSize} méretű, ami meghaladja a(z) {maxSize} korlátot.msgid "This file is larger than {size}. Choose a smaller one."msgstr "Ez a fájl nagyobb, mint {size}. Válassz kisebbet."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Ez a fájltípus nem támogatott. Támogatott típusok: {formats}."@@ -37281,6 +37326,11 @@ msgstr "Ez az átadási kód lejárt. A folytatáshoz hozz létre újat."msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "A kép mentés után nem tölthető be. Próbáld újra a „Folytatás” gombbal, vagy válassz másik fájlt."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Ezt a képet nem sikerült betölteni. Próbálj meg egy másikat."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Ez le van tiltva"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Így jelennek meg az üzenetek"@@ -39917,6 +39969,11 @@ msgstr "Tölts fel egyéni hangot, amely automatikusan lejátszódik, amikor hanmsgid "Upload a file"msgstr "Fájl feltöltése"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Tölts fel egy képet, vagy válassz egy emojit. A tagoknál a legmagasabb olyan szerepkörük ikonja látszik, amelynek van ikonja."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Erőforrások feltöltése"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Ikon feltöltése"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Kép feltöltése"@@ -40002,6 +40060,11 @@ msgstr "Új emojik és matricák feltöltése, valamint saját alkotások kezelmsgid "Upload preview frames for screen shares."msgstr "Előnézeti képkockák feltöltése képernyőmegosztáshoz."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Szerepkör ikonjának feltöltése"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/id/messages.po b/fluxer_app/src/features/i18n/locales/id/messages.poindex 4d3418ec2..95f9f0c99 100644--- a/fluxer_app/src/features/i18n/locales/id/messages.po+++ b/fluxer_app/src/features/i18n/locales/id/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} menit"msgid "{folderName} folder"msgstr "Folder {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Minimal {minimumSize}, maksimal {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Ikon animasi tidak didukung saat membuat komunitas baru. Gunakan gambar statis."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Ikon animasi tidak didukung. Gunakan gambar statis."@@ -8375,6 +8382,11 @@ msgstr "Pilih latar belakang"msgid "Choose either guild_id or channel_id, not both."msgstr "Pilih guild_id atau channel_id, jangan keduanya."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Pilih emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Pratinjau pangkasan"msgid "Crop profile banner"msgstr "Pangkas banner profil"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Pangkas ikon peran"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Cocokan saat ini"msgid "Current ping:"msgstr "Ping saat ini:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Ikon peran saat ini, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Ikon peran saat ini, gambar yang diunggah"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Sesi saat ini"@@ -14192,6 +14219,11 @@ msgstr "Seret untuk mengubah posisi ikon grupmu dan gunakan roda gulir atau cubimsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Seret untuk mengubah posisi latar belakang undanganmu dan gunakan roda gulir atau cubit untuk memperbesar. Ukuran minimum yang disarankan adalah {minimumWidth}×{minimumHeight} piksel (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Seret untuk mengubah posisi ikon peran dan gunakan roda gulir atau cubit untuk memperbesar. Ukuran minimum yang disarankan adalah {minimumWidth}×{minimumHeight} piksel."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Hapus dari GIF favorit khusus URL"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Hapus ikon"@@ -30577,6 +30610,16 @@ msgstr "Peran dihapus"msgid "Role deleted successfully"msgstr "Peran berhasil dihapus"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Ikon peran"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Ikon peran, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Ukuran file ini {fileSize}, melebihi batas {maxSize}. Stiker animasi danmsgid "This file is larger than {size}. Choose a smaller one."msgstr "File ini lebih besar dari {size}. Pilih file yang lebih kecil."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Jenis file ini tidak didukung. Jenis yang didukung: {formats}."@@ -37281,6 +37326,11 @@ msgstr "Kode serah terima ini sudah kedaluwarsa. Buat yang baru untuk melanjutkamsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Gambar ini tidak dapat dimuat setelah disimpan. Tekan \"Lanjutkan\" untuk mencoba lagi, atau pilih file lain."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Gambar ini tidak bisa dimuat. Coba gambar lain."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Ini dinonaktifkan"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Begini tampilan pesan"@@ -39917,6 +39969,11 @@ msgstr "Unggah suara khusus yang diputar secara otomatis saat kamu bergabung kemsgid "Upload a file"msgstr "Unggah file"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Unggah gambar atau pilih emoji. Di samping nama anggota tampil ikon dari peran tertingginya yang punya ikon."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Unggah aset"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Unggah ikon"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Unggah gambar"@@ -40002,6 +40060,11 @@ msgstr "Unggah emoji dan stiker baru, serta kelola kreasimu sendiri."msgid "Upload preview frames for screen shares."msgstr "Unggah bingkai pratinjau untuk berbagi layar."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Unggah ikon peran"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/it/messages.po b/fluxer_app/src/features/i18n/locales/it/messages.poindex 38df30068..83521d513 100644--- a/fluxer_app/src/features/i18n/locales/it/messages.po+++ b/fluxer_app/src/features/i18n/locales/it/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minuti"msgid "{folderName} folder"msgstr "Cartella {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Almeno {minimumSize}, fino a {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Quando si crea una nuova community, le icone animate non sono supportate. Usa un'immagine statica."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Le icone animate non sono supportate. Usa un'immagine statica."@@ -8375,6 +8382,11 @@ msgstr "Scegli sfondo"msgid "Choose either guild_id or channel_id, not both."msgstr "Scegli guild_id o channel_id, non entrambi."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Scegli un'emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Anteprima ritaglio"msgid "Crop profile banner"msgstr "Ritaglia banner del profilo"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Ritaglia l'icona del ruolo"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Corrispondenza attuale"msgid "Current ping:"msgstr "Ping attuale:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Icona attuale del ruolo, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Icona attuale del ruolo, immagine caricata"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Sessione corrente"@@ -14192,6 +14219,11 @@ msgstr "Trascina per riposizionare l’icona del gruppo e usa la rotellina o ilmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Trascina per riposizionare lo sfondo del tuo invito e usa la rotellina o il gesto a due dita per regolare lo zoom. La dimensione minima consigliata è {minimumWidth} × {minimumHeight} pixel (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Trascina per riposizionare l'icona del ruolo e usa la rotellina o il gesto a due dita per regolare lo zoom. La dimensione minima consigliata è {minimumWidth} × {minimumHeight} pixel."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Rimuovi dalle GIF preferite salvate solo tramite URL"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Rimuovi icona"@@ -30577,6 +30610,16 @@ msgstr "Ruolo eliminato"msgid "Role deleted successfully"msgstr "Ruolo eliminato"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Icona del ruolo"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Icona del ruolo, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Questo file è di {fileSize}, supera il limite di {maxSize}. Gli stickermsgid "This file is larger than {size}. Choose a smaller one."msgstr "Questo file supera {size}. Scegline uno più piccolo."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Questo tipo di file non è supportato. I tipi supportati sono {formats}."@@ -37281,6 +37326,11 @@ msgstr "Questo codice di trasferimento è scaduto. Generane uno nuovo per continmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Impossibile caricare questa immagine dopo il salvataggio. Premi \"Continua\" per riprovare o scegli un altro file."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Impossibile caricare questa immagine. Provane un'altra."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Questa opzione è disabilitata"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Ecco come appaiono i messaggi"@@ -39917,6 +39969,11 @@ msgstr "Carica un suono personalizzato che viene riprodotto automaticamente quanmsgid "Upload a file"msgstr "Carica un file"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Carica un'immagine o scegli un'emoji. Accanto al nome di ogni membro compare l'icona del suo ruolo più alto che ne ha una."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Carica elementi"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Carica icona"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Carica immagine"@@ -40002,6 +40060,11 @@ msgstr "Carica nuove emoji e sticker e gestisci le tue creazioni."msgid "Upload preview frames for screen shares."msgstr "Carica le anteprime dei fotogrammi per la condivisione dello schermo."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Carica icona del ruolo"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/ja/messages.po b/fluxer_app/src/features/i18n/locales/ja/messages.poindex 4c7853791..884069067 100644--- a/fluxer_app/src/features/i18n/locales/ja/messages.po+++ b/fluxer_app/src/features/i18n/locales/ja/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes}分"msgid "{folderName} folder"msgstr "{folderName}フォルダー"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}。{minimumSize} 以上、{maxSize} まで。"+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "新しいコミュニティの作成時は、アニメーションアイコンを使用できません。静止画像を使用してください。"#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "アニメーションアイコンはサポートされていません。静止画像を使用してください。"@@ -8375,6 +8382,11 @@ msgstr "背景を選択"msgid "Choose either guild_id or channel_id, not both."msgstr "guild_id または channel_id のいずれかを選択してください。両方は選択できません。"+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "絵文字を選択"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "プレビューを切り抜き"msgid "Crop profile banner"msgstr "プロフィールバナーを切り抜き"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "ロールアイコンを切り抜き"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "現在の一致"msgid "Current ping:"msgstr "現在のPing:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "現在のロールアイコン、{emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "現在のロールアイコン、アップロードした画像"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "現在のセッション"@@ -14192,6 +14219,11 @@ msgstr "グループアイコンをドラッグして位置を調整し、スクmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "招待背景をドラッグして位置を調整し、スクロールホイールまたはピンチでズームします。推奨される最小サイズは{minimumWidth}×{minimumHeight}ピクセル(16:9)です。"+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "ロールアイコンをドラッグして位置を調整し、スクロールホイールまたはピンチでズームします。推奨される最小サイズは{minimumWidth}×{minimumHeight}ピクセルです。"+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "URLのみで保存されたGIFをお気に入りから削除"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "アイコンを削除"@@ -30577,6 +30610,16 @@ msgstr "ロールを削除しました"msgid "Role deleted successfully"msgstr "ロールを削除しました"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "ロールアイコン"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "ロールアイコン、{roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "このファイルは{fileSize}で、上限の{maxSize}を超えていmsgid "This file is larger than {size}. Choose a smaller one."msgstr "このファイルは{size}を超えています。より小さいファイルを選択してください。"+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "このファイル形式はサポートされていません。対応している形式は{formats}です。"@@ -37281,6 +37326,11 @@ msgstr "この引き継ぎコードは有効期限が切れました。新しいmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "この画像は保存後に読み込めませんでした。「続行」を押して再試行するか、別のファイルを選択してください。"+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "この画像を読み込めませんでした。別の画像を試してください。"+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "無効です"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "メッセージの表示例"@@ -39917,6 +39969,11 @@ msgstr "ボイスチャンネルに参加したときに自動的に再生されmsgid "Upload a file"msgstr "ファイルをアップロード"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "画像をアップロードするか絵文字を選んでください。メンバーには、アイコンのあるロールのうち最上位のもののアイコンが表示されます。"+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "アセットをアップロード"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "アイコンをアップロード"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "画像をアップロード"@@ -40002,6 +40060,11 @@ msgstr "新しい絵文字やスタンプをアップロードしたり、自分msgid "Upload preview frames for screen shares."msgstr "画面共有のプレビューフレームをアップロードします。"+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "ロールアイコンをアップロード"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/ko/messages.po b/fluxer_app/src/features/i18n/locales/ko/messages.poindex edf322c5e..d19cfb69b 100644--- a/fluxer_app/src/features/i18n/locales/ko/messages.po+++ b/fluxer_app/src/features/i18n/locales/ko/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes}분"msgid "{folderName} folder"msgstr "{folderName} 폴더"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. 최소 {minimumSize}, 최대 {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "새 커뮤니티를 만들 때 움직이는 아이콘은 지원되지 않습니다. 정적 이미지를 사용하세요."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "움직이는 아이콘은 지원되지 않습니다. 정적 이미지를 사용하세요."@@ -8375,6 +8382,11 @@ msgstr "배경 선택"msgid "Choose either guild_id or channel_id, not both."msgstr "guild_id 또는 channel_id 중 하나를 선택하세요. 둘 다 선택할 수 없습니다."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "이모티콘 선택"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "자르기 미리보기"msgid "Crop profile banner"msgstr "프로필 배너 자르기"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "역할 아이콘 자르기"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "현재 일치 항목"msgid "Current ping:"msgstr "현재 핑:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "현재 역할 아이콘, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "현재 역할 아이콘, 업로드한 이미지"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "현재 세션"@@ -14192,6 +14219,11 @@ msgstr "그룹 아이콘을 드래그하여 위치를 조정하고 스크롤 휠msgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "초대 배경을 드래그하여 위치를 조정하고 스크롤 휠 또는 핀치로 확대/축소하세요. 권장 최소 크기는 {minimumWidth}×{minimumHeight}픽셀(16:9)입니다."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "역할 아이콘을 드래그하여 위치를 조정하고 스크롤 휠 또는 핀치로 확대/축소하세요. 권장 최소 크기는 {minimumWidth}×{minimumHeight}픽셀입니다."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "URL 전용 GIF 즐겨찾기에서 제거"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "아이콘 삭제"@@ -30577,6 +30610,16 @@ msgstr "역할 삭제됨"msgid "Role deleted successfully"msgstr "역할이 삭제되었습니다"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "역할 아이콘"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "역할 아이콘, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "이 파일은 {fileSize}이며, 제한 크기인 {maxSize}를 초과합msgid "This file is larger than {size}. Choose a smaller one."msgstr "이 파일은 {size}보다 큽니다. 더 작은 파일을 선택하세요."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "지원되지 않는 파일 형식입니다. 지원되는 형식은 {formats}입니다."@@ -37281,6 +37326,11 @@ msgstr "이 핸드오프 코드가 만료되었습니다. 계속하려면 새msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "이 이미지는 저장 후 불러올 수 없습니다. \"계속\"을 눌러 다시 시도하거나 다른 파일을 선택하세요."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "이 이미지를 불러올 수 없습니다. 다른 이미지를 사용해 보세요."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "비활성화됨"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "메시지가 표시되는 방식입니다"@@ -39917,6 +39969,11 @@ msgstr "음성 채널에 참가할 때 자동으로 재생되는 사용자 지msgid "Upload a file"msgstr "파일 업로드"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "이미지를 업로드하거나 이모티콘을 선택하세요. 멤버 이름 옆에는 아이콘이 있는 역할 중 가장 높은 역할의 아이콘이 표시됩니다."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "에셋 업로드"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "아이콘 업로드"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "이미지 업로드"@@ -40002,6 +40060,11 @@ msgstr "새로운 이모티콘과 스티커를 업로드하고 직접 만든 콘msgid "Upload preview frames for screen shares."msgstr "화면 공유 미리보기 프레임을 업로드합니다."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "역할 아이콘 업로드"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/lt/messages.po b/fluxer_app/src/features/i18n/locales/lt/messages.poindex 5f7ce2ae5..15523ac28 100644--- a/fluxer_app/src/features/i18n/locales/lt/messages.po+++ b/fluxer_app/src/features/i18n/locales/lt/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minučių"msgid "{folderName} folder"msgstr "Aplankas {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Ne mažiau kaip {minimumSize}, iki {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Animuotų piktogramų negalima naudoti kuriant naują bendruomenę. Naudokite statinį paveikslėlį."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Animuotos piktogramos nepalaikomos. Naudokite statinį paveikslėlį."@@ -8375,6 +8382,11 @@ msgstr "Pasirinkite foną"msgid "Choose either guild_id or channel_id, not both."msgstr "Pasirinkite „guild_id“ arba „channel_id“, bet ne abu."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Pasirinkti jaustuką"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Apkarpymo peržiūra"msgid "Crop profile banner"msgstr "Apkarpyti profilio reklamjuostę"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Apkarpyti vaidmens piktogramą"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Dabartinis atitikmuo"msgid "Current ping:"msgstr "Dabartinis ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Dabartinė vaidmens piktograma, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Dabartinė vaidmens piktograma, įkeltas paveikslėlis"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Dabartinis seansas"@@ -14192,6 +14219,11 @@ msgstr "Vilkite, kad pakeistumėte grupės piktogramos padėtį, ir priartinkitemsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Vilkite, kad pakeistumėte kvietimo fono padėtį, ir priartinkite pelės ratuku arba suglausdami pirštus. Rekomenduojamas minimalus dydis yra {minimumWidth}×{minimumHeight} pikselių (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Vilkite, kad pakeistumėte vaidmens piktogramos padėtį, ir priartinkite pelės ratuku arba suglausdami pirštus. Rekomenduojamas minimalus dydis yra {minimumWidth}×{minimumHeight} pikselių."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29241,6 +29273,7 @@ msgstr "Pašalinti iš mėgstamiausių GIF (tik URL)"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Pašalinti piktogramą"@@ -30578,6 +30611,16 @@ msgstr "Vaidmuo ištrintas"msgid "Role deleted successfully"msgstr "Vaidmuo sėkmingai ištrintas"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Vaidmens piktograma"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Vaidmens piktograma, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37219,8 +37262,10 @@ msgstr "Šis failas yra {fileSize}, viršijantis {maxSize} limitą. Animuoti lipmsgid "This file is larger than {size}. Choose a smaller one."msgstr "Šis failas didesnis nei {size}. Pasirinkite mažesnį."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Šis failo tipas nepalaikomas. Palaikomi tipai: {formats}."@@ -37282,6 +37327,11 @@ msgstr "Šis perdavimo kodas nebegalioja. Norėdami tęsti, sugeneruokite naująmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Nepavyko įkelti šio paveikslėlio po išsaugojimo. Paspauskite „Tęsti“, kad bandytumėte dar kartą, arba pasirinkite kitą failą."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Nepavyko įkelti šio paveikslėlio. Pabandykite kitą."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37381,6 +37431,8 @@ msgid "This is disabled"msgstr "Tai išjungta"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Štai kaip atrodo žinutės"@@ -39918,6 +39970,11 @@ msgstr "Įkelkite pasirinktinį garsą, kuris automatiškai leidžiamas, kai primsgid "Upload a file"msgstr "Įkelti failą"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Įkelkite paveikslėlį arba pasirinkite jaustuką. Prie nario vardo rodoma aukščiausio jo vaidmens, turinčio piktogramą, piktograma."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Įkelti išteklius"@@ -39979,6 +40036,7 @@ msgid "Upload icon"msgstr "Įkelti piktogramą"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Įkelti paveikslėlį"@@ -40003,6 +40061,11 @@ msgstr "Įkelkite naujų jaustukų ir lipdukų bei tvarkykite savo kūrinius."msgid "Upload preview frames for screen shares."msgstr "Įkelkite ekrano bendrinimo peržiūros kadrus."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Įkelti vaidmens piktogramą"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/nl/messages.po b/fluxer_app/src/features/i18n/locales/nl/messages.poindex 34ad4df04..34d81793b 100644--- a/fluxer_app/src/features/i18n/locales/nl/messages.po+++ b/fluxer_app/src/features/i18n/locales/nl/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minuten"msgid "{folderName} folder"msgstr "Map {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Minimaal {minimumSize}, maximaal {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Geanimeerde pictogrammen worden niet ondersteund bij het maken van een nieuwe community. Gebruik een statische afbeelding."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Geanimeerde pictogrammen worden niet ondersteund. Gebruik een statische afbeelding."@@ -8375,6 +8382,11 @@ msgstr "Kies achtergrond"msgid "Choose either guild_id or channel_id, not both."msgstr "Kies guild_id of channel_id, niet beide."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Emoji kiezen"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Voorbeeld van bijgesneden afbeelding"msgid "Crop profile banner"msgstr "Profielbanner bijsnijden"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Rolpictogram bijsnijden"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Huidige resultaat"msgid "Current ping:"msgstr "Huidige ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Huidig rolpictogram, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Huidig rolpictogram, geüploade afbeelding"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Huidige sessie"@@ -14192,6 +14219,11 @@ msgstr "Sleep om je groepspictogram te verplaatsen en gebruik het scrollwiel ofmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Sleep om je uitnodigingsachtergrond te verplaatsen en gebruik het scrollwiel of een knijpbeweging om te zoomen. De aanbevolen minimale grootte is {minimumWidth}×{minimumHeight} pixels (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Sleep om het rolpictogram te verplaatsen en gebruik het scrollwiel of een knijpbeweging om te zoomen. De aanbevolen minimale grootte is {minimumWidth}×{minimumHeight} pixels."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Verwijderen uit URL-gebaseerde GIF-favorieten"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Pictogram verwijderen"@@ -30577,6 +30610,16 @@ msgstr "Rol verwijderd"msgid "Role deleted successfully"msgstr "Rol succesvol verwijderd"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Rolpictogram"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Rolpictogram, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Dit bestand is {fileSize}, wat groter is dan de limiet van {maxSize}. Gemsgid "This file is larger than {size}. Choose a smaller one."msgstr "Dit bestand is groter dan {size}. Kies een kleiner bestand."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Dit bestandstype wordt niet ondersteund. Ondersteunde typen zijn {formats}."@@ -37281,6 +37326,11 @@ msgstr "Deze overdrachtscode is verlopen. Genereer een nieuwe om verder te gaan.msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Deze afbeelding kon niet worden geladen na het opslaan. Druk op \"Doorgaan\" om het opnieuw te proberen, of kies een ander bestand."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Deze afbeelding kon niet worden geladen. Probeer een andere."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Dit is uitgeschakeld"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Zo worden berichten weergegeven"@@ -39917,6 +39969,11 @@ msgstr "Upload een aangepast geluid dat automatisch wordt afgespeeld wanneer jemsgid "Upload a file"msgstr "Bestand uploaden"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Upload een afbeelding of kies een emoji. Naast de naam van leden staat het pictogram van hun hoogste rol met een pictogram."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Bestanden uploaden"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Pictogram uploaden"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Afbeelding uploaden"@@ -40002,6 +40060,11 @@ msgstr "Nieuwe emoji en stickers uploaden en je eigen creaties beheren."msgid "Upload preview frames for screen shares."msgstr "Upload voorbeeldbeelden voor schermdeling."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Rolpictogram uploaden"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/no/messages.po b/fluxer_app/src/features/i18n/locales/no/messages.poindex de8b70f35..199c0f61f 100644--- a/fluxer_app/src/features/i18n/locales/no/messages.po+++ b/fluxer_app/src/features/i18n/locales/no/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minutter"msgid "{folderName} folder"msgstr "Mappen {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Minst {minimumSize}, opptil {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Animerte ikoner støttes ikke når du oppretter et nytt fellesskap. Bruk et statisk bilde."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Animerte ikoner støttes ikke. Bruk et statisk bilde."@@ -8375,6 +8382,11 @@ msgstr "Velg bakgrunn"msgid "Choose either guild_id or channel_id, not both."msgstr "Velg enten guild_id eller channel_id, ikke begge."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Velg emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Forhåndsvisning av beskjæring"msgid "Crop profile banner"msgstr "Beskjær profilbanner"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Beskjær rolleikon"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Nåværende treff"msgid "Current ping:"msgstr "Gjeldende ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Gjeldende rolleikon, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Gjeldende rolleikon, opplastet bilde"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Gjeldende økt"@@ -14192,6 +14219,11 @@ msgstr "Dra for å flytte gruppeikonet og bruk rullehjulet eller klyp for å zoomsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Dra for å flytte invitasjonsbakgrunnen og bruk rullehjulet eller klyp for å zoome. Anbefalt minimumsstørrelse er {minimumWidth}×{minimumHeight} piksler (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Dra for å flytte rolleikonet og bruk rullehjulet eller klyp for å zoome. Anbefalt minimumsstørrelse er {minimumWidth}×{minimumHeight} piksler."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Fjern fra URL-baserte GIF-favoritter"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Fjern ikon"@@ -30577,6 +30610,16 @@ msgstr "Rolle slettet"msgid "Role deleted successfully"msgstr "Rollen er slettet"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Rolleikon"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Rolleikon, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Filen er {fileSize}, som er over grensen på {maxSize}. Animerte klistremsgid "This file is larger than {size}. Choose a smaller one."msgstr "Denne filen er større enn {size}. Velg en mindre fil."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Denne filtypen støttes ikke. Støttede typer er {formats}."@@ -37281,6 +37326,11 @@ msgstr "Denne overføringskoden har utløpt. Generer en ny for å fortsette."msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Dette bildet kunne ikke lastes inn etter lagring. Trykk på «Fortsett» for å prøve igjen, eller velg en annen fil."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Bildet kunne ikke lastes inn. Prøv et annet."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Dette er deaktivert"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Slik vises meldinger"@@ -39917,6 +39969,11 @@ msgstr "Last opp en egendefinert lyd som spilles av automatisk når du blir medmsgid "Upload a file"msgstr "Last opp en fil"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Last opp et bilde eller velg en emoji. Ved navnet til et medlem vises ikonet til medlemmets høyeste rolle med et ikon."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Last opp filer"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Last opp ikon"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Last opp bilde"@@ -40002,6 +40060,11 @@ msgstr "Last opp nye emojier og klistremerker, og administrer dine egne kreasjonmsgid "Upload preview frames for screen shares."msgstr "Last opp forhåndsvisningsbilder for skjermdeling."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Last opp rolleikon"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/pl/messages.po b/fluxer_app/src/features/i18n/locales/pl/messages.poindex 63354626e..90980bb63 100644--- a/fluxer_app/src/features/i18n/locales/pl/messages.po+++ b/fluxer_app/src/features/i18n/locales/pl/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minut"msgid "{folderName} folder"msgstr "Folder {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Co najmniej {minimumSize}, do {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Animowane ikony nie są obsługiwane podczas tworzenia nowej społeczności. Użyj statycznego obrazu."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Animowane ikony nie są obsługiwane. Użyj statycznego obrazu."@@ -8375,6 +8382,11 @@ msgstr "Wybierz tło"msgid "Choose either guild_id or channel_id, not both."msgstr "Wybierz guild_id lub channel_id, nie oba."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Wybierz emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Podgląd kadrowania"msgid "Crop profile banner"msgstr "Przytnij baner profilowy"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Przytnij ikonę roli"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Bieżące dopasowanie"msgid "Current ping:"msgstr "Bieżący ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Obecna ikona roli, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Obecna ikona roli, przesłany obraz"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Aktualna sesja"@@ -14192,6 +14219,11 @@ msgstr "Przeciągnij, aby zmienić położenie ikony grupy, i użyj kółka przemsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Przeciągnij, aby zmienić położenie tła zaproszenia, i użyj kółka przewijania lub gestu szczypania, aby powiększyć. Zalecany minimalny rozmiar to {minimumWidth}×{minimumHeight} pikseli (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Przeciągnij, aby zmienić położenie ikony roli, i użyj kółka przewijania lub gestu szczypania, aby powiększyć. Zalecany minimalny rozmiar to {minimumWidth}×{minimumHeight} pikseli."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Usuń z ulubionych GIF-ów zapisanych na podstawie adresu URL"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Usuń ikonę"@@ -30577,6 +30610,16 @@ msgstr "Rola usunięta"msgid "Role deleted successfully"msgstr "Rola usunięta pomyślnie"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Ikona roli"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Ikona roli, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Ten plik ma rozmiar {fileSize}, co przekracza limit {maxSize}. Animowanemsgid "This file is larger than {size}. Choose a smaller one."msgstr "Ten plik jest większy niż {size}. Wybierz mniejszy."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Ten typ pliku nie jest obsługiwany. Obsługiwane typy to {formats}."@@ -37281,6 +37326,11 @@ msgstr "Ten kod przekazania wygasł. Wygeneruj nowy, aby kontynuować."msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Nie udało się załadować tego obrazu po zapisaniu. Naciśnij „Kontynuuj”, aby spróbować ponownie lub wybierz inny plik."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Nie udało się wczytać tego obrazu. Spróbuj innego."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "To jest wyłączone"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Tak wyglądają wiadomości"@@ -39917,6 +39969,11 @@ msgstr "Prześlij niestandardowy dźwięk, który będzie automatycznie odtwarzamsgid "Upload a file"msgstr "Prześlij plik"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Prześlij obraz lub wybierz emoji. Przy nazwie członka widać ikonę jego najwyższej roli, która ma ikonę."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Prześlij zasoby"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Prześlij ikonę"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Prześlij obraz"@@ -40002,6 +40060,11 @@ msgstr "Przesyłaj nowe emoji i naklejki oraz zarządzaj własnymi dziełami."msgid "Upload preview frames for screen shares."msgstr "Przesyłaj klatki podglądu udostępnianego ekranu."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Prześlij ikonę roli"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/pt-BR/messages.po b/fluxer_app/src/features/i18n/locales/pt-BR/messages.poindex 39feee113..712677a0c 100644--- a/fluxer_app/src/features/i18n/locales/pt-BR/messages.po+++ b/fluxer_app/src/features/i18n/locales/pt-BR/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minutos"msgid "{folderName} folder"msgstr "Pasta {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. No mínimo {minimumSize}, até {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Ícones animados não são suportados ao criar uma nova comunidade. Use uma imagem estática."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Ícones animados não são suportados. Use uma imagem estática."@@ -8375,6 +8382,11 @@ msgstr "Escolher plano de fundo"msgid "Choose either guild_id or channel_id, not both."msgstr "Escolha guild_id ou channel_id, não ambos."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Escolher emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Prévia do corte"msgid "Crop profile banner"msgstr "Recortar banner do perfil"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Recortar ícone do cargo"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Correspondência atual"msgid "Current ping:"msgstr "Ping atual:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Ícone atual do cargo, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Ícone atual do cargo, imagem enviada"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Sessão atual"@@ -14192,6 +14219,11 @@ msgstr "Arraste para reposicionar o ícone do seu grupo e use a roda de rolagemmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Arraste para reposicionar o plano de fundo do seu convite e use a roda de rolagem ou o movimento de pinça para aplicar zoom. O tamanho mínimo recomendado é de {minimumWidth}×{minimumHeight} pixels (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Arraste para reposicionar o ícone do cargo e use a roda de rolagem ou o movimento de pinça para aplicar zoom. O tamanho mínimo recomendado é de {minimumWidth}×{minimumHeight} pixels."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Remover dos GIFs favoritos salvos por URL"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Remover ícone"@@ -30577,6 +30610,16 @@ msgstr "Cargo excluído"msgid "Role deleted successfully"msgstr "Cargo excluído com sucesso"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Ícone do cargo"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Ícone do cargo, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Este arquivo tem {fileSize}, excedendo o limite de {maxSize}. Figurinhasmsgid "This file is larger than {size}. Choose a smaller one."msgstr "Este arquivo tem mais de {size}. Escolha um menor."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Este tipo de arquivo não é compatível. Os tipos compatíveis são {formats}."@@ -37281,6 +37326,11 @@ msgstr "Este código de transferência expirou. Gere um novo para continuar."msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Não foi possível carregar esta imagem após o salvamento. Pressione \"Continuar\" para tentar novamente ou escolha outro arquivo."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Não foi possível carregar esta imagem. Tente outra."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Isto está desativado"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "É assim que as mensagens aparecem"@@ -39917,6 +39969,11 @@ msgstr "Envie um som personalizado que é reproduzido automaticamente quando vocmsgid "Upload a file"msgstr "Enviar um arquivo"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Envie uma imagem ou escolha um emoji. Ao lado do nome de cada membro aparece o ícone do cargo mais alto dele que tiver um."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Enviar recursos"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Enviar ícone"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Enviar imagem"@@ -40002,6 +40060,11 @@ msgstr "Enviar novos emojis e figurinhas e gerenciar suas próprias criações."msgid "Upload preview frames for screen shares."msgstr "Enviar quadros de prévia dos compartilhamentos de tela."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Enviar ícone do cargo"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/ro/messages.po b/fluxer_app/src/features/i18n/locales/ro/messages.poindex a10b47002..517127b15 100644--- a/fluxer_app/src/features/i18n/locales/ro/messages.po+++ b/fluxer_app/src/features/i18n/locales/ro/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minute"msgid "{folderName} folder"msgstr "Dosarul {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Cel puțin {minimumSize}, până la {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Nu se acceptă pictograme animate la crearea unei noi comunități. Folosește o imagine statică."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Pictogramele animate nu sunt acceptate. Folosește o imagine statică."@@ -8375,6 +8382,11 @@ msgstr "Alege fundalul"msgid "Choose either guild_id or channel_id, not both."msgstr "Alege fie guild_id, fie channel_id, nu ambele."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Alege emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Previzualizare decupare"msgid "Crop profile banner"msgstr "Decupează bannerul de profil"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Decupează pictograma rolului"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Potrivirea curentă"msgid "Current ping:"msgstr "Ping actual:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Pictograma actuală a rolului, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Pictograma actuală a rolului, imagine încărcată"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Sesiunea curentă"@@ -14192,6 +14219,11 @@ msgstr "Trage pentru a repoziționa pictograma grupului și folosește rotița dmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Trage pentru a repoziționa fundalul invitației și folosește rotița de derulare sau gestul de ciupire pentru a mări. Dimensiunea minimă recomandată este de {minimumWidth}×{minimumHeight} pixeli (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Trage pentru a repoziționa pictograma rolului și folosește rotița de derulare sau gestul de ciupire pentru a mări. Dimensiunea minimă recomandată este de {minimumWidth}×{minimumHeight} pixeli."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Elimină din favoritele GIF salvate doar prin URL"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Elimină pictograma"@@ -30577,6 +30610,16 @@ msgstr "Rol șters"msgid "Role deleted successfully"msgstr "Rol șters cu succes"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Pictograma rolului"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Pictograma rolului, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Acest fișier are {fileSize}, depășind limita de {maxSize}. Stickerelemsgid "This file is larger than {size}. Choose a smaller one."msgstr "Fișierul depășește {size}. Alege unul mai mic."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Acest tip de fișier nu este acceptat. Tipurile acceptate sunt {formats}."@@ -37281,6 +37326,11 @@ msgstr "Acest cod de transfer a expirat. Generează unul nou pentru a continua."msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Imaginea nu a putut fi încărcată după salvare. Apasă „Continuă” pentru a încerca din nou sau alege un alt fișier."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Imaginea nu a putut fi încărcată. Încearcă alta."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Aceasta este dezactivată"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Așa apar mesajele"@@ -39917,6 +39969,11 @@ msgstr "Încarcă un sunet personalizat care se va reda automat când te alăturmsgid "Upload a file"msgstr "Încarcă un fișier"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Încarcă o imagine sau alege un emoji. Lângă numele fiecărui membru apare pictograma celui mai înalt rol al său care are una."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Încarcă resurse"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Încarcă pictogramă"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Încarcă imaginea"@@ -40002,6 +40060,11 @@ msgstr "Încarcă emoji și stickere noi și gestionează-ți propriile creațiimsgid "Upload preview frames for screen shares."msgstr "Încarcă cadrele de previzualizare pentru partajarea ecranului."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Încarcă pictograma rolului"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/ru/messages.po b/fluxer_app/src/features/i18n/locales/ru/messages.poindex e139dc051..c3f3900e8 100644--- a/fluxer_app/src/features/i18n/locales/ru/messages.po+++ b/fluxer_app/src/features/i18n/locales/ru/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} минут"msgid "{folderName} folder"msgstr "Папка «{folderName}»"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Не менее {minimumSize}, до {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "При создании нового сообщества нельзя использовать анимированные значки. Используйте статичное изображение."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Анимированные значки не поддерживаются. Используйте статичное изображение."@@ -8375,6 +8382,11 @@ msgstr "Выбрать фон"msgid "Choose either guild_id or channel_id, not both."msgstr "Выберите либо guild_id, либо channel_id, но не оба сразу."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Выбрать эмодзи"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Предпросмотр обрезки"msgid "Crop profile banner"msgstr "Обрезать баннер профиля"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Обрезать значок роли"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Текущее совпадение"msgid "Current ping:"msgstr "Пинг:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Текущий значок роли, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Текущий значок роли, загруженное изображение"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Текущая сессия"@@ -14192,6 +14219,11 @@ msgstr "Перетащите, чтобы изменить положение зmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Перетащите, чтобы изменить положение фона приглашения, и используйте колесико прокрутки или жест масштабирования. Рекомендуемый минимальный размер: {minimumWidth}×{minimumHeight} пикселей (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Перетащите, чтобы изменить положение значка роли, и используйте колесико прокрутки или жест масштабирования. Рекомендуемый минимальный размер: {minimumWidth}×{minimumHeight} пикселей."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Удалить из избранных GIF (только по URL)"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Удалить значок"@@ -30577,6 +30610,16 @@ msgstr "Роль удалена"msgid "Role deleted successfully"msgstr "Роль успешно удалена"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Значок роли"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Значок роли, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Размер этого файла — {fileSize}, что превышаmsgid "This file is larger than {size}. Choose a smaller one."msgstr "Этот файл больше {size}. Выберите файл поменьше."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Этот тип файлов не поддерживается. Поддерживаемые типы: {formats}."@@ -37281,6 +37326,11 @@ msgstr "Срок действия этого кода истёк. Создайтmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Не удалось загрузить это изображение после сохранения. Нажмите «Продолжить», чтобы попробовать снова, или выберите другой файл."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Не удалось загрузить это изображение. Попробуйте другое."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Отключено"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Так выглядят сообщения"@@ -39917,6 +39969,11 @@ msgstr "Загрузите пользовательский звук, которmsgid "Upload a file"msgstr "Загрузить файл"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Загрузите изображение или выберите эмодзи. У участников показывается значок их самой высокой роли, у которой он есть."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Загрузить ресурсы"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Загрузить значок"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Загрузить изображение"@@ -40002,6 +40060,11 @@ msgstr "Загружать новые эмодзи и стикеры, а такmsgid "Upload preview frames for screen shares."msgstr "Загружать кадры предпросмотра демонстрации экрана."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Загрузить значок роли"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/sv-SE/messages.po b/fluxer_app/src/features/i18n/locales/sv-SE/messages.poindex 7a252b920..9a523816a 100644--- a/fluxer_app/src/features/i18n/locales/sv-SE/messages.po+++ b/fluxer_app/src/features/i18n/locales/sv-SE/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} minuter"msgid "{folderName} folder"msgstr "Mappen {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Minst {minimumSize}, högst {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Animerade ikoner stöds inte när du skapar en ny community. Använd en statisk bild."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Animerade ikoner stöds inte. Använd en statisk bild."@@ -8375,6 +8382,11 @@ msgstr "Välj bakgrund"msgid "Choose either guild_id or channel_id, not both."msgstr "Välj antingen guild_id eller channel_id, inte båda."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Välj emoji"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Beskär förhandsvisning"msgid "Crop profile banner"msgstr "Beskär profilbanner"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Beskär rollikon"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Aktuell träff"msgid "Current ping:"msgstr "Aktuell ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Nuvarande rollikon, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Nuvarande rollikon, uppladdad bild"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Nuvarande session"@@ -14192,6 +14219,11 @@ msgstr "Dra för att flytta gruppikonen och använd skrollhjulet eller nyp förmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Dra för att flytta din inbjudningsbakgrund och använd skrollhjulet eller nyp för att zooma. Den rekommenderade minimistorleken är {minimumWidth}×{minimumHeight} pixlar (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Dra för att flytta rollikonen och använd skrollhjulet eller nyp för att zooma. Rekommenderad minimistorlek är {minimumWidth}×{minimumHeight} pixlar."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Ta bort från URL-baserade GIF-favoriter"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Ta bort ikon"@@ -30577,6 +30610,16 @@ msgstr "Roll borttagen"msgid "Role deleted successfully"msgstr "Rollen har tagits bort"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Rollikon"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Rollikon, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Filen är {fileSize}, vilket är över gränsen på {maxSize}. Animerademsgid "This file is larger than {size}. Choose a smaller one."msgstr "Filen är större än {size}. Välj en mindre fil."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Filtypen stöds inte. Filtyper som stöds är {formats}."@@ -37281,6 +37326,11 @@ msgstr "Den här överlämningskoden har gått ut. Skapa en ny för att fortsätmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Den här bilden kunde inte laddas efter att den sparats. Tryck på \"Fortsätt\" för att försöka igen, eller välj en annan fil."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Bilden kunde inte läsas in. Prova en annan."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Det här är inaktiverat"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Så här visas meddelanden"@@ -39917,6 +39969,11 @@ msgstr "Ladda upp ett anpassat ljud som spelas automatiskt när du går med i enmsgid "Upload a file"msgstr "Ladda upp en fil"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Ladda upp en bild eller välj en emoji. Bredvid en medlems namn visas ikonen från medlemmens högsta roll som har en ikon."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Ladda upp resurser"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Ladda upp ikon"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Ladda upp bild"@@ -40002,6 +40060,11 @@ msgstr "Ladda upp nya emojier och klistermärken och hantera dina egna skapelsermsgid "Upload preview frames for screen shares."msgstr "Ladda upp förhandsvisningsbilder för skärmdelningar."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Ladda upp rollikon"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/th/messages.po b/fluxer_app/src/features/i18n/locales/th/messages.poindex c39451697..cc747946b 100644--- a/fluxer_app/src/features/i18n/locales/th/messages.po+++ b/fluxer_app/src/features/i18n/locales/th/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} นาที"msgid "{folderName} folder"msgstr "โฟลเดอร์ {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats} ขนาดอย่างน้อย {minimumSize} ไม่เกิน {maxSize}"+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "ไม่รองรับไอคอนแบบเคลื่อนไหวเมื่อสร้างคอมมูนิตี้ใหม่ ใช้ภาพนิ่งแทน"#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "ไม่รองรับไอคอนแบบเคลื่อนไหว ใช้ภาพนิ่งแทน"@@ -8375,6 +8382,11 @@ msgstr "เลือกพื้นหลัง"msgid "Choose either guild_id or channel_id, not both."msgstr "เลือก guild_id หรือ channel_id อย่างใดอย่างหนึ่ง ไม่ใช่ทั้งสองอย่าง"+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "เลือกอิโมจิ"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "ตัวอย่างการครอบตัด"msgid "Crop profile banner"msgstr "ครอบตัดแบนเนอร์โปรไฟล์"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "ครอบตัดไอคอนบทบาท"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "ตรงปัจจุบัน"msgid "Current ping:"msgstr "Ping ปัจจุบัน:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "ไอคอนบทบาทปัจจุบัน {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "ไอคอนบทบาทปัจจุบัน รูปภาพที่อัปโหลด"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "เซสชันปัจจุบัน"@@ -14192,6 +14219,11 @@ msgstr "ลากเพื่อปรับตำแหน่งไอคอนmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "ลากเพื่อปรับตำแหน่งพื้นหลังคำเชิญของคุณ และใช้ล้อเลื่อนเมาส์หรือบีบนิ้วเพื่อซูม ขนาดขั้นต่ำที่แนะนำคือ {minimumWidth}×{minimumHeight} พิกเซล (16:9)"+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "ลากเพื่อปรับตำแหน่งไอคอนบทบาท และใช้ล้อเลื่อนเมาส์หรือบีบนิ้วเพื่อซูม ขนาดขั้นต่ำที่แนะนำคือ {minimumWidth}×{minimumHeight} พิกเซล"+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "นำออกจาก GIF รายการโปรด (เฉพ#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "ลบไอคอน"@@ -30577,6 +30610,16 @@ msgstr "ลบบทบาทแล้ว"msgid "Role deleted successfully"msgstr "ลบบทบาทสำเร็จแล้ว"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "ไอคอนบทบาท"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "ไอคอนบทบาท {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "ไฟล์นี้มีขนาด {fileSize} ซึ่งเกิmsgid "This file is larger than {size}. Choose a smaller one."msgstr "ไฟล์นี้ใหญ่กว่า {size} โปรดเลือกไฟล์ที่เล็กกว่านี้"+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "ไม่รองรับไฟล์ประเภทนี้ ประเภทที่รองรับคือ {formats}"@@ -37281,6 +37326,11 @@ msgstr "รหัสส่งต่อนี้หมดอายุแล้วmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "ไม่สามารถโหลดรูปภาพนี้หลังจากบันทึกได้ กด \"ดำเนินการต่อ\" เพื่อลองใหม่ หรือเลือกไฟล์อื่น"+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "โหลดรูปภาพนี้ไม่ได้ ลองใช้รูปอื่น"+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "ปิดใช้งานอยู่"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "ลักษณะการแสดงผลของข้อความ"@@ -39917,6 +39969,11 @@ msgstr "อัปโหลดเสียงที่คุณต้องกาmsgid "Upload a file"msgstr "อัปโหลดไฟล์"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "อัปโหลดรูปภาพหรือเลือกอิโมจิ ข้างชื่อสมาชิกจะแสดงไอคอนของบทบาทสูงสุดที่มีไอคอน"+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "อัปโหลดไฟล์ประกอบ"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "อัปโหลดไอคอน"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "อัปโหลดรูปภาพ"@@ -40002,6 +40060,11 @@ msgstr "อัปโหลดอิโมจิและสติกเกอรmsgid "Upload preview frames for screen shares."msgstr "อัปโหลดเฟรมตัวอย่างสำหรับการแชร์หน้าจอ"+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "อัปโหลดไอคอนบทบาท"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/tr/messages.po b/fluxer_app/src/features/i18n/locales/tr/messages.poindex 973228d3b..00172780b 100644--- a/fluxer_app/src/features/i18n/locales/tr/messages.po+++ b/fluxer_app/src/features/i18n/locales/tr/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} dakika"msgid "{folderName} folder"msgstr "{folderName} klasörü"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. En az {minimumSize}, en fazla {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Yeni bir topluluk oluştururken hareketli simgeler desteklenmez. Statik bir görsel kullanın."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Hareketli simgeler desteklenmez. Statik bir görsel kullanın."@@ -8375,6 +8382,11 @@ msgstr "Arka plan seçin"msgid "Choose either guild_id or channel_id, not both."msgstr "guild_id veya channel_id'den birini seçin, ikisini birden değil."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Emoji seç"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Kırpma önizlemesi"msgid "Crop profile banner"msgstr "Profil banner'ını kırp"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Rol simgesini kırp"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Geçerli eşleşme"msgid "Current ping:"msgstr "Mevcut ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Geçerli rol simgesi, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Geçerli rol simgesi, yüklenen görsel"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Mevcut oturum"@@ -14192,6 +14219,11 @@ msgstr "Grup simgenizi yeniden konumlandırmak için sürükleyin ve yakınlaştmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Davet arka planınızı yeniden konumlandırmak için sürükleyin ve yakınlaştırmak için kaydırma tekerleğini veya kıstırma hareketini kullanın. Önerilen minimum boyut {minimumWidth}×{minimumHeight} pikseldir (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Rol simgesini yeniden konumlandırmak için sürükleyin ve yakınlaştırmak için kaydırma tekerleğini veya kıstırma hareketini kullanın. Önerilen minimum boyut {minimumWidth}×{minimumHeight} pikseldir."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Yalnızca URL'den kaydedilen GIF favorilerinden kaldır"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Simgeyi kaldır"@@ -30577,6 +30610,16 @@ msgstr "Rol silindi"msgid "Role deleted successfully"msgstr "Rol başarıyla silindi"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Rol simgesi"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Rol simgesi, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Bu dosya {fileSize} boyutunda ve {maxSize} sınırını aşıyor. Harekemsgid "This file is larger than {size}. Choose a smaller one."msgstr "Bu dosya {size} boyutundan büyük. Daha küçük bir dosya seçin."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Bu dosya türü desteklenmiyor. Desteklenen türler: {formats}."@@ -37281,6 +37326,11 @@ msgstr "Bu aktarım kodunun süresi doldu. Devam etmek için yeni bir tane oluşmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Bu görsel kaydedildikten sonra yüklenemedi. Tekrar denemek için \"Devam et\"e basın veya farklı bir dosya seçin."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Bu görsel yüklenemedi. Başka bir tane deneyin."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Bu devre dışı"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Mesajlar böyle görünür"@@ -39917,6 +39969,11 @@ msgstr "Sesli bir kanala katıldığınızda otomatik olarak çalan özel bir semsgid "Upload a file"msgstr "Dosya yükle"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Bir görsel yükleyin veya bir emoji seçin. Üyelerde, simgesi olan en yüksek rollerinin simgesi görünür."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Öğeleri yükle"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Simge yükle"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Görsel yükle"@@ -40002,6 +40060,11 @@ msgstr "Yeni emoji ve çıkartmalar yükleyin, kendi oluşturduklarınızı yönmsgid "Upload preview frames for screen shares."msgstr "Ekran paylaşımları için önizleme kareleri yükleyin."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Rol simgesi yükle"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/uk/messages.po b/fluxer_app/src/features/i18n/locales/uk/messages.poindex a9da48498..901741291 100644--- a/fluxer_app/src/features/i18n/locales/uk/messages.po+++ b/fluxer_app/src/features/i18n/locales/uk/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} хвилин"msgid "{folderName} folder"msgstr "Папка «{folderName}»"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Щонайменше {minimumSize}, до {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Анімовані іконки не підтримуються під час створення нової спільноти. Використовуйте статичне зображення."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Анімовані іконки не підтримуються. Використовуйте статичне зображення."@@ -8375,6 +8382,11 @@ msgstr "Виберіть фон"msgid "Choose either guild_id or channel_id, not both."msgstr "Виберіть guild_id або channel_id, але не обидва."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Вибрати емоджі"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Попередній перегляд обрізання"msgid "Crop profile banner"msgstr "Обрізати банер профілю"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Обрізати іконку ролі"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Поточний збіг"msgid "Current ping:"msgstr "Поточний пінг:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Поточна іконка ролі, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Поточна іконка ролі, завантажене зображення"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Поточна сесія"@@ -14192,6 +14219,11 @@ msgstr "Перетягніть, щоб змінити положення знаmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Перетягніть, щоб змінити положення фону запрошення, і скористайтеся коліщатком прокрутки або жестом зведення/розведення пальців для масштабування. Рекомендований мінімальний розмір: {minimumWidth}×{minimumHeight} пікселів (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Перетягніть, щоб змінити положення іконки ролі, та скористайтеся коліщатком прокрутки або жестом зведення/розведення пальців для масштабування. Рекомендований мінімальний розмір: {minimumWidth}×{minimumHeight} пікселів."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Видалити з вибраних GIF за URL-адресою"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Видалити іконку"@@ -30577,6 +30610,16 @@ msgstr "Роль видалено"msgid "Role deleted successfully"msgstr "Роль успішно видалено"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Іконка ролі"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Іконка ролі, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Цей файл має розмір {fileSize}, що перевищуєmsgid "This file is larger than {size}. Choose a smaller one."msgstr "Цей файл більший за {size}. Виберіть менший."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Цей тип файлу не підтримується. Підтримувані типи: {formats}."@@ -37281,6 +37326,11 @@ msgstr "Термін дії цього коду передачі закінчиmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Не вдалося завантажити це зображення після збереження. Натисніть «Продовжити», щоб спробувати ще раз, або виберіть інший файл."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Не вдалося завантажити це зображення. Спробуйте інше."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Вимкнено"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Так виглядають повідомлення"@@ -39917,6 +39969,11 @@ msgstr "Завантажте власний звук, який автоматиmsgid "Upload a file"msgstr "Завантажити файл"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Завантажте зображення або виберіть емоджі. Біля імені учасника показується іконка його найвищої ролі, яка має іконку."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Завантажити ресурси"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Завантажити іконку"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Завантажити зображення"@@ -40002,6 +40060,11 @@ msgstr "Завантажувати нові емоджі та стікери, аmsgid "Upload preview frames for screen shares."msgstr "Завантажувати кадри попереднього перегляду для демонстрації екрана."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Завантажити іконку ролі"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/vi/messages.po b/fluxer_app/src/features/i18n/locales/vi/messages.poindex 23faf2416..e63b51620 100644--- a/fluxer_app/src/features/i18n/locales/vi/messages.po+++ b/fluxer_app/src/features/i18n/locales/vi/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} phút"msgid "{folderName} folder"msgstr "Thư mục {folderName}"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}. Tối thiểu {minimumSize}, tối đa {maxSize}."+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "Không hỗ trợ biểu tượng động khi tạo cộng đồng mới. Vui lòng sử dụng ảnh tĩnh."#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "Không hỗ trợ biểu tượng động. Vui lòng sử dụng ảnh tĩnh."@@ -8375,6 +8382,11 @@ msgstr "Chọn hình nền"msgid "Choose either guild_id or channel_id, not both."msgstr "Chọn guild_id hoặc channel_id, không chọn cả hai."+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "Chọn biểu tượng cảm xúc"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "Xem trước vùng cắt"msgid "Crop profile banner"msgstr "Cắt ảnh bìa hồ sơ"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "Cắt ảnh biểu tượng vai trò"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "Kết quả hiện tại"msgid "Current ping:"msgstr "Độ trễ hiện tại:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "Biểu tượng vai trò hiện tại, {emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "Biểu tượng vai trò hiện tại, ảnh đã tải lên"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "Phiên hiện tại"@@ -14192,6 +14219,11 @@ msgstr "Kéo để định vị lại biểu tượng nhóm của bạn và dùnmsgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "Kéo để định vị lại ảnh nền lời mời và dùng con lăn chuột hoặc chụm để thu phóng. Kích thước tối thiểu được đề xuất là {minimumWidth}×{minimumHeight} pixel (16:9)."+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "Kéo để định vị lại biểu tượng vai trò và dùng con lăn chuột hoặc chụm để thu phóng. Kích thước tối thiểu được đề xuất là {minimumWidth}×{minimumHeight} pixel."+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "Xóa khỏi GIF yêu thích lưu theo URL"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "Xóa biểu tượng"@@ -30577,6 +30610,16 @@ msgstr "Đã xóa vai trò"msgid "Role deleted successfully"msgstr "Đã xóa vai trò thành công"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "Biểu tượng vai trò"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "Biểu tượng vai trò, {roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "Tệp này có dung lượng {fileSize}, vượt quá giới hạn {maxSmsgid "This file is larger than {size}. Choose a smaller one."msgstr "Tệp này lớn hơn {size}. Hãy chọn tệp nhỏ hơn."+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "Không hỗ trợ loại tệp này. Các loại được hỗ trợ: {formats}."@@ -37281,6 +37326,11 @@ msgstr "Mã chuyển giao này đã hết hạn. Tạo mã mới để tiếp tmsgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "Không thể tải hình ảnh này sau khi lưu. Nhấn \"Tiếp tục\" để thử lại hoặc chọn tệp khác."+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "Không thể tải hình ảnh này. Hãy thử hình khác."+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "Đã vô hiệu hóa"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "Đây là cách tin nhắn hiển thị"@@ -39917,6 +39969,11 @@ msgstr "Tải lên âm thanh tùy chỉnh phát tự động khi bạn tham giamsgid "Upload a file"msgstr "Tải tệp lên"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "Tải lên một hình ảnh hoặc chọn biểu tượng cảm xúc. Bên cạnh tên thành viên sẽ hiển thị biểu tượng của vai trò cao nhất có biểu tượng."+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "Tải tài nguyên lên"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "Tải biểu tượng lên"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "Tải ảnh lên"@@ -40002,6 +40060,11 @@ msgstr "Tải lên biểu tượng cảm xúc và nhãn dán mới, đồng thmsgid "Upload preview frames for screen shares."msgstr "Tải lên các khung hình xem trước cho tính năng chia sẻ màn hình."+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "Tải biểu tượng vai trò lên"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/zh-CN/messages.po b/fluxer_app/src/features/i18n/locales/zh-CN/messages.poindex 78bfa6e50..236ff705b 100644--- a/fluxer_app/src/features/i18n/locales/zh-CN/messages.po+++ b/fluxer_app/src/features/i18n/locales/zh-CN/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} 分钟"msgid "{folderName} folder"msgstr "{folderName} 文件夹"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}。至少 {minimumSize},不超过 {maxSize}。"+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "创建社区时不支持使用动态图标。请使用静态图片。"#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "不支持使用动态图标。请使用静态图片。"@@ -8375,6 +8382,11 @@ msgstr "选择背景"msgid "Choose either guild_id or channel_id, not both."msgstr "请选择 guild_id 或 channel_id,不能同时选择两者。"+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "选择表情"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "裁剪预览"msgid "Crop profile banner"msgstr "裁剪个人资料横幅"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "裁剪身份组图标"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "当前匹配项"msgid "Current ping:"msgstr "当前延迟:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "当前身份组图标,{emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "当前身份组图标,已上传的图片"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "当前会话"@@ -14192,6 +14219,11 @@ msgstr "拖动可调整群聊图标位置,滚动鼠标滚轮或双指开合可msgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "拖动可调整邀请背景位置,滚动鼠标滚轮或双指开合可缩放。建议的最小尺寸为 {minimumWidth}×{minimumHeight} 像素(16:9)。"+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "拖动可调整身份组图标位置,滚动鼠标滚轮或双指开合可缩放。建议的最小尺寸为 {minimumWidth}×{minimumHeight} 像素。"+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "从仅限 URL 的 GIF 收藏夹中移除"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "移除图标"@@ -30577,6 +30610,16 @@ msgstr "身份组已删除"msgid "Role deleted successfully"msgstr "身份组删除成功"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "身份组图标"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "身份组图标,{roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "此文件大小为 {fileSize},超过了 {maxSize} 的限制。动态msgid "This file is larger than {size}. Choose a smaller one."msgstr "此文件大于 {size}。请选择较小的文件。"+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "不支持此文件类型。支持的类型为 {formats}。"@@ -37281,6 +37326,11 @@ msgstr "此切换码已过期。请生成新切换码以继续。"msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "保存后无法加载此图片。点击“继续”重试,或选择其他文件。"+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "无法加载此图片。请换一张试试。"+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "已禁用"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "消息显示效果"@@ -39917,6 +39969,11 @@ msgstr "上传自定义声音,在你加入语音频道时自动播放。最长msgid "Upload a file"msgstr "上传文件"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "上传图片或选择表情。成员名字旁会显示其最高的、带有图标的身份组的图标。"+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "上传素材"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "上传图标"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "上传图片"@@ -40002,6 +40060,11 @@ msgstr "上传新的表情和贴纸,并管理你的作品。"msgid "Upload preview frames for screen shares."msgstr "上传屏幕共享的预览帧。"+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "上传身份组图标"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/i18n/locales/zh-TW/messages.po b/fluxer_app/src/features/i18n/locales/zh-TW/messages.poindex b199f6dfd..cd9d9802b 100644--- a/fluxer_app/src/features/i18n/locales/zh-TW/messages.po+++ b/fluxer_app/src/features/i18n/locales/zh-TW/messages.po@@ -1581,6 +1581,11 @@ msgstr "{fifteenMinutes} 分鐘"msgid "{folderName} folder"msgstr "「{folderName}」資料夾"+#. Helper line under the role icon buttons in the community role editor. formats is a list of image types such as PNG, JPEG, WebP. minimumSize is an image size such as 32×32px. maxSize is a file size such as 256 KB.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "{formats}. At least {minimumSize}, up to {maxSize}."+msgstr "{formats}。至少 {minimumSize},不超過 {maxSize}。"+#. Helper text in an asset upload source modal. formats is a formatted list of accepted file types; maxSize is a formatted file size; minimumSize is a minimum image size; aspectRatio is a formatted aspect ratio.#: src/features/expressions/utils/AssetUploadHintCopy.tsmsgid "{formats}. Max {maxSize}. Minimum: {minimumSize} ({aspectRatio})"@@ -4776,7 +4781,9 @@ msgid "Animated icons are not supported when creating a new community. Use a stamsgstr "建立社群時不支援動態圖示。請使用靜態圖片。"#. Description text in the edit group modal.+#. Error under the role icon buttons when the picked image is animated.#: src/features/channel/components/modals/EditGroupModal.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Animated icons are not supported. Use a static image."msgstr "不支援動態圖示。請使用靜態圖片。"@@ -8375,6 +8382,11 @@ msgstr "選擇背景"msgid "Choose either guild_id or channel_id, not both."msgstr "請選擇 guild_id 或 channel_id,不可兩者都選。"+#. Button in the role icon field that opens the emoji picker. Keep it short.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Choose emoji"+msgstr "選擇表情符號"+#. Second install step on a Mac. File and Add to Dock are the names of the Safari menu items, use the names macOS shows in this language.#: src/features/app/domain_migration/DomainMovedStepsModal.tsxmsgid "Choose File, then Add to Dock."@@ -11789,6 +11801,11 @@ msgstr "裁切預覽"msgid "Crop profile banner"msgstr "裁切個人檔案橫幅"+#. Modal title for cropping a role icon before upload.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Crop role icon"+msgstr "裁切身分組圖示"+#. Error modal body shown when a cropped community image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#. Error modal body shown when a cropped image still exceeds the size limit. {maxSizeLabel} is a formatted file size.#: src/features/guild/components/modals/guild_tabs/guild_overview_tab/hooks/useGuildImageAssetField.tsx@@ -11873,6 +11890,16 @@ msgstr "目前符合項目"msgid "Current ping:"msgstr "目前 Ping:"+#. Accessible label of the role icon tile in the community role editor when the icon is an emoji, also read out after an emoji is picked. emojiName is the emoji short name such as :shield:. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, {emojiName}"+msgstr "目前的身分組圖示,{emojiName}"++#. Accessible label of the role icon tile in the community role editor when the icon is an uploaded image, also read out after an image is added. Clicking the tile opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Current role icon, uploaded image"+msgstr "目前的身分組圖示,已上傳的圖片"+#: src/features/user/components/modals/tabs/DevicesTab.tsxmsgid "Current session"msgstr "目前的工作階段"@@ -14192,6 +14219,11 @@ msgstr "拖曳以重新調整群組圖示的位置,並使用滾輪或雙指縮msgid "Drag to reposition your invite background and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels (16:9)."msgstr "拖曳以重新調整邀請背景位置,並使用滾輪或雙指縮放。建議的最小尺寸為 {minimumWidth}×{minimumHeight} 像素 (16:9)。"+#. Description in the role icon crop modal. minimumWidth and minimumHeight are pixel dimensions for the recommended image size.+#: src/features/expressions/components/modals/AssetCropModal.tsx+msgid "Drag to reposition your role icon and use the scroll wheel or pinch to zoom. The recommended minimum size is {minimumWidth}×{minimumHeight} pixels."+msgstr "拖曳以重新調整身分組圖示的位置,並使用滾輪或雙指縮放。建議的最小尺寸為 {minimumWidth}×{minimumHeight} 像素。"+#. Desktop setting description under the dark taskbar badge toggle on Windows.#: src/features/user/components/modals/tabs/DesktopSettingsTab.tsxmsgid "Draw the unread badge on the {productName} taskbar button in dark gray instead of red."@@ -29240,6 +29272,7 @@ msgstr "從僅限網址的 GIF 最愛中移除"#: src/features/channel/components/modals/EditGroupModal.tsx#: src/features/guild/components/modals/add_guild_modal/GuildCreateShared.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "Remove icon"msgstr "移除圖示"@@ -30577,6 +30610,16 @@ msgstr "身分組已刪除"msgid "Role deleted successfully"msgstr "身分組已成功刪除"+#. Label of the role icon field in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Role icon"+msgstr "身分組圖示"++#. Accessible label read by screen readers for the small icon next to a member name. roleName is the name of the community role the icon belongs to.+#: src/features/guild/components/RoleIcon.tsx+msgid "Role icon, {roleName}"+msgstr "身分組圖示,{roleName}"+#. Label of the role name input in the community role editor.#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleEditor.tsxmsgid "Role name"@@ -37218,8 +37261,10 @@ msgstr "此檔案為 {fileSize},超過 {maxSize} 的限制。動畫貼圖和 Smsgid "This file is larger than {size}. Choose a smaller one."msgstr "此檔案大於 {size}。請選擇較小的檔案。"+#. Error under the role icon buttons when the picked file has an unsupported type. formats is a list such as PNG, JPEG, WebP.#. Error when a branding image has an unsupported file type in the setup wizard. formats is a list such as PNG, JPEG, WebP.#: src/features/app/components/setup/SetupBrandingAssetField.tsx+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsxmsgid "This file type is not supported. Supported types are {formats}."msgstr "不支援此檔案類型。支援的類型為 {formats}。"@@ -37281,6 +37326,11 @@ msgstr "此交接碼已過期。請產生新的交接碼以繼續。"msgid "This image could not be loaded after saving. Press \"Continue\" to try again, or choose a different file."msgstr "儲存後無法載入此圖片。請按「繼續」重試,或選擇其他檔案。"+#. Error under the role icon buttons when the picked image or emoji could not be used.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "This image could not be loaded. Try another one."+msgstr "無法載入此圖片。請換一張試試。"+#. Error modal body shown when an animated image fails to decode during cropping.#: src/features/messaging/components/modals/ImageCropModal.tsxmsgid "This image couldn't be read. It may be damaged."@@ -37380,6 +37430,8 @@ msgid "This is disabled"msgstr "此功能已停用"#. Label in the messages tab.+#. Sample message text in the role icon preview of the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/user/components/modals/tabs/appearance_tab/MessagesTab.tsxmsgid "This is how messages appear"msgstr "訊息顯示方式"@@ -39917,6 +39969,11 @@ msgstr "上傳自訂音效,該音效會在您加入語音頻道時自動播放msgid "Upload a file"msgstr "上傳檔案"+#. Helper text under the role icon label in the community role editor.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload an image or pick an emoji. Members get the icon of their highest role that has one."+msgstr "上傳圖片或選擇表情符號。成員名稱旁會顯示其擁有圖示的最高身分組的圖示。"+#: src/features/theme_settings/components/AssetsSection.tsxmsgid "Upload assets"msgstr "上傳素材"@@ -39978,6 +40035,7 @@ msgid "Upload icon"msgstr "上傳圖示"#. Button label for uploading a webhook avatar image.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx#: src/features/webhook/components/WebhookListItem.tsxmsgid "Upload image"msgstr "上傳圖片"@@ -40002,6 +40060,11 @@ msgstr "上傳新的表情符號和貼圖,並管理您自己的創作。"msgid "Upload preview frames for screen shares."msgstr "上傳螢幕分享的預覽畫面。"+#. Accessible label of the empty role icon tile in the community role editor. Clicking it opens the file picker.+#: src/features/guild/components/modals/guild_tabs/guild_roles_tab/RoleIconField.tsx+msgid "Upload role icon"+msgstr "上傳身分組圖示"+#. Settings search synonym. Used to match this term when the user types it in the settings search bar.#: src/features/user/components/settings_utils/section_registry/NotificationsSections.tsmsgid "Upload sound"diff --git a/fluxer_app/src/features/member/models/GuildMember.ts b/fluxer_app/src/features/member/models/GuildMember.tsindex 89ef19778..3bab167d4 100644--- a/fluxer_app/src/features/member/models/GuildMember.ts+++ b/fluxer_app/src/features/member/models/GuildMember.ts@@ -104,6 +104,10 @@ export class GuildMember {});}+ getIconRole(): GuildRole | undefined {+ return this.getSortedRoles().find((role) => role.icon !== null || role.unicodeEmoji !== null);+ }+getColorString(): string | undefined {const sortedRoles = this.getSortedRoles();for (const role of sortedRoles) {diff --git a/fluxer_app/src/features/theme/styles/Message.module.css b/fluxer_app/src/features/theme/styles/Message.module.cssindex 14463b235..32e4f6ae6 100644--- a/fluxer_app/src/features/theme/styles/Message.module.css+++ b/fluxer_app/src/features/theme/styles/Message.module.css@@ -391,7 +391,10 @@}.messageAuthorRow {- display: inline;+ display: inline-flex;+ flex-wrap: wrap;+ align-items: baseline;+ row-gap: 0;max-inline-size: 100%;white-space: nowrap;line-height: var(--message-line-height);@@ -480,6 +483,12 @@-webkit-user-select: none !important;}+.compactInlineContent .messageRoleIcon,+.compactInlineContent .messageRoleIcon * {+ user-select: none !important;+ -webkit-user-select: none !important;+}+.contextMenuUnderline {text-decoration: underline;}@@ -1140,6 +1149,18 @@display: inline-flex;}+.messageAuthorName {+ display: inline-flex;+ align-items: center;+ min-inline-size: 0;+ white-space: nowrap;+ vertical-align: baseline;+}++.messageRoleIcon {+ margin-inline-start: 0.25rem;+}+.editedTimestamp {margin-inline-start: 0.0625rem;display: inline-block;diff --git a/fluxer_app/src/features/ui/tooltip/Tooltip.tsx b/fluxer_app/src/features/ui/tooltip/Tooltip.tsxindex 72a9ef3c6..11e80b9ca 100644--- a/fluxer_app/src/features/ui/tooltip/Tooltip.tsx+++ b/fluxer_app/src/features/ui/tooltip/Tooltip.tsx@@ -125,6 +125,7 @@ interface TooltipProps {size?: 'default' | 'large';openOnMountHover?: boolean;allowWhenContextMenuOpen?: boolean;+ ariaHidden?: boolean;children?: React.ReactElement;}@@ -224,6 +225,7 @@ export const Tooltip = observer(size = 'default',openOnMountHover = true,allowWhenContextMenuOpen = false,+ ariaHidden = false,children,}: TooltipProps) => {const tooltipId = useId();@@ -701,9 +703,10 @@ export const Tooltip = observer(tooltipModel.hovered,]);if (!child) return null;- const describedBy = shouldRenderTooltip- ? [childProps['aria-describedby'], tooltipId].filter(Boolean).join(' ')- : childProps['aria-describedby'];+ const describedBy =+ shouldRenderTooltip && !ariaHidden+ ? [childProps['aria-describedby'], tooltipId].filter(Boolean).join(' ')+ : childProps['aria-describedby'];const shouldUseTooltipAsName =typeof text === 'string' &&!childProps['aria-label'] &&@@ -805,7 +808,8 @@ export const Tooltip = observer(<motion.divkey="tooltip"id={tooltipId}- role="tooltip"+ role={ariaHidden ? undefined : 'tooltip'}+ aria-hidden={ariaHidden || undefined}ref={(node: HTMLDivElement | null) => {tooltipRef.current = node;if (node && targetRef.current) {diff --git a/fluxer_app/src/features/user/components/popouts/UserProfilePopout.module.css b/fluxer_app/src/features/user/components/popouts/UserProfilePopout.module.cssindex b6793191b..a45e1e470 100644--- a/fluxer_app/src/features/user/components/popouts/UserProfilePopout.module.css+++ b/fluxer_app/src/features/user/components/popouts/UserProfilePopout.module.css@@ -1,7 +1,6 @@/* SPDX-License-Identifier: AGPL-3.0-or-later */.role > :first-child {- margin-inline-end: 0.25rem;margin-inline-start: 0.0625rem;}diff --git a/fluxer_app/src/features/user/utils/AvatarUtils.ts b/fluxer_app/src/features/user/utils/AvatarUtils.tsindex af4ee34b6..c818837e2 100644--- a/fluxer_app/src/features/user/utils/AvatarUtils.ts+++ b/fluxer_app/src/features/user/utils/AvatarUtils.ts@@ -10,6 +10,7 @@ import {snapMediaProxyImageSize,} from '@app/features/messaging/utils/MediaProxyUtils';import {mediaUrl, setPathQueryParams} from '@app/features/messaging/utils/MessagingUrlUtils';+import {getAppRemScale} from '@app/features/ui/utils/AppZoomUtils';import type {User} from '@app/features/user/models/User';import avatar0 from '@app/media/images/avatars/0.png';import avatar1 from '@app/media/images/avatars/1.png';@@ -91,6 +92,8 @@ const MEDIA_PROXY_WIDE_ASSET_SERVER_MIN_DIMENSION = 480;const MEDIA_PROXY_WIDE_ASSET_SERVER_MAX_DIMENSION = 2400;const MEDIA_PROXY_ICON_SERVER_MIN_DIMENSION = 128;const MEDIA_PROXY_ICON_SERVER_MAX_DIMENSION = 1024;+const MEDIA_PROXY_ROLE_ICON_SERVER_MIN_DIMENSION = 16;+const MEDIA_PROXY_ROLE_ICON_SERVER_MAX_DIMENSION = 512;function snapImageSizeWithinServerRange(cssPixels: number,@@ -328,6 +331,25 @@ export function getGuildIconURL({id, icon}: IconOptions, animated = false) {});}+export function getRoleIconURL({id, icon}: {id: string; icon: string | null}, cssSize: number): string {+ if (!icon) {+ return '';+ }+ if (icon.startsWith('data:')) {+ return icon;+ }+ return buildWebpMediaUrl({+ path: 'role-icons',+ id,+ hash: icon,+ size: snapImageSizeWithinServerRange(+ cssSize * getAppRemScale() * Math.max(2, window.devicePixelRatio || 1),+ MEDIA_PROXY_ROLE_ICON_SERVER_MIN_DIMENSION,+ MEDIA_PROXY_ROLE_ICON_SERVER_MAX_DIMENSION,+ ),+ });+}+export function getGuildSplashURL({id, splash}: {id: string; splash: string | null}) {if (!splash) {return '';diff --git a/fluxer_docs/src/content/docs/admin-api/guilds.mdx b/fluxer_docs/src/content/docs/admin-api/guilds.mdxindex 672e137b2..0b81140a8 100644--- a/fluxer_docs/src/content/docs/admin-api/guilds.mdx+++ b/fluxer_docs/src/content/docs/admin-api/guilds.mdx@@ -129,6 +129,8 @@ The owner fields are null when the owner account doesn't exist.| permissions | string | The [permission](/http-api/permissions/) bitfield as a decimal string || hoist | boolean | Whether the role shows separately in the member list || mentionable | boolean | Whether anyone can mention the role |+| icon | ?string | The hash of the [role icon](/http-api/permissions/#role-icons) image |+| unicode_emoji | ?string | The Unicode emoji used as the role icon |## Admin guild update object@@ -473,6 +475,21 @@ Removes a guild ban and sends [Guild Ban Remove](/gateway/events/#guild-ban-remoThe rate limit is 100 requests per minute, on the `admin:guild:modify` bucket.+## Clear guild role icon++<RouteHeader method="DELETE" path="/v1/admin/guilds/{guild_id}/roles/{role_id}/icon" auditReason />++Clears the image and Unicode emoji of a [role icon](/http-api/permissions/#role-icons), deletes the old image later and sends [Guild Role Update](/gateway/events/#guild-role-update) to the guild. You need `guild:update:settings`.++### Response++| Status | Body | Condition |+| --- | --- | --- |+| 204 | empty | The role icon was cleared |+| 404 | [error response](/admin-api/#error-response) | `UNKNOWN_ROLE` when the role doesn't exist in the guild |++The rate limit is 100 requests per minute, on the `admin:guild:modify` bucket.+## List guild emojis<RouteHeader method="GET" path="/v1/admin/guilds/{guild_id}/emojis" auditReason />diff --git a/fluxer_docs/src/content/docs/admin-api/index.mdx b/fluxer_docs/src/content/docs/admin-api/index.mdxindex 73d0b8e5a..391e8977f 100644--- a/fluxer_docs/src/content/docs/admin-api/index.mdx+++ b/fluxer_docs/src/content/docs/admin-api/index.mdx@@ -401,6 +401,7 @@ These entries have `access` set to `write`.| change_username | A username or discriminator was changed || clear_fields | Profile fields of an account, or fields of a guild, were cleared || clear_report_legal_hold | The legal hold on a report was cleared |+| clear_role_icon | The icon of a guild role was cleared || create_admin_api_key | An Admin API key was created || create_badge | A custom badge was made || create_password_reset_link | A password reset link was created for an account |diff --git a/fluxer_docs/src/content/docs/http-api/errors.md b/fluxer_docs/src/content/docs/http-api/errors.mdindex 227d80307..48ed0bfef 100644--- a/fluxer_docs/src/content/docs/http-api/errors.md+++ b/fluxer_docs/src/content/docs/http-api/errors.md@@ -429,6 +429,7 @@ These are the values of `code` inside `errors`.| `CANNOT_REORDER_EVERYONE_ROLE` | You can't reorder the @everyone role || `CANNOT_REPLY_TO_SYSTEM_MESSAGE` | You can't reply to a system message || `CANNOT_SET_HOIST_FOR_EVERYONE_ROLE` | You can't set hoist position for the @everyone role |+| `CANNOT_SET_ICON_ON_EVERYONE_ROLE` | The @everyone role can't have an icon || `CANNOT_SPECIFY_BOTH_BEFORE_AND_AFTER` | You can't specify both `before` and `after` || `CAPTCHA_REQUIRED_BY_INSTANT_ACCOUNTS` | Turn off instant accounts before turning off the captcha || `CATEGORIES_CANNOT_HAVE_PARENTS` | Categories can't have parents |@@ -514,6 +515,7 @@ These are the values of `code` inside `errors`.| `GUILD_ID_MUST_MATCH_REFERENCED_MESSAGE` | Community ID must match the community containing the channel the referenced message was fetched from || `GUILD_ID_REQUIRED_FOR_SEARCH_INDEX` | Community ID is required for channel message and member search indexes || `IDENTIFIER_FIRST_REQUIRES_EMAIL_IDENTITY` | Email-first sign-in only works when people sign in with an email |+| `IMAGE_DIMENSIONS_OUT_OF_RANGE` | Image width and height must each be between {min} and {max} pixels || `IMAGE_SIZE_EXCEEDS_LIMIT` | Image size exceeds {maxSize} bytes || `INSTANCE_ADDRESS_REQUIRED` | This instance uses usernames || `INSTANT_ACCOUNTS_REQUIRE_CAPTCHA` | Turn on the captcha before allowing instant accounts |@@ -601,6 +603,8 @@ These are the values of `code` inside `errors`.| `RECIPIENT_IDS_CANNOT_BE_EMPTY` | Recipient IDs can't be empty || `REFERENCED_ATTACHMENT_NOT_FOUND` | Referenced attachment "{filename}" wasn't found in message attachments || `REPORT_OUTCOME_INVALID` | An actioned resolution needs an outcome other than no violation |+| `ROLE_ICON_AND_EMOJI_EXCLUSIVE` | A role can have an image icon or an emoji, not both |+| `ROLE_ICON_SOURCE_AND_ICON_EXCLUSIVE` | Set a role icon or copy one from another role, not both || `SEARCH_FILTER_NEEDS_MEMBERSHIP` | Join this community to search by person or mention || `SESSION_TIMEOUT` | Session timed out || `SETUP_TOKEN_INVALID` | That setup token is not correct |diff --git a/fluxer_docs/src/content/docs/http-api/guilds.mdx b/fluxer_docs/src/content/docs/http-api/guilds.mdxindex 3a0dcca1b..a08f132e9 100644--- a/fluxer_docs/src/content/docs/http-api/guilds.mdx+++ b/fluxer_docs/src/content/docs/http-api/guilds.mdx@@ -162,7 +162,7 @@ A template lists the roles and channels that [Create guild](#create-guild) creat| color? | integer | Role color (default 0) || hoist? | boolean | Whether the role is shown separately in the member list (default false) || mentionable? | boolean | Whether anyone can mention the role (default false) |-| unicode_emoji? | ?string | Role Unicode emoji |+| unicode_emoji? | ?string | Role Unicode emoji, stored as null when it isn't a single Unicode emoji. Templates can't set an image icon |<sup>1</sup> The role called `@everyone`, or the role with ID `0` when none has that name, sets the permissions of the everyone role. The other roles are created in array orderdiff --git a/fluxer_docs/src/content/docs/http-api/permissions.mdx b/fluxer_docs/src/content/docs/http-api/permissions.mdxindex 2e0abc776..24ea18caa 100644--- a/fluxer_docs/src/content/docs/http-api/permissions.mdx+++ b/fluxer_docs/src/content/docs/http-api/permissions.mdx@@ -120,9 +120,12 @@ A role is a permission mask that a guild assigns to its members.| permissions | decimal string | The [permission](#permissions) mask the role grants || hoist | boolean | Whether the role's members show as their own group in the member list || mentionable | boolean | Whether members without `MENTION_EVERYONE` can mention the role |-| unicode_emoji? | ?string | The Unicode emoji shown beside the role name (not returned by the role routes) |+| icon | ?string | The hash of the role icon image, or null |+| unicode_emoji | ?string | The Unicode emoji used as the role icon, or null |-The everyone role has the guild's ID, is called `@everyone` and is always at position 0. You can change its color and permissions, but you can't delete it, move it or give it a hoist position.+The everyone role has the guild's ID, is called `@everyone` and is always at position 0. You can change its color and permissions, but you can't delete it, move it, give it a hoist position or give it an icon.++A role has at most one of `icon` and `unicode_emoji`. Clients show the icon of a member's highest role that has one. An image icon is served by the Media Proxy at [Get role icon](/media-proxy/routes/#get-role-icon).### Example@@ -135,7 +138,9 @@ The everyone role has the guild's ID, is called `@everyone` and is always at pos"hoist_position": 1,"permissions": "1099511637006","hoist": true,- "mentionable": false+ "mentionable": false,+ "icon": "5d4c7a1e",+ "unicode_emoji": null}```@@ -194,6 +199,12 @@ Creates a role at position 1 and returns its [guild role object](#guild-role-obj| name | string | The name of the role (1-100 characters) || color? | integer | The color of the role as an RGB integer (0-16777215, default 0) || permissions? | decimal string \| integer | The [permission](#permissions) mask, which defaults to the everyone role's mask |+| icon? | ?base64 string | A PNG, JPEG, WebP or AVIF image for the [role icon](#role-icons), or null to remove it |+| unicode_emoji? | ?string | A single Unicode emoji for the role icon, or null to remove it |+| icon_source_role_id? | snowflake | A role in this guild whose icon the new role copies |+++With `icon_source_role_id`, Fluxer stores a separate copy of an image icon. Deleting either role leaves the other's icon in place.### Response@@ -201,6 +212,10 @@ Creates a role at position 1 and returns its [guild role object](#guild-role-obj| --- | --- | --- || 200 | [guild role object](#guild-role-object) | The role was created || 400 | [error response](/http-api/#error-response) | `MAX_GUILD_ROLES` when the guild is at its role limit, 250 by default, counting the everyone role |+| 400 | [error response](/http-api/#error-response) | A [role icon](#role-icons) is not valid |+| 400 | [error response](/http-api/#error-response) | `ROLE_ICON_SOURCE_AND_ICON_EXCLUSIVE` when `icon_source_role_id` comes with `icon` or `unicode_emoji` |+| 404 | [error response](/http-api/#error-response) | `UNKNOWN_ROLE` when `icon_source_role_id` is not a role in this guild |+| 413 | [error response](/http-api/#error-response) | The body is larger than a role icon allows |The rate limit is 10 requests per minute, on the `guild:role:create::guild_id` bucket.@@ -218,7 +233,7 @@ Modifies a role and returns its [guild role object](#guild-role-object). You nee### JSON body-Fields you leave out keep their value. On the everyone role, Fluxer ignores every field except `color` and `permissions`.+Fields you leave out keep their value. On the everyone role, Fluxer ignores every field except `color`, `permissions`, `icon` and `unicode_emoji`, and the last two can only be null.| Field | Type | Description || --- | --- | --- |@@ -228,15 +243,35 @@ Fields you leave out keep their value. On the everyone role, Fluxer ignores ever| hoist? | boolean | Whether the role's members show as their own group in the member list || hoist_position? | ?integer | The member list position to give the role, or null to clear it || mentionable? | boolean | Whether members without `MENTION_EVERYONE` can mention the role |+| icon? | ?base64 string | A PNG, JPEG, WebP or AVIF image for the [role icon](#role-icons), or null to remove it |+| unicode_emoji? | ?string | A single Unicode emoji for the role icon, or null to remove it |### Response| Status | Body | Condition || --- | --- | --- || 200 | [guild role object](#guild-role-object) | The role was modified |+| 400 | [error response](/http-api/#error-response) | A [role icon](#role-icons) is not valid |+| 413 | [error response](/http-api/#error-response) | The body is larger than a role icon allows |The rate limit is 20 requests per 10 seconds, on the `guild:role:update::guild_id` bucket.+### Role icons++Create guild role and Modify guild role take the same two icon fields.++| Body | Result |+| --- | --- |+| field left out | The icon stays as it is |+| `icon` with an image | The image is stored and `unicode_emoji` is cleared |+| `unicode_emoji` with an emoji | The emoji is stored and any image is cleared |+| `icon` set to null | The image is cleared |+| `unicode_emoji` set to null | The emoji is cleared |+| both non-null | 400 with `ROLE_ICON_AND_EMOJI_EXCLUSIVE` on `icon` |+| either non-null on the everyone role | 400 with `CANNOT_SET_ICON_ON_EVERYONE_ROLE` on that field |++An image can't be animated, can be at most 256 KiB and each side must be between 32 and 1024 pixels. An image outside these limits returns 400 with `IMAGE_SIZE_EXCEEDS_LIMIT`, `INVALID_IMAGE_FORMAT` or `IMAGE_DIMENSIONS_OUT_OF_RANGE`, and an emoji that isn't a single Unicode emoji returns `NOT_A_VALID_UNICODE_EMOJI`. Role icons are free and need no guild feature. When an image is replaced or cleared, or the role is deleted, Fluxer deletes the old image later.+## Modify guild role positions<RouteHeader method="PATCH" path="/v1/guilds/{guild_id}/roles" bot auditReason />diff --git a/fluxer_docs/src/content/docs/media-proxy/overview.md b/fluxer_docs/src/content/docs/media-proxy/overview.mdindex a545a3bfe..cbb4ffa53 100644--- a/fluxer_docs/src/content/docs/media-proxy/overview.md+++ b/fluxer_docs/src/content/docs/media-proxy/overview.md@@ -14,7 +14,7 @@ The Media Proxy serves attachments, image assets, themes, entrance sounds and si| Signed external | `/external/{signature}/{target}` | [Get signed external media](/media-proxy/routes/#get-signed-external-media) || Theme CSS | `/themes/{path}.css` | [Get theme CSS](/media-proxy/routes/#get-theme-css) || Entrance sound | `/entrance-sounds/{user_id}/{filename}` | [Get entrance sound](/media-proxy/routes/#get-entrance-sound) |-| Image asset<sup>1</sup> | `/avatars`, `/icons`, `/branding`, `/banners`, `/splashes`, `/embed-splashes`, `/emojis`, `/stickers` | [Image asset contract](/media-proxy/routes/#image-asset-contract) |+| Image asset<sup>1</sup> | `/avatars`, `/icons`, `/branding`, `/banners`, `/splashes`, `/embed-splashes`, `/role-icons`, `/emojis`, `/stickers` | [Image asset contract](/media-proxy/routes/#image-asset-contract) || Static object<sup>2</sup> | `/{key}` | [Get static object](/media-proxy/routes/#get-static-object) || Upload relay | `/v1/relay/{key}` | [Upload relay](/media-proxy/upload-relay/) || Operator and internal | `/_health`, `/_metrics`, `/_metadata`, `/_sniff`, `/_thumbnail`, `/_frames` | [Operator and internal endpoints](/media-proxy/routes/#operator-and-internal-endpoints) |diff --git a/fluxer_docs/src/content/docs/media-proxy/routes.mdx b/fluxer_docs/src/content/docs/media-proxy/routes.mdxindex 491d02baa..4e31ed136 100644--- a/fluxer_docs/src/content/docs/media-proxy/routes.mdx+++ b/fluxer_docs/src/content/docs/media-proxy/routes.mdx@@ -180,6 +180,12 @@ Returns a guild splash in the banner size class.Returns a guild embed splash in the banner size class.+## Get role icon++<RouteHeader method="GET" path="/role-icons/{role_id}/{hash}.{ext}" unauthenticated />++Returns a [role icon](/http-api/permissions/#role-icons) in the role icon size class. Role icons are never animated.+## Get guild member avatar<RouteHeader method="GET" path="/guilds/{guild_id}/users/{user_id}/avatars/{hash}.{ext}" unauthenticated />diff --git a/fluxer_docs/src/content/docs/media-proxy/transformations.md b/fluxer_docs/src/content/docs/media-proxy/transformations.mdindex 683ca9ebb..67d9d76cc 100644--- a/fluxer_docs/src/content/docs/media-proxy/transformations.md+++ b/fluxer_docs/src/content/docs/media-proxy/transformations.md@@ -55,6 +55,7 @@ An asset request snaps `size` to the ladder and clamps it to the range of its as| --- | --- | --- || Icon | avatars, icons, guild member avatars | 128 through 1024 || Banner | banners, splashes, embed splashes, guild member banners | 480 through 2400 |+| Role icon | role icons | 16 through 512 || Emoji | emojis | 32 through 512 || Sticker | stickers | 128 through 512 || Branding | branding, sign-in backdrops | 16 through 4096 |diff --git a/fluxer_gateway/test/guild_data_normalize_tests.erl b/fluxer_gateway/test/guild_data_normalize_tests.erlnew file mode 100644index 000000000..de2600195--- /dev/null+++ b/fluxer_gateway/test/guild_data_normalize_tests.erl@@ -0,0 +1,38 @@+%% SPDX-License-Identifier: AGPL-3.0-or-later++-module(guild_data_normalize_tests).+-typing([eqwalizer]).+-ifdef(TEST).+-include_lib("eunit/include/eunit.hrl").++role_keeps_icon_fields_when_set_test() ->+ Role = guild_data_normalize:role(role_with(<<"a1b2c3d4">>, null)),+ ?assertEqual(<<"a1b2c3d4">>, maps:get(<<"icon">>, Role)),+ ?assertEqual(null, maps:get(<<"unicode_emoji">>, Role)).++role_keeps_unicode_emoji_test() ->+ Emoji = <<240, 159, 155, 161, 239, 184, 143>>,+ Role = guild_data_normalize:role(role_with(null, Emoji)),+ ?assertEqual(null, maps:get(<<"icon">>, Role)),+ ?assertEqual(Emoji, maps:get(<<"unicode_emoji">>, Role)).++role_still_normalises_the_other_fields_test() ->+ Role = guild_data_normalize:role(role_with(<<"a1b2c3d4">>, null)),+ ?assertEqual(123456789012345678, maps:get(<<"id">>, Role)),+ ?assertEqual(3, maps:get(<<"position">>, Role)).++role_with(Icon, UnicodeEmoji) ->+ #{+ <<"id">> => <<"123456789012345678">>,+ <<"name">> => <<"Mods">>,+ <<"color">> => 0,+ <<"position">> => 3,+ <<"hoist_position">> => null,+ <<"permissions">> => <<"0">>,+ <<"hoist">> => false,+ <<"mentionable">> => false,+ <<"icon">> => Icon,+ <<"unicode_emoji">> => UnicodeEmoji+ }.++-endif.diff --git a/fluxer_media_proxy/src/constants.rs b/fluxer_media_proxy/src/constants.rsindex d09c82ede..93928236a 100644--- a/fluxer_media_proxy/src/constants.rs+++ b/fluxer_media_proxy/src/constants.rs@@ -57,6 +57,7 @@ pub enum AssetKind {Emoji,Sticker,Branding,+ RoleIcon,}#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]@@ -152,6 +153,7 @@ pub fn dims_for(kind: AssetKind) -> Dims {AssetKind::Emoji => Dims { min: 32, max: 512 },AssetKind::Sticker => Dims { min: 128, max: 512 },AssetKind::Branding => Dims { min: 16, max: 4096 },+ AssetKind::RoleIcon => Dims { min: 16, max: 512 },}}@@ -160,3 +162,16 @@ pub fn clamp_size(raw_target: u32, kind: AssetKind) -> u32 {let dims = dims_for(kind);value.clamp(dims.min, dims.max)}++#[cfg(test)]+mod tests {+ use super::*;++ #[test]+ fn role_icon_sizes_clamp_between_16_and_512() {+ assert_eq!(Dims { min: 16, max: 512 }, dims_for(AssetKind::RoleIcon));+ assert_eq!(16, clamp_size(8, AssetKind::RoleIcon));+ assert_eq!(32, clamp_size(32, AssetKind::RoleIcon));+ assert_eq!(512, clamp_size(4096, AssetKind::RoleIcon));+ }+}diff --git a/fluxer_media_proxy/src/request_log/mod.rs b/fluxer_media_proxy/src/request_log/mod.rsindex a0c8510e1..6a27981d6 100644--- a/fluxer_media_proxy/src/request_log/mod.rs+++ b/fluxer_media_proxy/src/request_log/mod.rs@@ -117,6 +117,7 @@ pub fn classify_route(path: &str) -> RequestKind {|| path.starts_with("/banners/")|| path.starts_with("/splashes/")|| path.starts_with("/embed-splashes/")+ || path.starts_with("/role-icons/")|| path.starts_with("/emojis/")|| path.starts_with("/stickers/")|| path.starts_with(OPERATOR_WALL_PATH_PREFIX)diff --git a/fluxer_media_proxy/src/server/asset_path.rs b/fluxer_media_proxy/src/server/asset_path.rsindex 2eded45a4..6cd385440 100644--- a/fluxer_media_proxy/src/server/asset_path.rs+++ b/fluxer_media_proxy/src/server/asset_path.rs@@ -31,6 +31,7 @@ pub(in crate::server) fn parse_standard_asset_path(path: &str) -> Option<ParsedA"banners" => AssetKind::Banner,"splashes" => AssetKind::Splash,"embed-splashes" => AssetKind::EmbedSplash,+ "role-icons" => AssetKind::RoleIcon,_ => return None,};if !valid_asset_owner_key(prefix, owner_key) {@@ -232,6 +233,17 @@ pub(in crate::server) fn decode_storage_key(path: &str) -> Result<String, Storagmod tests {use super::*;+ #[test]+ fn role_icon_paths_map_to_the_role_icon_kind() {+ let parsed = parse_standard_asset_path("/role-icons/123456789012345678/a1b2c3d4.webp")+ .expect("role icon path");+ assert_eq!(AssetKind::RoleIcon, parsed.kind);+ assert_eq!("role-icons/123456789012345678/a1b2c3d4", parsed.storage_key);+ assert_eq!(AssetExtension::Webp, parsed.original_ext);+ assert!(parse_standard_asset_path("/role-icons/not-a-snowflake/a1b2c3d4.webp").is_none());+ assert!(parse_standard_asset_path("/role-icons/123456789012345678/a1b2c3d4").is_none());+ }+#[test]fn storage_keys_reject_path_changing_escapes_and_empty_components() {assert_eq!(diff --git a/fluxer_media_proxy/src/server/routes/dispatch.rs b/fluxer_media_proxy/src/server/routes/dispatch.rsindex b546d760a..270a762a9 100644--- a/fluxer_media_proxy/src/server/routes/dispatch.rs+++ b/fluxer_media_proxy/src/server/routes/dispatch.rs@@ -838,4 +838,51 @@ mod tests {assert_eq!(Some("64"), filtered.get("width").map(String::as_str));assert_eq!(Some("1"), filtered.get("download").map(String::as_str));}++ #[tokio::test]+ async fn role_icons_are_served_as_webp_and_png() {+ let tmp = tempfile::tempdir().expect("storage root");+ let root = tmp.path().canonicalize().expect("canonical storage root");+ let root = root.as_path();+ write_object(+ root,+ "cdn",+ "role-icons/123456789012345678/a1b2c3d4",+ &crate::test_fixtures::synthetic_png(64, 64),+ );+ let app = dispatch_app("mp", root, &[]);+ for (uri, content_type) in [+ (+ "/role-icons/123456789012345678/a1b2c3d4.webp?size=32",+ "image/webp",+ ),+ (+ "/role-icons/123456789012345678/a1b2c3d4.png?size=16",+ "image/png",+ ),+ ] {+ let response = dispatch_uri(&app, Method::GET, uri, &[], None).await;+ assert_eq!(StatusCode::OK, response.status(), "{uri}");+ assert_eq!(+ Some(content_type.to_owned()),+ header_value(&response, header::CONTENT_TYPE),+ "{uri}"+ );+ assert!(!body_of(response).await.is_empty(), "{uri}");+ }+ }++ #[tokio::test]+ async fn role_icons_return_not_found_for_a_bad_owner_or_missing_object() {+ let tmp = tempfile::tempdir().expect("storage root");+ let root = tmp.path().canonicalize().expect("canonical storage root");+ let app = dispatch_app("mp", root.as_path(), &[]);+ for uri in [+ "/role-icons/not-a-snowflake/a1b2c3d4.webp",+ "/role-icons/123456789012345678/a1b2c3d4.webp?size=32",+ ] {+ let response = dispatch_uri(&app, Method::GET, uri, &[], None).await;+ assert_eq!(StatusCode::NOT_FOUND, response.status(), "{uri}");+ }+ }}diff --git a/fluxer_media_proxy/src/server/transform/cache_key.rs b/fluxer_media_proxy/src/server/transform/cache_key.rsindex 060bedfad..c77910b15 100644--- a/fluxer_media_proxy/src/server/transform/cache_key.rs+++ b/fluxer_media_proxy/src/server/transform/cache_key.rs@@ -75,6 +75,7 @@ fn asset_kind_name(kind: AssetKind) -> &'static str {AssetKind::Emoji => "emoji",AssetKind::Sticker => "sticker",AssetKind::Branding => "branding",+ AssetKind::RoleIcon => "role_icon",}}@@ -96,3 +97,17 @@ fn serialize_optional_number(value: Option<impl ToString>) -> String {pub(in crate::server) fn sha256_hex(data: &[u8]) -> String {hex::encode(Sha256::digest(data))}++#[cfg(test)]+mod tests {+ use super::*;++ #[test]+ fn role_icons_have_their_own_cache_key_name() {+ assert_eq!("role_icon", asset_kind_name(AssetKind::RoleIcon));+ assert_ne!(+ asset_kind_name(AssetKind::GuildIcon),+ asset_kind_name(AssetKind::RoleIcon)+ );+ }+}diff --git a/packages/constants/src/AssetFormatPolicy.test.ts b/packages/constants/src/AssetFormatPolicy.test.tsnew file mode 100644index 000000000..08d107cf2--- /dev/null+++ b/packages/constants/src/AssetFormatPolicy.test.ts@@ -0,0 +1,25 @@+// SPDX-License-Identifier: AGPL-3.0-or-later++import {getAcceptString, getPolicy, isExtensionAllowed} from '@fluxer/constants/src/AssetFormatPolicy';+import {describe, expect, it} from 'vitest';++describe('role icon policy', () => {+ it('allows static PNG, JPEG, WebP and AVIF up to 256 KiB', () => {+ const policy = getPolicy('role_icon');+ expect(policy.upload).toEqual(['png', 'jpeg', 'webp', 'avif']);+ expect(policy.animated).toBe('never');+ expect(policy.maxBytes).toBe(256 * 1024);+ expect(policy.dims).toEqual({min: 32, max: 1024});+ });++ it('rejects SVG, GIF, HEIC and JXL', () => {+ for (const ext of ['svg', 'gif', 'heic', 'heif', 'jxl', 'apng']) {+ expect(isExtensionAllowed('role_icon', ext)).toBe(false);+ }+ expect(isExtensionAllowed('role_icon', 'jpg')).toBe(true);+ });++ it('builds an accept string from the allowed formats', () => {+ expect(getAcceptString('role_icon')).toBe('.png,.jpeg,.webp,.avif,image/png,image/jpeg,image/webp,image/avif');+ });+});diff --git a/packages/constants/src/AssetFormatPolicy.ts b/packages/constants/src/AssetFormatPolicy.tsindex 42ec5c76c..820949e54 100644--- a/packages/constants/src/AssetFormatPolicy.ts+++ b/packages/constants/src/AssetFormatPolicy.ts@@ -7,6 +7,7 @@ export type AssetKind =| 'splash'| 'embed_splash'| 'sign_in_backdrop'+ | 'role_icon'| 'emoji'| 'sticker'| 'attachment';@@ -84,6 +85,7 @@ const RASTER_STATIC_ONLY = Object.freeze<Array<AssetExtension>>(['svg',]);const BACKDROP_UPLOAD = Object.freeze<Array<AssetExtension>>(['png', 'jpeg', 'webp', 'avif']);+const ROLE_ICON_UPLOAD = BACKDROP_UPLOAD;const STICKER_UPLOAD = Object.freeze<Array<AssetExtension>>(['png', 'jpeg', 'apng', 'gif', 'webp', 'avif', 'svg']);const STORE_ANIMATED = Object.freeze<Array<CanonicalExtension>>(['webp', 'apng', 'gif']);const STORE_STATIC = Object.freeze<Array<CanonicalExtension>>(['webp', 'png', 'jpeg']);@@ -149,6 +151,14 @@ export const ASSET_FORMAT_POLICY: Readonly<Record<AssetKind, AssetFormatPolicyEnmaxBytes: 4 * 1024 * 1024,dims: {min: 480, max: 2400},},+ role_icon: {+ upload: ROLE_ICON_UPLOAD,+ mimes: pickMimes(ROLE_ICON_UPLOAD),+ storeAs: STORE_STATIC,+ animated: 'never',+ maxBytes: 256 * 1024,+ dims: {min: 32, max: 1024},+ },emoji: {upload: RASTER_FULL,mimes: pickMimes(RASTER_FULL),diff --git a/packages/constants/src/ValidationErrorCodes.ts b/packages/constants/src/ValidationErrorCodes.tsindex 36da94b45..604d9c35a 100644--- a/packages/constants/src/ValidationErrorCodes.ts+++ b/packages/constants/src/ValidationErrorCodes.ts@@ -29,6 +29,7 @@ export const ValidationErrorCodes = {CANNOT_REORDER_EVERYONE_ROLE: 'CANNOT_REORDER_EVERYONE_ROLE',CANNOT_REPLY_TO_SYSTEM_MESSAGE: 'CANNOT_REPLY_TO_SYSTEM_MESSAGE',CANNOT_SET_HOIST_FOR_EVERYONE_ROLE: 'CANNOT_SET_HOIST_FOR_EVERYONE_ROLE',+ CANNOT_SET_ICON_ON_EVERYONE_ROLE: 'CANNOT_SET_ICON_ON_EVERYONE_ROLE',CANNOT_SPECIFY_BOTH_BEFORE_AND_AFTER: 'CANNOT_SPECIFY_BOTH_BEFORE_AND_AFTER',CATEGORIES_CANNOT_HAVE_PARENT_CHANNEL: 'CATEGORIES_CANNOT_HAVE_PARENT_CHANNEL',CATEGORIES_CANNOT_HAVE_PARENTS: 'CATEGORIES_CANNOT_HAVE_PARENTS',@@ -120,6 +121,7 @@ export const ValidationErrorCodes = {DISCOVERABLE_GUILD_VERIFICATION_LEVEL_TOO_LOW: 'DISCOVERABLE_GUILD_VERIFICATION_LEVEL_TOO_LOW',GUILD_ID_REQUIRED_FOR_SEARCH_INDEX: 'GUILD_ID_REQUIRED_FOR_SEARCH_INDEX',GUILD_ID_MUST_MATCH_REFERENCED_MESSAGE: 'GUILD_ID_MUST_MATCH_REFERENCED_MESSAGE',+ IMAGE_DIMENSIONS_OUT_OF_RANGE: 'IMAGE_DIMENSIONS_OUT_OF_RANGE',IMAGE_SIZE_EXCEEDS_LIMIT: 'IMAGE_SIZE_EXCEEDS_LIMIT',INTEGER_OUT_OF_INT64_RANGE: 'INTEGER_OUT_OF_INT64_RANGE',SNOWFLAKE_OUT_OF_RANGE: 'SNOWFLAKE_OUT_OF_RANGE',@@ -208,6 +210,8 @@ export const ValidationErrorCodes = {RECIPIENT_IDS_CANNOT_BE_EMPTY: 'RECIPIENT_IDS_CANNOT_BE_EMPTY',REFERENCED_ATTACHMENT_NOT_FOUND: 'REFERENCED_ATTACHMENT_NOT_FOUND',REPORT_OUTCOME_INVALID: 'REPORT_OUTCOME_INVALID',+ ROLE_ICON_AND_EMOJI_EXCLUSIVE: 'ROLE_ICON_AND_EMOJI_EXCLUSIVE',+ ROLE_ICON_SOURCE_AND_ICON_EXCLUSIVE: 'ROLE_ICON_SOURCE_AND_ICON_EXCLUSIVE',SESSION_TIMEOUT: 'SESSION_TIMEOUT',SETUP_TOKEN_INVALID: 'SETUP_TOKEN_INVALID',SETUP_TOKEN_REQUIRED: 'SETUP_TOKEN_REQUIRED',diff --git a/packages/errors/src/i18n/ErrorCodeMappings.ts b/packages/errors/src/i18n/ErrorCodeMappings.tsindex 39b91fcb0..ae5dd7b5f 100644--- a/packages/errors/src/i18n/ErrorCodeMappings.ts+++ b/packages/errors/src/i18n/ErrorCodeMappings.ts@@ -452,6 +452,7 @@ export const ErrorCodeToI18nKey = {[ValidationErrorCodes.FILE_INDEX_EXCEEDS_MAXIMUM]: 'attachments_and_uploads.file_index_exceeds_maximum',[ValidationErrorCodes.FILE_NOT_FOUND]: 'attachments_and_uploads.file_not_found',[ValidationErrorCodes.FILENAME_LENGTH_INVALID]: 'attachments_and_uploads.filename_length_invalid',+ [ValidationErrorCodes.IMAGE_DIMENSIONS_OUT_OF_RANGE]: 'attachments_and_uploads.image_dimensions_out_of_range',[ValidationErrorCodes.IMAGE_SIZE_EXCEEDS_LIMIT]: 'attachments_and_uploads.image_size_exceeds_limit',[ValidationErrorCodes.INVALID_FILE_FIELD_NAME]: 'attachments_and_uploads.invalid_file_field_name',[ValidationErrorCodes.INVALID_URL_FORMAT]: 'urls.invalid_url_format',@@ -601,6 +602,9 @@ export const ErrorCodeToI18nKey = {[ValidationErrorCodes.FAVORITE_MEME_NAME_REQUIRED]: 'media_and_memes.favorite_meme_name_required',[ValidationErrorCodes.FAVORITE_MEME_NOT_FOUND]: 'media_and_memes.favorite_meme_not_found',[ValidationErrorCodes.CANNOT_SET_HOIST_FOR_EVERYONE_ROLE]: 'roles.cannot_set_everyone_hoist',+ [ValidationErrorCodes.CANNOT_SET_ICON_ON_EVERYONE_ROLE]: 'roles.cannot_set_everyone_icon',+ [ValidationErrorCodes.ROLE_ICON_AND_EMOJI_EXCLUSIVE]: 'roles.icon_and_emoji_exclusive',+ [ValidationErrorCodes.ROLE_ICON_SOURCE_AND_ICON_EXCLUSIVE]: 'roles.icon_source_and_icon_exclusive',[ValidationErrorCodes.PARSE_AND_USERS_OR_ROLES_CANNOT_BE_USED_TOGETHER]:'roles.parse_and_users_or_roles_cannot_be_used_together',[ValidationErrorCodes.ANIMATED_GUILD_BANNER_REQUIRES_FEATURE]:diff --git a/packages/errors/src/i18n/ErrorI18nMessages.ts b/packages/errors/src/i18n/ErrorI18nMessages.tsindex 4355b575f..a7f72b432 100644--- a/packages/errors/src/i18n/ErrorI18nMessages.ts+++ b/packages/errors/src/i18n/ErrorI18nMessages.ts@@ -136,6 +136,8 @@ export const ERROR_I18N_MESSAGES = {'attachments_and_uploads.file_not_found': 'File not found.','attachments_and_uploads.file_size_too_large': 'File size is too large. Maximum file size is {maxSize}.','attachments_and_uploads.filename_length_invalid': 'Filename must be between {min} and {max} characters.',+ 'attachments_and_uploads.image_dimensions_out_of_range':+ 'Image width and height must each be between {min} and {max} pixels.','attachments_and_uploads.image_size_exceeds_limit': 'Image size exceeds {maxSize} bytes.','attachments_and_uploads.invalid_file_field_name':'Invalid file field name: {key}. Expected format: `files[N]` where N is a number.',@@ -631,6 +633,9 @@ export const ERROR_I18N_MESSAGES = {'You can only update your voice activity sharing default once every 24 hours. Please try again in {retry_after, plural, one {# second} other {# seconds}}.','roles.cannot_reorder_everyone_role': "You can't reorder the @everyone role.",'roles.cannot_set_everyone_hoist': "You can't set hoist position for the @everyone role.",+ 'roles.cannot_set_everyone_icon': "The @everyone role can't have an icon.",+ 'roles.icon_and_emoji_exclusive': 'A role can have an image icon or an emoji, not both.',+ 'roles.icon_source_and_icon_exclusive': 'Set a role icon or copy one from another role, not both.','roles.invalid_role_id': 'Invalid role ID: {roleId}.','roles.parse_and_users_or_roles_cannot_be_used_together':"You can't use `parse` together with `allowed_mentions.users` or `allowed_mentions.roles`.",diff --git a/packages/errors/src/i18n/weblate/locales/ar.json b/packages/errors/src/i18n/weblate/locales/ar.jsonindex 8fa0b2cf9..1b107f453 100644--- a/packages/errors/src/i18n/weblate/locales/ar.json+++ b/packages/errors/src/i18n/weblate/locales/ar.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "لم يتم العثور على الملف.","attachments_and_uploads.file_size_too_large": "حجم الملف كبير جدًا. الحد الأقصى لحجم الملف هو {maxSize}.","attachments_and_uploads.filename_length_invalid": "يجب أن يكون اسم الملف بين {min} و{max} حرفًا.",+ "attachments_and_uploads.image_dimensions_out_of_range": "يجب أن يكون عرض الصورة وارتفاعها بين {min} و{max} بكسل.","attachments_and_uploads.image_size_exceeds_limit": "حجم الصورة يتجاوز {maxSize} بايت.","attachments_and_uploads.invalid_file_field_name": "اسم حقل ملف غير صالح: {key}. التنسيق المتوقع: `files[N]` حيث N هو رقم.","attachments_and_uploads.invalid_image_format": "تنسيق صورة غير صالح. الامتدادات المدعومة: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "يمكنك تحديث الإعداد الافتراضي لمشاركة نشاطك الصوتي مرة واحدة فقط كل 24 ساعة. حاول مجددًا بعد {retry_after, plural, zero {# ثانية} one {ثانية واحدة} two {ثانيتين} few {# ثوانٍ} many {# ثانية} other {# ثانية}}.","roles.cannot_reorder_everyone_role": "لا يمكنك إعادة ترتيب دور @everyone.","roles.cannot_set_everyone_hoist": "لا يمكنك تعيين موضع الرفع لدور @everyone.",+ "roles.cannot_set_everyone_icon": "لا يمكن أن يكون لدور @everyone أيقونة.",+ "roles.icon_and_emoji_exclusive": "يمكن أن يكون للدور أيقونة صورة أو رمز تعبيري، وليس كليهما.",+ "roles.icon_source_and_icon_exclusive": "عيّن أيقونة للدور أو انسخها من دور آخر، وليس الأمرين معًا.","roles.invalid_role_id": "معرف دور غير صالح: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "لا يمكنك استخدام `parse` مع `allowed_mentions.users` أو `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "لم يتم العثور على الإيموجي المخصص.",diff --git a/packages/errors/src/i18n/weblate/locales/bg.json b/packages/errors/src/i18n/weblate/locales/bg.jsonindex b2e8a8bdc..148a3d7ae 100644--- a/packages/errors/src/i18n/weblate/locales/bg.json+++ b/packages/errors/src/i18n/weblate/locales/bg.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Файлът не е намерен.","attachments_and_uploads.file_size_too_large": "Размерът на файла е твърде голям. Максималният размер е {maxSize}.","attachments_and_uploads.filename_length_invalid": "Името на файла трябва да е между {min} и {max} знака.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Ширината и височината на изображението трябва да са между {min} и {max} пиксела.","attachments_and_uploads.image_size_exceeds_limit": "Размерът на изображението е над {maxSize} байта.","attachments_and_uploads.invalid_file_field_name": "Невалидно име на поле за файл: {key}. Очакван формат: `files[N]`, където N е число.","attachments_and_uploads.invalid_image_format": "Невалиден формат на изображение. Поддържани разширения: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Можеш да обновяваш настройката по подразбиране за споделяне на гласова активност само веднъж на 24 часа. Опитай отново след {retry_after} {retry_after, plural, one {секунда} other {секунди}}.","roles.cannot_reorder_everyone_role": "Не можеш да пренареждаш ролята @everyone.","roles.cannot_set_everyone_hoist": "Не можеш да задаваш позиция за отделно показване на ролята @everyone.",+ "roles.cannot_set_everyone_icon": "Ролята @everyone не може да има икона.",+ "roles.icon_and_emoji_exclusive": "Една роля може да има икона с изображение или емоджи, но не и двете.",+ "roles.icon_source_and_icon_exclusive": "Задай икона на ролята или я копирай от друга роля, но не и двете.","roles.invalid_role_id": "Невалидно ID на роля: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Не можеш да използваш `parse` с `allowed_mentions.users` или `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Персонализираното емоджи не е намерено.",diff --git a/packages/errors/src/i18n/weblate/locales/cs.json b/packages/errors/src/i18n/weblate/locales/cs.jsonindex 5ae60feb5..4f630c59e 100644--- a/packages/errors/src/i18n/weblate/locales/cs.json+++ b/packages/errors/src/i18n/weblate/locales/cs.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Soubor nebyl nalezen.","attachments_and_uploads.file_size_too_large": "Soubor je příliš velký. Maximální povolená velikost je {maxSize}.","attachments_and_uploads.filename_length_invalid": "Název souboru musí být dlouhý {min} až {max} znaků.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Šířka i výška obrázku musí být mezi {min} a {max} pixely.","attachments_and_uploads.image_size_exceeds_limit": "Velikost obrázku přesahuje {maxSize} bajtů.","attachments_and_uploads.invalid_file_field_name": "Neplatný název pole souboru: {key}. Očekávaný formát je `files[N]`, kde N je číslo.","attachments_and_uploads.invalid_image_format": "Neplatný formát obrázku. Podporované přípony: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Výchozí nastavení sdílení hlasové aktivity můžete změnit nejvýše jednou za 24 hodin. Zkuste to znovu za {retry_after, plural, one {# sekundu} few {# sekundy} many {# sekundy} other {# sekund}}.","roles.cannot_reorder_everyone_role": "Roli @everyone nelze přesunout.","roles.cannot_set_everyone_hoist": "Pro roli @everyone nelze nastavit pozici samostatné skupiny v seznamu členů.",+ "roles.cannot_set_everyone_icon": "Role @everyone nemůže mít ikonu.",+ "roles.icon_and_emoji_exclusive": "Role může mít obrázkovou ikonu nebo emoji, ne obojí.",+ "roles.icon_source_and_icon_exclusive": "Nastavte ikonu role, nebo ji zkopírujte z jiné role, ne obojí.","roles.invalid_role_id": "Neplatné ID role: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Nelze použít `parse` s `allowed_mentions.users` nebo `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Vlastní emoji nenalezeno.",diff --git a/packages/errors/src/i18n/weblate/locales/da.json b/packages/errors/src/i18n/weblate/locales/da.jsonindex 3492688c4..6e569a0d3 100644--- a/packages/errors/src/i18n/weblate/locales/da.json+++ b/packages/errors/src/i18n/weblate/locales/da.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Fil ikke fundet.","attachments_and_uploads.file_size_too_large": "Filstørrelsen er for stor. Maksimal filstørrelse er {maxSize}.","attachments_and_uploads.filename_length_invalid": "Filnavnet skal være på mellem {min} og {max} tegn.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Billedets bredde og højde skal hver være mellem {min} og {max} pixels.","attachments_and_uploads.image_size_exceeds_limit": "Billedstørrelsen overskrider {maxSize} bytes.","attachments_and_uploads.invalid_file_field_name": "Ugyldigt filfeltnavn: {key}. Forventet format: `files[N]`, hvor N er et tal.","attachments_and_uploads.invalid_image_format": "Ugyldigt billedformat. Understøttede filendelser: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Du kan kun ændre standardindstillingen for deling af taleaktivitet én gang hver 24. time. Prøv igen om {retry_after, plural, one {# sekund} other {# sekunder}}.","roles.cannot_reorder_everyone_role": "Du kan ikke omarrangere @everyone-rollen.","roles.cannot_set_everyone_hoist": "Du kan ikke angive en position for separat visning af @everyone-rollen.",+ "roles.cannot_set_everyone_icon": "Rollen @everyone kan ikke have et ikon.",+ "roles.icon_and_emoji_exclusive": "En rolle kan have et billedikon eller en emoji, ikke begge dele.",+ "roles.icon_source_and_icon_exclusive": "Angiv et rolleikon eller kopiér et fra en anden rolle, ikke begge dele.","roles.invalid_role_id": "Ugyldigt rolle-ID: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Du kan ikke bruge `parse` sammen med `allowed_mentions.users` eller `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Brugerdefineret emoji blev ikke fundet.",diff --git a/packages/errors/src/i18n/weblate/locales/de.json b/packages/errors/src/i18n/weblate/locales/de.jsonindex 09def8275..98c6d485b 100644--- a/packages/errors/src/i18n/weblate/locales/de.json+++ b/packages/errors/src/i18n/weblate/locales/de.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Datei nicht gefunden.","attachments_and_uploads.file_size_too_large": "Die Datei ist zu groß. Die maximale Dateigröße beträgt {maxSize}.","attachments_and_uploads.filename_length_invalid": "Der Dateiname muss zwischen {min} und {max} Zeichen lang sein.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Breite und Höhe des Bildes müssen jeweils zwischen {min} und {max} Pixeln liegen.","attachments_and_uploads.image_size_exceeds_limit": "Die Bildgröße überschreitet {maxSize} Bytes.","attachments_and_uploads.invalid_file_field_name": "Ungültiger Dateifeldname: {key}. Erwartetes Format: `files[N]`, wobei N eine Zahl ist.","attachments_and_uploads.invalid_image_format": "Ungültiges Bildformat. Unterstützte Erweiterungen: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Du kannst die Standardeinstellung für das Teilen deiner Sprachaktivität nur einmal alle 24 Stunden ändern. Bitte versuche es in {retry_after, plural, one {# Sekunde} other {# Sekunden}} erneut.","roles.cannot_reorder_everyone_role": "Du kannst die @everyone-Rolle nicht umordnen.","roles.cannot_set_everyone_hoist": "Du kannst die Hoist-Position für die @everyone-Rolle nicht festlegen.",+ "roles.cannot_set_everyone_icon": "Die Rolle @everyone kann kein Symbol haben.",+ "roles.icon_and_emoji_exclusive": "Eine Rolle kann ein Bildsymbol oder ein Emoji haben, aber nicht beides.",+ "roles.icon_source_and_icon_exclusive": "Lege ein Rollensymbol fest oder kopiere eins von einer anderen Rolle, aber nicht beides.","roles.invalid_role_id": "Ungültige Rollen-ID: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Du kannst `parse` nicht zusammen mit `allowed_mentions.users` oder `allowed_mentions.roles` verwenden.","stickers_and_emojis.custom_emoji_not_found": "Benutzerdefiniertes Emoji nicht gefunden.",diff --git a/packages/errors/src/i18n/weblate/locales/el.json b/packages/errors/src/i18n/weblate/locales/el.jsonindex 8bb0f2c80..9348c76bc 100644--- a/packages/errors/src/i18n/weblate/locales/el.json+++ b/packages/errors/src/i18n/weblate/locales/el.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Το αρχείο δεν βρέθηκε.","attachments_and_uploads.file_size_too_large": "Το μέγεθος του αρχείου είναι πολύ μεγάλο. Το μέγιστο μέγεθος αρχείου είναι {maxSize}.","attachments_and_uploads.filename_length_invalid": "Το όνομα αρχείου πρέπει να έχει μεταξύ {min} και {max} χαρακτήρες.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Το πλάτος και το ύψος της εικόνας πρέπει να είναι μεταξύ {min} και {max} pixel.","attachments_and_uploads.image_size_exceeds_limit": "Το μέγεθος της εικόνας ξεπερνά τα {maxSize} bytes.","attachments_and_uploads.invalid_file_field_name": "Μη έγκυρο όνομα πεδίου αρχείου: {key}. Η αναμενόμενη μορφή είναι: `files[N]` όπου N είναι ένας αριθμός.","attachments_and_uploads.invalid_image_format": "Μη έγκυρη μορφή εικόνας. Οι υποστηριζόμενες επεκτάσεις είναι: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Μπορείς να ενημερώνεις την προεπιλογή κοινοποίησης φωνητικής δραστηριότητας μόνο μία φορά κάθε 24 ώρες. Δοκίμασε ξανά μετά από {retry_after} {retry_after, plural, one {δευτερόλεπτο} other {δευτερόλεπτα}}.","roles.cannot_reorder_everyone_role": "Δεν μπορείς να αναδιατάξεις τον ρόλο @everyone.","roles.cannot_set_everyone_hoist": "Δεν μπορείς να ορίσεις να εμφανίζεται ξεχωριστά ο ρόλος @everyone.",+ "roles.cannot_set_everyone_icon": "Ο ρόλος @everyone δεν μπορεί να έχει εικονίδιο.",+ "roles.icon_and_emoji_exclusive": "Ένας ρόλος μπορεί να έχει εικονίδιο εικόνας ή emoji, όχι και τα δύο.",+ "roles.icon_source_and_icon_exclusive": "Ορίστε ένα εικονίδιο ρόλου ή αντιγράψτε το από άλλον ρόλο, όχι και τα δύο.","roles.invalid_role_id": "Μη έγκυρο αναγνωριστικό ρόλου: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Δεν μπορείς να χρησιμοποιήσεις το `parse` μαζί με τα `allowed_mentions.users` ή `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Το προσαρμοσμένο emoji δεν βρέθηκε.",diff --git a/packages/errors/src/i18n/weblate/locales/en-GB.json b/packages/errors/src/i18n/weblate/locales/en-GB.jsonindex 6e9dc4cf0..e09a60c03 100644--- a/packages/errors/src/i18n/weblate/locales/en-GB.json+++ b/packages/errors/src/i18n/weblate/locales/en-GB.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "File not found.","attachments_and_uploads.file_size_too_large": "File size is too large. Maximum file size is {maxSize}.","attachments_and_uploads.filename_length_invalid": "Filename must be between {min} and {max} characters.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Image width and height must each be between {min} and {max} pixels.","attachments_and_uploads.image_size_exceeds_limit": "Image size exceeds {maxSize} bytes.","attachments_and_uploads.invalid_file_field_name": "Invalid file field name: {key}. Expected format: `files[N]` where N is a number.","attachments_and_uploads.invalid_image_format": "Invalid image format. Supported extensions: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "You can only update your voice activity sharing default once every 24 hours. Please try again in {retry_after, plural, one {# second} other {# seconds}}.","roles.cannot_reorder_everyone_role": "You can't reorder the @everyone role.","roles.cannot_set_everyone_hoist": "You can't set hoist position for the @everyone role.",+ "roles.cannot_set_everyone_icon": "The @everyone role can't have an icon.",+ "roles.icon_and_emoji_exclusive": "A role can have an image icon or an emoji, not both.",+ "roles.icon_source_and_icon_exclusive": "Set a role icon or copy one from another role, not both.","roles.invalid_role_id": "Invalid role ID: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "You can't use `parse` together with `allowed_mentions.users` or `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Custom emoji wasn't found.",diff --git a/packages/errors/src/i18n/weblate/locales/es-419.json b/packages/errors/src/i18n/weblate/locales/es-419.jsonindex b9f4c4f10..656371ea5 100644--- a/packages/errors/src/i18n/weblate/locales/es-419.json+++ b/packages/errors/src/i18n/weblate/locales/es-419.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Archivo no encontrado.","attachments_and_uploads.file_size_too_large": "El tamaño del archivo es demasiado grande. El tamaño máximo del archivo es {maxSize}.","attachments_and_uploads.filename_length_invalid": "El nombre de archivo debe tener entre {min} y {max} caracteres.",+ "attachments_and_uploads.image_dimensions_out_of_range": "El ancho y el alto de la imagen deben estar entre {min} y {max} píxeles.","attachments_and_uploads.image_size_exceeds_limit": "El tamaño de la imagen excede los {maxSize} bytes.","attachments_and_uploads.invalid_file_field_name": "Nombre de campo de archivo no válido: {key}. Formato esperado: `files[N]` donde N es un número.","attachments_and_uploads.invalid_image_format": "Formato de imagen no válido. Extensiones compatibles: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Solo puedes actualizar el valor predeterminado para compartir actividad de voz una vez cada 24 horas. Inténtalo de nuevo en {retry_after} {retry_after, plural, one {segundo} other {segundos}}.","roles.cannot_reorder_everyone_role": "No puedes reordenar el rol @everyone.","roles.cannot_set_everyone_hoist": "No puedes definir la posición del rol @everyone en la lista de roles mostrados por separado.",+ "roles.cannot_set_everyone_icon": "El rol @everyone no puede tener un ícono.",+ "roles.icon_and_emoji_exclusive": "Un rol puede tener un ícono de imagen o un emoji, pero no ambos.",+ "roles.icon_source_and_icon_exclusive": "Define un ícono para el rol o cópialo de otro rol, pero no ambas cosas.","roles.invalid_role_id": "ID de rol inválido: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "No puedes usar `parse` junto con `allowed_mentions.users` o `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "No se encontró el emoji personalizado.",diff --git a/packages/errors/src/i18n/weblate/locales/es-ES.json b/packages/errors/src/i18n/weblate/locales/es-ES.jsonindex 686114db3..48ca97c1a 100644--- a/packages/errors/src/i18n/weblate/locales/es-ES.json+++ b/packages/errors/src/i18n/weblate/locales/es-ES.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Archivo no encontrado.","attachments_and_uploads.file_size_too_large": "El archivo es demasiado grande. El tamaño máximo de archivo es {maxSize}.","attachments_and_uploads.filename_length_invalid": "El nombre del archivo debe tener entre {min} y {max} caracteres.",+ "attachments_and_uploads.image_dimensions_out_of_range": "El ancho y el alto de la imagen deben estar entre {min} y {max} píxeles.","attachments_and_uploads.image_size_exceeds_limit": "El tamaño de la imagen supera los {maxSize} bytes.","attachments_and_uploads.invalid_file_field_name": "Nombre de campo de archivo no válido: {key}. Formato esperado: `files[N]` donde N es un número.","attachments_and_uploads.invalid_image_format": "Formato de imagen no válido. Extensiones compatibles: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Solo puedes actualizar la opción predeterminada para compartir actividad de voz una vez cada 24 horas. Vuelve a intentarlo en {retry_after} {retry_after, plural, one {segundo} other {segundos}}.","roles.cannot_reorder_everyone_role": "No puedes reordenar el rol @everyone.","roles.cannot_set_everyone_hoist": "No puedes definir la posición del rol @everyone en la lista de roles mostrados por separado.",+ "roles.cannot_set_everyone_icon": "El rol @everyone no puede tener un icono.",+ "roles.icon_and_emoji_exclusive": "Un rol puede tener un icono de imagen o un emoji, pero no ambos.",+ "roles.icon_source_and_icon_exclusive": "Define un icono para el rol o cópialo de otro rol, pero no ambas cosas.","roles.invalid_role_id": "ID de rol no válido: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "No puedes usar `parse` junto con `allowed_mentions.users` o `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "No se encontró el emoji personalizado.",diff --git a/packages/errors/src/i18n/weblate/locales/fi.json b/packages/errors/src/i18n/weblate/locales/fi.jsonindex abf956ad3..f7598d3a0 100644--- a/packages/errors/src/i18n/weblate/locales/fi.json+++ b/packages/errors/src/i18n/weblate/locales/fi.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Tiedostoa ei löytynyt.","attachments_and_uploads.file_size_too_large": "Tiedoston koko on liian suuri. Suurin sallittu koko on {maxSize}.","attachments_and_uploads.filename_length_invalid": "Tiedostonimen on oltava {min}–{max} merkkiä pitkä.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Kuvan leveyden ja korkeuden on oltava {min} ja {max} pikselin välillä.","attachments_and_uploads.image_size_exceeds_limit": "Kuvan koko on yli {maxSize} tavua.","attachments_and_uploads.invalid_file_field_name": "Virheellinen tiedostokentän nimi: {key}. Odotettu muoto: `files[N]`, jossa N on numero.","attachments_and_uploads.invalid_image_format": "Virheellinen kuvamuoto. Tuetut tiedostopäätteet: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Voit päivittää äänitoiminnan jakamisen oletusasetuksen vain kerran 24 tunnissa. Yritä uudelleen {retry_after, plural, one {# sekunnin} other {# sekunnin}} kuluttua.","roles.cannot_reorder_everyone_role": "Et voi järjestellä @everyone-roolia uudelleen.","roles.cannot_set_everyone_hoist": "Et voi määrittää @everyone-roolin erillisen jäsenryhmän sijaintia.",+ "roles.cannot_set_everyone_icon": "Roolilla @everyone ei voi olla kuvaketta.",+ "roles.icon_and_emoji_exclusive": "Roolilla voi olla kuvana ladattu kuvake tai emoji, ei molempia.",+ "roles.icon_source_and_icon_exclusive": "Aseta roolille kuvake tai kopioi se toisesta roolista, ei molempia.","roles.invalid_role_id": "Virheellinen roolitunnus: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Et voi käyttää `parse`-parametria yhdessä `allowed_mentions.users`- tai `allowed_mentions.roles`-parametrin kanssa.","stickers_and_emojis.custom_emoji_not_found": "Mukautettua emojia ei löytynyt.",diff --git a/packages/errors/src/i18n/weblate/locales/fr.json b/packages/errors/src/i18n/weblate/locales/fr.jsonindex e329feb28..3860dd80a 100644--- a/packages/errors/src/i18n/weblate/locales/fr.json+++ b/packages/errors/src/i18n/weblate/locales/fr.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Fichier introuvable.","attachments_and_uploads.file_size_too_large": "Le fichier est trop volumineux. Sa taille ne doit pas dépasser {maxSize}.","attachments_and_uploads.filename_length_invalid": "Le nom de fichier doit contenir entre {min} et {max} caractères.",+ "attachments_and_uploads.image_dimensions_out_of_range": "La largeur et la hauteur de l'image doivent être comprises entre {min} et {max} pixels.","attachments_and_uploads.image_size_exceeds_limit": "La taille de l'image dépasse {maxSize} octets.","attachments_and_uploads.invalid_file_field_name": "Nom de champ de fichier non valide : {key}. Format attendu : `files[N]` où N est un nombre.","attachments_and_uploads.invalid_image_format": "Format d'image non valide. Extensions prises en charge : {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Vous ne pouvez modifier le réglage par défaut du partage de votre activité vocale qu’une fois toutes les 24 heures. Réessayez dans {retry_after, plural, =1 {# seconde} other {# secondes}}.","roles.cannot_reorder_everyone_role": "Vous ne pouvez pas modifier la position du rôle @everyone.","roles.cannot_set_everyone_hoist": "Vous ne pouvez pas définir de position d’affichage séparé pour le rôle @everyone.",+ "roles.cannot_set_everyone_icon": "Le rôle @everyone ne peut pas avoir d'icône.",+ "roles.icon_and_emoji_exclusive": "Un rôle peut avoir une icône image ou un emoji, mais pas les deux.",+ "roles.icon_source_and_icon_exclusive": "Définissez une icône de rôle ou copiez celle d'un autre rôle, mais pas les deux.","roles.invalid_role_id": "ID de rôle invalide : {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Vous ne pouvez pas utiliser `parse` avec `allowed_mentions.users` ou `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Emoji personnalisé non trouvé.",diff --git a/packages/errors/src/i18n/weblate/locales/he.json b/packages/errors/src/i18n/weblate/locales/he.jsonindex 3f54f3339..1caa77ccb 100644--- a/packages/errors/src/i18n/weblate/locales/he.json+++ b/packages/errors/src/i18n/weblate/locales/he.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "הקובץ לא נמצא.","attachments_and_uploads.file_size_too_large": "גודל הקובץ גדול מדי. הגודל המקסימלי הוא {maxSize}.","attachments_and_uploads.filename_length_invalid": "שם הקובץ חייב להיות באורך של {min} עד {max} תווים.",+ "attachments_and_uploads.image_dimensions_out_of_range": "הרוחב והגובה של התמונה חייבים להיות בין {min} ל-{max} פיקסלים.","attachments_and_uploads.image_size_exceeds_limit": "גודל התמונה עולה על {maxSize} בתים.","attachments_and_uploads.invalid_file_field_name": "שם שדה קובץ שגוי: {key}. הפורמט הצפוי: `files[N]` כאשר N הוא מספר.","attachments_and_uploads.invalid_image_format": "פורמט תמונה שגוי. סיומות נתמכות: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "אפשר לעדכן את ברירת המחדל לשיתוף פעילות קולית רק פעם אחת בכל 24 שעות. ניתן לנסות שוב בעוד {retry_after} {retry_after, plural, one {שנייה} other {שניות}}.","roles.cannot_reorder_everyone_role": "לא ניתן לסדר מחדש את תפקיד @everyone.","roles.cannot_set_everyone_hoist": "לא ניתן להגדיר את מיקום ההצגה עבור תפקיד @everyone.",+ "roles.cannot_set_everyone_icon": "לתפקיד @everyone לא יכול להיות סמל.",+ "roles.icon_and_emoji_exclusive": "לתפקיד יכול להיות סמל תמונה או אימוג'י, לא שניהם.",+ "roles.icon_source_and_icon_exclusive": "הגדר סמל לתפקיד או העתק אותו מתפקיד אחר, לא את שניהם.","roles.invalid_role_id": "מזהה תפקיד שגוי: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "לא ניתן להשתמש ב-`parse` יחד עם `allowed_mentions.users` או `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "אימוג'י מותאם אישית לא נמצא.",diff --git a/packages/errors/src/i18n/weblate/locales/hi.json b/packages/errors/src/i18n/weblate/locales/hi.jsonindex 9c0976bae..8546142c8 100644--- a/packages/errors/src/i18n/weblate/locales/hi.json+++ b/packages/errors/src/i18n/weblate/locales/hi.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "फ़ाइल नहीं मिली।","attachments_and_uploads.file_size_too_large": "फ़ाइल का साइज़ बहुत ज़्यादा है। अधिकतम फ़ाइल साइज़ {maxSize} है।","attachments_and_uploads.filename_length_invalid": "फ़ाइलनेम {min} और {max} कैरेक्टर के बीच होना चाहिए।",+ "attachments_and_uploads.image_dimensions_out_of_range": "छवि की चौड़ाई और ऊँचाई दोनों {min} से {max} पिक्सेल के बीच होनी चाहिए।","attachments_and_uploads.image_size_exceeds_limit": "इमेज का साइज़ {maxSize} बाइट्स से अधिक है।","attachments_and_uploads.invalid_file_field_name": "अमान्य फ़ाइल फ़ील्ड नेम: {key}। सही फ़ॉर्मेट: `files[N]` जहाँ N एक नंबर है।","attachments_and_uploads.invalid_image_format": "अमान्य इमेज फ़ॉर्मेट। सपोर्टेड एक्सटेंशन: {supportedExtensions}।",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "आप वॉइस एक्टिविटी शेयरिंग की डिफ़ॉल्ट सेटिंग हर 24 घंटे में केवल एक बार बदल सकते हैं। कृपया {retry_after} {retry_after, plural, one {सेकंड} other {सेकंड}} बाद फिर से प्रयास करें।","roles.cannot_reorder_everyone_role": "आप @everyone रोल को रीऑर्डर नहीं कर सकते।","roles.cannot_set_everyone_hoist": "आप @everyone रोल के लिए हॉइस्ट पोज़ीशन सेट नहीं कर सकते।",+ "roles.cannot_set_everyone_icon": "@everyone रोल का आइकॉन नहीं हो सकता।",+ "roles.icon_and_emoji_exclusive": "किसी रोल का इमेज आइकॉन या इमोजी हो सकता है, दोनों नहीं।",+ "roles.icon_source_and_icon_exclusive": "रोल का आइकॉन सेट करें या किसी दूसरे रोल से कॉपी करें, दोनों नहीं।","roles.invalid_role_id": "अमान्य रोल ID: {roleId}।","roles.parse_and_users_or_roles_cannot_be_used_together": "आप `parse` का इस्तेमाल `allowed_mentions.users` या `allowed_mentions.roles` के साथ नहीं कर सकते।","stickers_and_emojis.custom_emoji_not_found": "कस्टम इमोजी नहीं मिला।",diff --git a/packages/errors/src/i18n/weblate/locales/hr.json b/packages/errors/src/i18n/weblate/locales/hr.jsonindex 9700c631e..fb6a4166f 100644--- a/packages/errors/src/i18n/weblate/locales/hr.json+++ b/packages/errors/src/i18n/weblate/locales/hr.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Datoteka nije pronađena.","attachments_and_uploads.file_size_too_large": "Veličina datoteke je prevelika. Maksimalna veličina datoteke je {maxSize}.","attachments_and_uploads.filename_length_invalid": "Naziv datoteke mora imati između {min} i {max} znakova.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Širina i visina slike moraju biti između {min} i {max} piksela.","attachments_and_uploads.image_size_exceeds_limit": "Veličina slike premašuje {maxSize} bajtova.","attachments_and_uploads.invalid_file_field_name": "Nevažeći naziv polja datoteke: {key}. Očekivani format: `files[N]` gdje je N broj.","attachments_and_uploads.invalid_image_format": "Nevažeći format slike. Podržane ekstenzije: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Zadanu postavku dijeljenja glasovne aktivnosti možeš ažurirati samo jednom svaka 24 sata. Pokušaj ponovno za {retry_after, plural, one {# sekundu} few {# sekunde} other {# sekundi}}.","roles.cannot_reorder_everyone_role": "Ne možeš mijenjati redoslijed uloge @everyone.","roles.cannot_set_everyone_hoist": "Ne možeš postaviti položaj isticanja za ulogu @everyone.",+ "roles.cannot_set_everyone_icon": "Uloga @everyone ne može imati ikonu.",+ "roles.icon_and_emoji_exclusive": "Uloga može imati slikovnu ikonu ili emoji, ali ne oboje.",+ "roles.icon_source_and_icon_exclusive": "Postavite ikonu uloge ili je kopirajte s druge uloge, ali ne oboje.","roles.invalid_role_id": "Nevažeći ID uloge: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Ne možeš koristiti `parse` zajedno s `allowed_mentions.users` ili `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Prilagođeni emoji nije pronađen.",diff --git a/packages/errors/src/i18n/weblate/locales/hu.json b/packages/errors/src/i18n/weblate/locales/hu.jsonindex e08978b53..ef0210ec0 100644--- a/packages/errors/src/i18n/weblate/locales/hu.json+++ b/packages/errors/src/i18n/weblate/locales/hu.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "A fájl nem található.","attachments_and_uploads.file_size_too_large": "A fájl mérete túl nagy. A megengedett maximális fájlméret {maxSize}.","attachments_and_uploads.filename_length_invalid": "A fájlnév hosszának {min} és {max} karakter között kell lennie.",+ "attachments_and_uploads.image_dimensions_out_of_range": "A kép szélességének és magasságának is {min} és {max} képpont között kell lennie.","attachments_and_uploads.image_size_exceeds_limit": "A kép mérete túl nagy, maximum {maxSize} bájt lehet.","attachments_and_uploads.invalid_file_field_name": "Érvénytelen fájlmezőnév: {key}. Elvárt formátum: `files[N]`, ahol N egy szám.","attachments_and_uploads.invalid_image_format": "Érvénytelen képformátum. Támogatott kiterjesztések: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "A hangtevékenység megosztásának alapértelmezett beállítását csak 24 óránként egyszer frissítheted. Próbáld újra {retry_after, plural, one {# másodperc} other {# másodperc}} múlva.","roles.cannot_reorder_everyone_role": "A @everyone szerepkör sorrendbeli helyét nem módosíthatod.","roles.cannot_set_everyone_hoist": "A @everyone szerepkörnek nem adhatsz meg helyet a külön megjelenített szerepkörök között.",+ "roles.cannot_set_everyone_icon": "Az @everyone szerepkörnek nem lehet ikonja.",+ "roles.icon_and_emoji_exclusive": "Egy szerepkörnek képikonja vagy emojija lehet, a kettő egyszerre nem.",+ "roles.icon_source_and_icon_exclusive": "Állíts be szerepkörikont, vagy másold át egy másik szerepkörből, a kettőt egyszerre nem lehet.","roles.invalid_role_id": "Érvénytelen szerepkörazonosító: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "A `parse` nem használható együtt a `allowed_mentions.users` vagy `allowed_mentions.roles` elemekkel.","stickers_and_emojis.custom_emoji_not_found": "Az egyedi emoji nem található.",diff --git a/packages/errors/src/i18n/weblate/locales/id.json b/packages/errors/src/i18n/weblate/locales/id.jsonindex e7b384b7a..a1adac74f 100644--- a/packages/errors/src/i18n/weblate/locales/id.json+++ b/packages/errors/src/i18n/weblate/locales/id.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "File tidak ditemukan.","attachments_and_uploads.file_size_too_large": "Ukuran file terlalu besar. Ukuran file maksimum adalah {maxSize}.","attachments_and_uploads.filename_length_invalid": "Panjang nama file harus antara {min} dan {max} karakter.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Lebar dan tinggi gambar masing-masing harus antara {min} dan {max} piksel.","attachments_and_uploads.image_size_exceeds_limit": "Ukuran gambar melebihi {maxSize} byte.","attachments_and_uploads.invalid_file_field_name": "Nama kolom file tidak valid: {key}. Format yang benar: `files[N]` dengan N adalah angka.","attachments_and_uploads.invalid_image_format": "Format gambar tidak valid. Ekstensi yang didukung: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Kamu hanya bisa memperbarui pengaturan default berbagi aktivitas suara sekali setiap 24 jam. Coba lagi dalam {retry_after} {retry_after, plural, other {detik}}.","roles.cannot_reorder_everyone_role": "Kamu tidak bisa mengurutkan ulang peran @everyone.","roles.cannot_set_everyone_hoist": "Kamu tidak bisa mengatur posisi hoist untuk peran @everyone.",+ "roles.cannot_set_everyone_icon": "Peran @everyone tidak bisa memiliki ikon.",+ "roles.icon_and_emoji_exclusive": "Peran bisa memiliki ikon gambar atau emoji, tidak keduanya.",+ "roles.icon_source_and_icon_exclusive": "Atur ikon peran atau salin dari peran lain, tidak keduanya.","roles.invalid_role_id": "ID peran tidak valid: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Kamu tidak bisa pakai `parse` bersamaan dengan `allowed_mentions.users` atau `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Emoji kustom tidak ditemukan.",diff --git a/packages/errors/src/i18n/weblate/locales/it.json b/packages/errors/src/i18n/weblate/locales/it.jsonindex f8f616342..22fb3bab1 100644--- a/packages/errors/src/i18n/weblate/locales/it.json+++ b/packages/errors/src/i18n/weblate/locales/it.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "File non trovato.","attachments_and_uploads.file_size_too_large": "Il file è troppo grande. La dimensione massima consentita è {maxSize}.","attachments_and_uploads.filename_length_invalid": "Il nome del file deve contenere da {min} a {max} caratteri.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Larghezza e altezza dell'immagine devono essere comprese tra {min} e {max} pixel.","attachments_and_uploads.image_size_exceeds_limit": "La dimensione dell'immagine supera i {maxSize} byte.","attachments_and_uploads.invalid_file_field_name": "Nome del campo file non valido: {key}. Formato previsto: `files[N]` dove N è un numero.","attachments_and_uploads.invalid_image_format": "Formato immagine non valido. Estensioni supportate: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Puoi aggiornare l'impostazione predefinita di condivisione dell'attività vocale solo una volta ogni 24 ore. Riprova tra {retry_after, plural, one {# secondo} other {# secondi}}.","roles.cannot_reorder_everyone_role": "Non puoi riordinare il ruolo @everyone.","roles.cannot_set_everyone_hoist": "Non puoi impostare la posizione di visualizzazione separata per il ruolo @everyone.",+ "roles.cannot_set_everyone_icon": "Il ruolo @everyone non può avere un'icona.",+ "roles.icon_and_emoji_exclusive": "Un ruolo può avere un'icona immagine o un'emoji, non entrambe.",+ "roles.icon_source_and_icon_exclusive": "Imposta un'icona per il ruolo o copiala da un altro ruolo, non entrambe le cose.","roles.invalid_role_id": "ID ruolo non valido: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Non puoi usare `parse` insieme a `allowed_mentions.users` o `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "L'emoji personalizzata non è stata trovata.",diff --git a/packages/errors/src/i18n/weblate/locales/ja.json b/packages/errors/src/i18n/weblate/locales/ja.jsonindex a569772c0..b9e47132c 100644--- a/packages/errors/src/i18n/weblate/locales/ja.json+++ b/packages/errors/src/i18n/weblate/locales/ja.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "ファイルが見つかりません。","attachments_and_uploads.file_size_too_large": "ファイルサイズが大きすぎます。最大ファイルサイズは{maxSize}です。","attachments_and_uploads.filename_length_invalid": "ファイル名は{min}~{max}文字である必要があります。",+ "attachments_and_uploads.image_dimensions_out_of_range": "画像の幅と高さはそれぞれ{min}〜{max}ピクセルにしてください。","attachments_and_uploads.image_size_exceeds_limit": "画像サイズが{maxSize}バイトを超えています。","attachments_and_uploads.invalid_file_field_name": "ファイルフィールド名が無効です:{key}。`files[N]`(Nは数字)の形式で指定してください。","attachments_and_uploads.invalid_image_format": "画像形式が無効です。対応拡張子は{supportedExtensions}です。",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "音声アクティビティ共有のデフォルト設定を更新できるのは24時間に1回だけです。{retry_after, plural, other {#秒}}後にもう一度お試しください。","roles.cannot_reorder_everyone_role": "@everyoneロールの順序は変更できません。","roles.cannot_set_everyone_hoist": "@everyoneロールの表示順は設定できません。",+ "roles.cannot_set_everyone_icon": "@everyoneロールにはアイコンを設定できません。",+ "roles.icon_and_emoji_exclusive": "ロールには画像アイコンか絵文字のどちらか一方のみ設定できます。",+ "roles.icon_source_and_icon_exclusive": "ロールアイコンは、新しく設定するか別のロールからコピーするか、どちらか一方のみ指定できます。","roles.invalid_role_id": "ロールIDが無効です:{roleId}。","roles.parse_and_users_or_roles_cannot_be_used_together": "`parse`と`allowed_mentions.users`または`allowed_mentions.roles`は同時に使えません。","stickers_and_emojis.custom_emoji_not_found": "カスタム絵文字が見つかりませんでした。",diff --git a/packages/errors/src/i18n/weblate/locales/ko.json b/packages/errors/src/i18n/weblate/locales/ko.jsonindex ceb1ce442..0cfa49b51 100644--- a/packages/errors/src/i18n/weblate/locales/ko.json+++ b/packages/errors/src/i18n/weblate/locales/ko.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "파일을 찾을 수 없어요.","attachments_and_uploads.file_size_too_large": "파일 크기가 너무 커요. 최대 {maxSize}까지 업로드할 수 있어요.","attachments_and_uploads.filename_length_invalid": "파일 이름은 {min}자 이상 {max}자 이하여야 해요.",+ "attachments_and_uploads.image_dimensions_out_of_range": "이미지의 너비와 높이는 각각 {min}~{max}픽셀이어야 합니다.","attachments_and_uploads.image_size_exceeds_limit": "이미지 크기가 {maxSize}바이트를 초과했어요.","attachments_and_uploads.invalid_file_field_name": "유효하지 않은 파일 필드 이름: {key}. 예상 형식: `files[N]` (N은 숫자).","attachments_and_uploads.invalid_image_format": "유효하지 않은 이미지 형식이에요. 지원되는 확장자: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "음성 활동 공유 기본값은 24시간에 한 번만 업데이트할 수 있어요. {retry_after, plural, other {#초}} 후에 다시 시도해 주세요.","roles.cannot_reorder_everyone_role": "@everyone 역할의 순서를 변경할 수 없어요.","roles.cannot_set_everyone_hoist": "@everyone 역할의 표시 위치를 설정할 수 없어요.",+ "roles.cannot_set_everyone_icon": "@everyone 역할에는 아이콘을 설정할 수 없습니다.",+ "roles.icon_and_emoji_exclusive": "역할에는 이미지 아이콘과 이모티콘 중 하나만 설정할 수 있습니다.",+ "roles.icon_source_and_icon_exclusive": "역할 아이콘은 새로 설정하거나 다른 역할에서 복사하는 것 중 하나만 할 수 있습니다.","roles.invalid_role_id": "올바르지 않은 역할 ID예요: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "`parse`는 `allowed_mentions.users` 또는 `allowed_mentions.roles`와 함께 사용할 수 없어요.","stickers_and_emojis.custom_emoji_not_found": "커스텀 이모지를 찾을 수 없어요.",diff --git a/packages/errors/src/i18n/weblate/locales/lt.json b/packages/errors/src/i18n/weblate/locales/lt.jsonindex ab1b1c50c..50954d686 100644--- a/packages/errors/src/i18n/weblate/locales/lt.json+++ b/packages/errors/src/i18n/weblate/locales/lt.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Failas nerastas.","attachments_and_uploads.file_size_too_large": "Failo dydis per didelis. Didžiausias failo dydis yra {maxSize}.","attachments_and_uploads.filename_length_invalid": "Failo pavadinimas turi būti nuo {min} iki {max} simbolių.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Paveikslėlio plotis ir aukštis turi būti nuo {min} iki {max} pikselių.","attachments_and_uploads.image_size_exceeds_limit": "Paveikslėlio dydis viršija {maxSize} baitų.","attachments_and_uploads.invalid_file_field_name": "Neteisingas failo lauko pavadinimas: {key}. Tikėtinas formatas: `files[N]`, kur N yra skaičius.","attachments_and_uploads.invalid_image_format": "Neteisingas paveikslėlio formatas. Palaikomi plėtiniai: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Numatytąjį balso aktyvumo bendrinimo nustatymą gali atnaujinti tik kartą per 24 valandas. Bandyk dar kartą po {retry_after, plural, one {# sekundės} few {# sekundžių} many {# sekundės} other {# sekundžių}}.","roles.cannot_reorder_everyone_role": "Negali pertvarkyti @everyone vaidmens.","roles.cannot_set_everyone_hoist": "Negali nustatyti @everyone vaidmens iškėlimo pozicijos.",+ "roles.cannot_set_everyone_icon": "Vaidmuo @everyone negali turėti piktogramos.",+ "roles.icon_and_emoji_exclusive": "Vaidmuo gali turėti paveikslėlio piktogramą arba jaustuką, bet ne abu.",+ "roles.icon_source_and_icon_exclusive": "Nustatykite vaidmens piktogramą arba nukopijuokite ją iš kito vaidmens, bet ne abu.","roles.invalid_role_id": "Neteisingas vaidmens ID: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Negali naudoti `parse` kartu su `allowed_mentions.users` arba `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Pasirinktinis emoji nerastas.",diff --git a/packages/errors/src/i18n/weblate/locales/nl.json b/packages/errors/src/i18n/weblate/locales/nl.jsonindex 92f67a6dd..9947f9d2a 100644--- a/packages/errors/src/i18n/weblate/locales/nl.json+++ b/packages/errors/src/i18n/weblate/locales/nl.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Bestand niet gevonden.","attachments_and_uploads.file_size_too_large": "Het bestand is te groot. De maximale bestandsgrootte is {maxSize}.","attachments_and_uploads.filename_length_invalid": "De bestandsnaam moet tussen {min} en {max} tekens lang zijn.",+ "attachments_and_uploads.image_dimensions_out_of_range": "De breedte en hoogte van de afbeelding moeten elk tussen {min} en {max} pixels liggen.","attachments_and_uploads.image_size_exceeds_limit": "Afbeeldingsgrootte overschrijdt {maxSize} bytes.","attachments_and_uploads.invalid_file_field_name": "Ongeldige bestandsveldnaam: {key}. Verwacht formaat: `files[N]` waarbij N een getal is.","attachments_and_uploads.invalid_image_format": "Ongeldig afbeeldingsformaat. Ondersteunde extensies: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Je kunt de standaardinstelling voor het delen van spraakactiviteit maar één keer per 24 uur bijwerken. Probeer het over {retry_after, plural, one {# seconde} other {# seconden}} opnieuw.","roles.cannot_reorder_everyone_role": "Je kunt de positie van de @everyone-rol niet wijzigen.","roles.cannot_set_everyone_hoist": "Je kunt de weergavepositie voor de @everyone-rol niet instellen.",+ "roles.cannot_set_everyone_icon": "De rol @everyone kan geen pictogram hebben.",+ "roles.icon_and_emoji_exclusive": "Een rol kan een afbeeldingspictogram of een emoji hebben, niet allebei.",+ "roles.icon_source_and_icon_exclusive": "Stel een rolpictogram in of kopieer er een van een andere rol, niet allebei.","roles.invalid_role_id": "Ongeldige rol-ID: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Je kunt `parse` niet combineren met `allowed_mentions.users` of `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Aangepaste emoji is niet gevonden.",diff --git a/packages/errors/src/i18n/weblate/locales/no.json b/packages/errors/src/i18n/weblate/locales/no.jsonindex e7fa5b29e..27aa09500 100644--- a/packages/errors/src/i18n/weblate/locales/no.json+++ b/packages/errors/src/i18n/weblate/locales/no.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Filen ble ikke funnet.","attachments_and_uploads.file_size_too_large": "Filstørrelsen er for stor. Maksimal filstørrelse er {maxSize}.","attachments_and_uploads.filename_length_invalid": "Filnavnet må inneholde mellom {min} og {max} tegn.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Bildets bredde og høyde må hver være mellom {min} og {max} piksler.","attachments_and_uploads.image_size_exceeds_limit": "Bildestørrelsen overskrider {maxSize} byte.","attachments_and_uploads.invalid_file_field_name": "Ugyldig filfeltnavn: {key}. Forventet format: `files[N]` der N er et tall.","attachments_and_uploads.invalid_image_format": "Ugyldig bildeformat. Støttede filendelser: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Du kan bare oppdatere standardinnstillingen for deling av taleaktivitet én gang hver 24. time. Prøv igjen om {retry_after, plural, one {# sekund} other {# sekunder}}.","roles.cannot_reorder_everyone_role": "Du kan ikke endre plasseringen til @everyone-rollen.","roles.cannot_set_everyone_hoist": "Du kan ikke angi visningsposisjon for @everyone-rollen.",+ "roles.cannot_set_everyone_icon": "Rollen @everyone kan ikke ha et ikon.",+ "roles.icon_and_emoji_exclusive": "En rolle kan ha et bildeikon eller en emoji, ikke begge deler.",+ "roles.icon_source_and_icon_exclusive": "Angi et rolleikon eller kopier et fra en annen rolle, ikke begge deler.","roles.invalid_role_id": "Ugyldig rolle-ID: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Du kan ikke bruke `parse` sammen med `allowed_mentions.users` eller `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Den egendefinerte emojien ble ikke funnet.",diff --git a/packages/errors/src/i18n/weblate/locales/pl.json b/packages/errors/src/i18n/weblate/locales/pl.jsonindex f6f18d050..43604cbb8 100644--- a/packages/errors/src/i18n/weblate/locales/pl.json+++ b/packages/errors/src/i18n/weblate/locales/pl.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Nie znaleziono pliku.","attachments_and_uploads.file_size_too_large": "Rozmiar pliku jest za duży. Maksymalny rozmiar pliku wynosi {maxSize}.","attachments_and_uploads.filename_length_invalid": "Nazwa pliku musi mieć od {min} do {max} znaków.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Szerokość i wysokość obrazu muszą wynosić od {min} do {max} pikseli.","attachments_and_uploads.image_size_exceeds_limit": "Rozmiar obrazu przekracza {maxSize} bajtów.","attachments_and_uploads.invalid_file_field_name": "Nieprawidłowa nazwa pola pliku: {key}. Oczekiwany format: `files[N]`, gdzie N to liczba.","attachments_and_uploads.invalid_image_format": "Nieprawidłowy format obrazu. Obsługiwane rozszerzenia: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Domyślne ustawienie udostępniania aktywności głosowej możesz zmienić tylko raz na 24 godziny. Spróbuj ponownie za {retry_after, plural, one {# sekundę} few {# sekundy} many {# sekund} other {# sekundy}}.","roles.cannot_reorder_everyone_role": "Nie możesz zmieniać kolejności roli @everyone.","roles.cannot_set_everyone_hoist": "Nie możesz ustawić pozycji na liście dla roli @everyone.",+ "roles.cannot_set_everyone_icon": "Rola @everyone nie może mieć ikony.",+ "roles.icon_and_emoji_exclusive": "Rola może mieć ikonę obrazkową albo emoji, ale nie jedno i drugie naraz.",+ "roles.icon_source_and_icon_exclusive": "Ustaw ikonę roli albo skopiuj ją z innej roli, ale nie jedno i drugie naraz.","roles.invalid_role_id": "Nieprawidłowe ID roli: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Nie możesz użyć `parse` w połączeniu z `allowed_mentions.users` lub `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Nie znaleziono niestandardowego emoji.",diff --git a/packages/errors/src/i18n/weblate/locales/pt-BR.json b/packages/errors/src/i18n/weblate/locales/pt-BR.jsonindex 0d58d7ab9..bd57c78c4 100644--- a/packages/errors/src/i18n/weblate/locales/pt-BR.json+++ b/packages/errors/src/i18n/weblate/locales/pt-BR.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Arquivo não encontrado.","attachments_and_uploads.file_size_too_large": "O arquivo é muito grande. O tamanho máximo permitido é {maxSize}.","attachments_and_uploads.filename_length_invalid": "O nome do arquivo deve ter entre {min} e {max} caracteres.",+ "attachments_and_uploads.image_dimensions_out_of_range": "A largura e a altura da imagem devem estar entre {min} e {max} pixels.","attachments_and_uploads.image_size_exceeds_limit": "O tamanho da imagem excede {maxSize} bytes.","attachments_and_uploads.invalid_file_field_name": "Nome de campo de arquivo inválido: {key}. Formato esperado: `files[N]`, onde N é um número.","attachments_and_uploads.invalid_image_format": "Formato de imagem inválido. Extensões suportadas: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Você só pode atualizar o padrão de compartilhamento de atividade de voz uma vez a cada 24 horas. Tente novamente em {retry_after, plural, =1 {# segundo} other {# segundos}}.","roles.cannot_reorder_everyone_role": "Você não pode reorganizar o cargo @everyone.","roles.cannot_set_everyone_hoist": "Você não pode definir a posição de destaque para o cargo @everyone.",+ "roles.cannot_set_everyone_icon": "O cargo @everyone não pode ter um ícone.",+ "roles.icon_and_emoji_exclusive": "Um cargo pode ter um ícone de imagem ou um emoji, não os dois.",+ "roles.icon_source_and_icon_exclusive": "Defina um ícone para o cargo ou copie o de outro cargo, não os dois.","roles.invalid_role_id": "ID de cargo inválido: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Você não pode usar `parse` junto com `allowed_mentions.users` ou `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Emoji personalizado não encontrado.",diff --git a/packages/errors/src/i18n/weblate/locales/ro.json b/packages/errors/src/i18n/weblate/locales/ro.jsonindex 7ec6fefd8..4290a6710 100644--- a/packages/errors/src/i18n/weblate/locales/ro.json+++ b/packages/errors/src/i18n/weblate/locales/ro.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Fișierul nu a fost găsit.","attachments_and_uploads.file_size_too_large": "Dimensiunea fișierului este prea mare. Dimensiunea maximă a fișierului este {maxSize}.","attachments_and_uploads.filename_length_invalid": "Numele fișierului trebuie să aibă între {min} și {max} caractere.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Lățimea și înălțimea imaginii trebuie să fie fiecare între {min} și {max} pixeli.","attachments_and_uploads.image_size_exceeds_limit": "Dimensiunea imaginii depășește {maxSize} octeți.","attachments_and_uploads.invalid_file_field_name": "Nume invalid pentru câmpul de fișier: {key}. Format așteptat: `files[N]` unde N este un număr.","attachments_and_uploads.invalid_image_format": "Format de imagine invalid. Extensii acceptate: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Poți actualiza setarea implicită de partajare a activității vocale doar o dată la 24 de ore. Încearcă din nou peste {retry_after, plural, one {# secundă} few {# secunde} other {# de secunde}}.","roles.cannot_reorder_everyone_role": "Nu poți rearanja rolul @everyone.","roles.cannot_set_everyone_hoist": "Nu poți seta poziția de afișare separată pentru rolul @everyone.",+ "roles.cannot_set_everyone_icon": "Rolul @everyone nu poate avea o pictogramă.",+ "roles.icon_and_emoji_exclusive": "Un rol poate avea o pictogramă imagine sau un emoji, nu pe amândouă.",+ "roles.icon_source_and_icon_exclusive": "Setează o pictogramă pentru rol sau copiaz-o de la alt rol, nu pe amândouă.","roles.invalid_role_id": "ID de rol invalid: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Nu poți folosi `parse` împreună cu `allowed_mentions.users` sau `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Emojiul personalizat nu a fost găsit.",diff --git a/packages/errors/src/i18n/weblate/locales/ru.json b/packages/errors/src/i18n/weblate/locales/ru.jsonindex ec6b0960c..982470e5d 100644--- a/packages/errors/src/i18n/weblate/locales/ru.json+++ b/packages/errors/src/i18n/weblate/locales/ru.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Файл не найден.","attachments_and_uploads.file_size_too_large": "Размер файла слишком большой. Максимальный размер файла: {maxSize}.","attachments_and_uploads.filename_length_invalid": "Имя файла должно содержать от {min} до {max} символов.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Ширина и высота изображения должны быть от {min} до {max} пикселей.","attachments_and_uploads.image_size_exceeds_limit": "Размер изображения превышает {maxSize} байт.","attachments_and_uploads.invalid_file_field_name": "Недопустимое имя поля файла: {key}. Ожидаемый формат: `files[N]`, где N — число.","attachments_and_uploads.invalid_image_format": "Недопустимый формат изображения. Поддерживаемые расширения: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Ты можешь изменять настройку по умолчанию для передачи голосовой активности только раз в 24 часа. Попробуй ещё раз через {retry_after} {retry_after, plural, one {секунду} few {секунды} many {секунд} other {секунды}}.","roles.cannot_reorder_everyone_role": "Нельзя переместить роль @everyone.","roles.cannot_set_everyone_hoist": "Нельзя изменить позицию отображения для роли @everyone.",+ "roles.cannot_set_everyone_icon": "У роли @everyone не может быть значка.",+ "roles.icon_and_emoji_exclusive": "У роли может быть значок-изображение или эмодзи, но не оба сразу.",+ "roles.icon_source_and_icon_exclusive": "Задайте значок роли или скопируйте его из другой роли, но не то и другое сразу.","roles.invalid_role_id": "Неверный ID роли: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Нельзя использовать `parse` вместе с `allowed_mentions.users` или `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Пользовательское эмодзи не найдено.",diff --git a/packages/errors/src/i18n/weblate/locales/sv-SE.json b/packages/errors/src/i18n/weblate/locales/sv-SE.jsonindex 7e6f2cc09..6507d080a 100644--- a/packages/errors/src/i18n/weblate/locales/sv-SE.json+++ b/packages/errors/src/i18n/weblate/locales/sv-SE.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Filen hittades inte.","attachments_and_uploads.file_size_too_large": "Filen är för stor. Den största tillåtna filstorleken är {maxSize}.","attachments_and_uploads.filename_length_invalid": "Filnamnet måste vara mellan {min} och {max} tecken långt.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Bildens bredd och höjd måste vara mellan {min} och {max} pixlar.","attachments_and_uploads.image_size_exceeds_limit": "Bildstorleken överskrider {maxSize} byte.","attachments_and_uploads.invalid_file_field_name": "Ogiltigt filfältnamn: {key}. Förväntat format: `files[N]` där N är ett tal.","attachments_and_uploads.invalid_image_format": "Ogiltigt bildformat. Filändelser som stöds: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Du kan bara uppdatera standardinställningen för delning av röstaktivitet en gång per dygn. Försök igen om {retry_after, plural, one {# sekund} other {# sekunder}}.","roles.cannot_reorder_everyone_role": "Du kan inte ändra ordningen på rollen @everyone.","roles.cannot_set_everyone_hoist": "Du kan inte ange en separat visningsposition för rollen @everyone.",+ "roles.cannot_set_everyone_icon": "Rollen @everyone kan inte ha en ikon.",+ "roles.icon_and_emoji_exclusive": "En roll kan ha en bildikon eller en emoji, inte båda.",+ "roles.icon_source_and_icon_exclusive": "Ange en rollikon eller kopiera en från en annan roll, inte båda.","roles.invalid_role_id": "Ogiltigt roll-ID: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Du kan inte använda `parse` tillsammans med `allowed_mentions.users` eller `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Den anpassade emojin hittades inte.",diff --git a/packages/errors/src/i18n/weblate/locales/th.json b/packages/errors/src/i18n/weblate/locales/th.jsonindex cbbc01ecf..9baafb5bd 100644--- a/packages/errors/src/i18n/weblate/locales/th.json+++ b/packages/errors/src/i18n/weblate/locales/th.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "ไม่พบไฟล์","attachments_and_uploads.file_size_too_large": "ขนาดไฟล์ใหญ่เกินไป ขนาดไฟล์สูงสุดคือ {maxSize}","attachments_and_uploads.filename_length_invalid": "ชื่อไฟล์ต้องมี {min} ถึง {max} ตัวอักษร",+ "attachments_and_uploads.image_dimensions_out_of_range": "ความกว้างและความสูงของรูปภาพต้องอยู่ระหว่าง {min} ถึง {max} พิกเซล","attachments_and_uploads.image_size_exceeds_limit": "ขนาดรูปภาพเกิน {maxSize} ไบต์","attachments_and_uploads.invalid_file_field_name": "ชื่อฟิลด์ไฟล์ไม่ถูกต้อง: {key} รูปแบบที่คาดไว้: `files[N]` โดยที่ N คือตัวเลข","attachments_and_uploads.invalid_image_format": "รูปแบบรูปภาพไม่ถูกต้อง นามสกุลที่รองรับคือ {supportedExtensions}",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "คุณอัปเดตค่าเริ่มต้นการแชร์กิจกรรมเสียงได้เพียงหนึ่งครั้งทุก 24 ชั่วโมง โปรดลองอีกครั้งใน {retry_after} {retry_after, plural, other {วินาที}}","roles.cannot_reorder_everyone_role": "คุณไม่สามารถจัดลำดับบทบาท @everyone ใหม่ได้","roles.cannot_set_everyone_hoist": "คุณไม่สามารถตั้งค่าตำแหน่ง hoist สำหรับบทบาท @everyone ได้",+ "roles.cannot_set_everyone_icon": "บทบาท @everyone ไม่สามารถมีไอคอนได้",+ "roles.icon_and_emoji_exclusive": "บทบาทหนึ่งมีไอคอนรูปภาพหรืออิโมจิได้อย่างใดอย่างหนึ่งเท่านั้น",+ "roles.icon_source_and_icon_exclusive": "ตั้งไอคอนบทบาทหรือคัดลอกจากบทบาทอื่นได้อย่างใดอย่างหนึ่งเท่านั้น","roles.invalid_role_id": "ID บทบาทไม่ถูกต้อง: {roleId}","roles.parse_and_users_or_roles_cannot_be_used_together": "ไม่สามารถใช้ `parse` ร่วมกับ `allowed_mentions.users` หรือ `allowed_mentions.roles` ได้","stickers_and_emojis.custom_emoji_not_found": "ไม่พบอิโมจิแบบกำหนดเอง",diff --git a/packages/errors/src/i18n/weblate/locales/tr.json b/packages/errors/src/i18n/weblate/locales/tr.jsonindex 7729b0151..b274cb330 100644--- a/packages/errors/src/i18n/weblate/locales/tr.json+++ b/packages/errors/src/i18n/weblate/locales/tr.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Dosya bulunamadı.","attachments_and_uploads.file_size_too_large": "Dosya boyutu çok büyük. İzin verilen maksimum dosya boyutu {maxSize}.","attachments_and_uploads.filename_length_invalid": "Dosya adı {min} ile {max} karakter arasında olmalı.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Görselin genişliği ve yüksekliği {min} ile {max} piksel arasında olmalıdır.","attachments_and_uploads.image_size_exceeds_limit": "Görsel boyutu {maxSize} baytı aşıyor.","attachments_and_uploads.invalid_file_field_name": "Geçersiz dosya alan adı: {key}. Beklenen biçim: `files[N]` (N, bir sayı).","attachments_and_uploads.invalid_image_format": "Geçersiz görsel biçimi. Desteklenen uzantılar: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Ses etkinliği paylaşımı varsayılanını 24 saatte yalnızca bir kez güncelleyebilirsin. Lütfen {retry_after, plural, one {# saniye} other {# saniye}} sonra tekrar dene.","roles.cannot_reorder_everyone_role": "@everyone rolünü yeniden sıralayamazsın.","roles.cannot_set_everyone_hoist": "@everyone rolü için yükseltme konumunu ayarlayamazsın.",+ "roles.cannot_set_everyone_icon": "@everyone rolünün simgesi olamaz.",+ "roles.icon_and_emoji_exclusive": "Bir rolün görsel simgesi ya da emojisi olabilir, ikisi birden olamaz.",+ "roles.icon_source_and_icon_exclusive": "Bir rol simgesi belirleyin ya da başka bir rolden kopyalayın, ikisini birden yapamazsınız.","roles.invalid_role_id": "Geçersiz rol kimliği: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "`parse` ile `allowed_mentions.users` veya `allowed_mentions.roles`'ı birlikte kullanamazsın.","stickers_and_emojis.custom_emoji_not_found": "Özel emoji bulunamadı.",diff --git a/packages/errors/src/i18n/weblate/locales/uk.json b/packages/errors/src/i18n/weblate/locales/uk.jsonindex 30394ed5f..e3998fe3d 100644--- a/packages/errors/src/i18n/weblate/locales/uk.json+++ b/packages/errors/src/i18n/weblate/locales/uk.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Файл не знайдено.","attachments_and_uploads.file_size_too_large": "Розмір файлу завеликий. Максимальний розмір файлу: {maxSize}.","attachments_and_uploads.filename_length_invalid": "Ім'я файлу має містити від {min} до {max} символів.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Ширина й висота зображення мають бути від {min} до {max} пікселів.","attachments_and_uploads.image_size_exceeds_limit": "Розмір зображення перевищує {maxSize} байтів.","attachments_and_uploads.invalid_file_field_name": "Недійсне ім'я поля файлу: {key}. Очікуваний формат: `files[N]`, де N — число.","attachments_and_uploads.invalid_image_format": "Недійсний формат зображення. Підтримувані розширення: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Типове налаштування поширення голосової активності можна змінювати лише раз на 24 години. Спробуй ще раз за {retry_after} {retry_after, plural, one {секунду} few {секунди} many {секунд} other {секунди}}.","roles.cannot_reorder_everyone_role": "Ти не можеш змінити порядок ролі @everyone.","roles.cannot_set_everyone_hoist": "Ти не можеш встановити позицію відображення для ролі @everyone.",+ "roles.cannot_set_everyone_icon": "Роль @everyone не може мати іконки.",+ "roles.icon_and_emoji_exclusive": "Роль може мати іконку-зображення або емоджі, але не обидва водночас.",+ "roles.icon_source_and_icon_exclusive": "Задайте іконку ролі або скопіюйте її з іншої ролі, але не обидва водночас.","roles.invalid_role_id": "Неправильний ID ролі: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Ти не можеш використовувати `parse` разом із `allowed_mentions.users` або `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Користувацьке емоджі не знайдено.",diff --git a/packages/errors/src/i18n/weblate/locales/vi.json b/packages/errors/src/i18n/weblate/locales/vi.jsonindex 4bb9b36d8..fda2365e4 100644--- a/packages/errors/src/i18n/weblate/locales/vi.json+++ b/packages/errors/src/i18n/weblate/locales/vi.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "Không tìm thấy tệp.","attachments_and_uploads.file_size_too_large": "Kích thước tệp quá lớn. Kích thước tối đa là {maxSize}.","attachments_and_uploads.filename_length_invalid": "Tên tệp phải có độ dài từ {min} đến {max} ký tự.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Chiều rộng và chiều cao của hình ảnh phải nằm trong khoảng {min} đến {max} pixel.","attachments_and_uploads.image_size_exceeds_limit": "Kích thước hình ảnh vượt quá {maxSize} byte.","attachments_and_uploads.invalid_file_field_name": "Tên trường tệp không hợp lệ: {key}. Định dạng đúng: `files[N]` trong đó N là một số.","attachments_and_uploads.invalid_image_format": "Định dạng hình ảnh không hợp lệ. Các phần mở rộng được hỗ trợ: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "Bạn chỉ có thể cập nhật cài đặt mặc định cho chia sẻ hoạt động thoại một lần mỗi 24 giờ. Vui lòng thử lại sau {retry_after} {retry_after, plural, other {giây}}.","roles.cannot_reorder_everyone_role": "Bạn không thể sắp xếp lại vai trò @everyone.","roles.cannot_set_everyone_hoist": "Bạn không thể đặt vị trí hiển thị riêng cho vai trò @everyone.",+ "roles.cannot_set_everyone_icon": "Vai trò @everyone không thể có biểu tượng.",+ "roles.icon_and_emoji_exclusive": "Một vai trò có thể có biểu tượng hình ảnh hoặc biểu tượng cảm xúc, không thể có cả hai.",+ "roles.icon_source_and_icon_exclusive": "Hãy đặt biểu tượng vai trò hoặc sao chép từ vai trò khác, không thể làm cả hai.","roles.invalid_role_id": "ID vai trò không hợp lệ: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "Bạn không thể sử dụng `parse` cùng với `allowed_mentions.users` hoặc `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Không tìm thấy emoji tùy chỉnh.",diff --git a/packages/errors/src/i18n/weblate/locales/zh-CN.json b/packages/errors/src/i18n/weblate/locales/zh-CN.jsonindex 97155a6d2..cd0615ed4 100644--- a/packages/errors/src/i18n/weblate/locales/zh-CN.json+++ b/packages/errors/src/i18n/weblate/locales/zh-CN.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "未找到文件。","attachments_and_uploads.file_size_too_large": "文件过大。最大文件大小为 {maxSize}。","attachments_and_uploads.filename_length_invalid": "文件名必须在 {min} 到 {max} 个字符之间。",+ "attachments_and_uploads.image_dimensions_out_of_range": "图片的宽度和高度都必须在 {min} 到 {max} 像素之间。","attachments_and_uploads.image_size_exceeds_limit": "图片大小超出 {maxSize} 字节。","attachments_and_uploads.invalid_file_field_name": "无效的文件字段名称:{key}。预期格式:`files[N]`,其中 N 为数字。","attachments_and_uploads.invalid_image_format": "无效的图片格式。支持的扩展名:{supportedExtensions}。",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "你每 24 小时只能更新一次语音活动分享默认设置。请在 {retry_after, plural, other {# 秒}}后重试。","roles.cannot_reorder_everyone_role": "无法调整 @everyone 身份组的顺序。","roles.cannot_set_everyone_hoist": "无法设置 @everyone 身份组的置顶位置。",+ "roles.cannot_set_everyone_icon": "@everyone 身份组不能设置图标。",+ "roles.icon_and_emoji_exclusive": "身份组只能设置图片图标或表情中的一种。",+ "roles.icon_source_and_icon_exclusive": "身份组图标只能新设置或从其他身份组复制,二者选其一。","roles.invalid_role_id": "无效的身份组 ID:{roleId}。","roles.parse_and_users_or_roles_cannot_be_used_together": "不能将 `parse` 与 `allowed_mentions.users` 或 `allowed_mentions.roles` 同时使用。","stickers_and_emojis.custom_emoji_not_found": "未找到自定义表情。",diff --git a/packages/errors/src/i18n/weblate/locales/zh-TW.json b/packages/errors/src/i18n/weblate/locales/zh-TW.jsonindex 5561514d8..955851c05 100644--- a/packages/errors/src/i18n/weblate/locales/zh-TW.json+++ b/packages/errors/src/i18n/weblate/locales/zh-TW.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "找不到檔案。","attachments_and_uploads.file_size_too_large": "檔案太大。檔案大小上限為 {maxSize}。","attachments_and_uploads.filename_length_invalid": "檔案名稱必須介於 {min} 到 {max} 個字元之間。",+ "attachments_and_uploads.image_dimensions_out_of_range": "圖片的寬度和高度都必須介於 {min} 到 {max} 像素之間。","attachments_and_uploads.image_size_exceeds_limit": "圖片大小超過 {maxSize} 位元組。","attachments_and_uploads.invalid_file_field_name": "無效的檔案欄位名稱:{key}。預期格式為 `files[N]`,其中 N 為數字。","attachments_and_uploads.invalid_image_format": "無效的圖片格式。支援的副檔名:{supportedExtensions}。",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "你每 24 小時只能更新一次語音活動分享預設設定。請在 {retry_after, plural, other {# 秒}}後再試一次。","roles.cannot_reorder_everyone_role": "你不能重新排序 @everyone 身分組。","roles.cannot_set_everyone_hoist": "你不能設定 @everyone 身分組的獨立顯示位置。",+ "roles.cannot_set_everyone_icon": "@everyone 身分組無法設定圖示。",+ "roles.icon_and_emoji_exclusive": "身分組只能設定圖片圖示或表情符號其中一種。",+ "roles.icon_source_and_icon_exclusive": "身分組圖示只能重新設定或從其他身分組複製,兩者擇一。","roles.invalid_role_id": "無效的身分組 ID:{roleId}。","roles.parse_and_users_or_roles_cannot_be_used_together": "你不能同時使用 `parse` 和 `allowed_mentions.users` 或 `allowed_mentions.roles`。","stickers_and_emojis.custom_emoji_not_found": "找不到自訂表情符號。",diff --git a/packages/errors/src/i18n/weblate/messages.json b/packages/errors/src/i18n/weblate/messages.jsonindex 1d2a0f45c..cb44f1e24 100644--- a/packages/errors/src/i18n/weblate/messages.json+++ b/packages/errors/src/i18n/weblate/messages.json@@ -106,6 +106,7 @@"attachments_and_uploads.file_not_found": "File not found.","attachments_and_uploads.file_size_too_large": "File size is too large. Maximum file size is {maxSize}.","attachments_and_uploads.filename_length_invalid": "Filename must be between {min} and {max} characters.",+ "attachments_and_uploads.image_dimensions_out_of_range": "Image width and height must each be between {min} and {max} pixels.","attachments_and_uploads.image_size_exceeds_limit": "Image size exceeds {maxSize} bytes.","attachments_and_uploads.invalid_file_field_name": "Invalid file field name: {key}. Expected format: `files[N]` where N is a number.","attachments_and_uploads.invalid_image_format": "Invalid image format. Supported extensions: {supportedExtensions}.",@@ -512,6 +513,9 @@"rate_limits.voice_activity_sharing_on_cooldown": "You can only update your voice activity sharing default once every 24 hours. Please try again in {retry_after, plural, one {# second} other {# seconds}}.","roles.cannot_reorder_everyone_role": "You can't reorder the @everyone role.","roles.cannot_set_everyone_hoist": "You can't set hoist position for the @everyone role.",+ "roles.cannot_set_everyone_icon": "The @everyone role can't have an icon.",+ "roles.icon_and_emoji_exclusive": "A role can have an image icon or an emoji, not both.",+ "roles.icon_source_and_icon_exclusive": "Set a role icon or copy one from another role, not both.","roles.invalid_role_id": "Invalid role ID: {roleId}.","roles.parse_and_users_or_roles_cannot_be_used_together": "You can't use `parse` together with `allowed_mentions.users` or `allowed_mentions.roles`.","stickers_and_emojis.custom_emoji_not_found": "Custom emoji wasn't found.",diff --git a/packages/schema/src/domains/admin/AdminSchemas.ts b/packages/schema/src/domains/admin/AdminSchemas.tsindex a9fa4ade9..10b93b02b 100644--- a/packages/schema/src/domains/admin/AdminSchemas.ts+++ b/packages/schema/src/domains/admin/AdminSchemas.ts@@ -1546,6 +1546,8 @@ const AdminGuildRoleSummarySchema = z.object({permissions: PermissionStringType.describe('The role permissions bitfield'),hoist: z.boolean(),mentionable: z.boolean(),+ icon: z.string().nullable().describe('The hash of the role icon image, or null'),+ unicode_emoji: z.string().nullable().describe('The Unicode emoji used as the role icon, or null'),});const AdminLookupGuildSchema = z.object({id: SnowflakeStringType,diff --git a/packages/schema/src/domains/guild/GuildRequestSchemas.ts b/packages/schema/src/domains/guild/GuildRequestSchemas.tsindex db9fcd8a4..a6dc06f4a 100644--- a/packages/schema/src/domains/guild/GuildRequestSchemas.ts+++ b/packages/schema/src/domains/guild/GuildRequestSchemas.ts@@ -13,10 +13,12 @@ import {MAX_TEMP_BAN_DURATION_SECONDS,MIN_TEMP_BAN_DURATION_SECONDS,} from '@fluxer/constants/src/LimitConstants';+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';import {SudoVerificationSchema} from '@fluxer/schema/src/domains/auth/AuthSchemas';import {GuildFeatureSchema} from '@fluxer/schema/src/domains/guild/GuildResponseSchemas';import {TemplateSerializedGuild} from '@fluxer/schema/src/domains/guild/GuildTemplateSchemas';import {VanityURLCodeType} from '@fluxer/schema/src/primitives/ChannelValidators';+import {UnicodeRoleEmojiType} from '@fluxer/schema/src/primitives/EmojiValidators';import {createBase64ImageType} from '@fluxer/schema/src/primitives/FileValidators';import {ContentWarningLevelSchema,@@ -170,22 +172,53 @@ export const MyGuildMemberUpdateRequest = GuildMemberUpdateRequest.omit({roles:export type MyGuildMemberUpdateRequest = z.infer<typeof MyGuildMemberUpdateRequest>;-export const GuildRoleCreateRequest = z.object({- name: createStringType(1, 100).describe('The name of the role (1-100 characters)'),- color: ColorType.default(0x000000).describe('The color of the role as an integer (default: 0)'),- permissions: UnsignedInt64Type.optional().describe('The permissions bitfield for the role'),-});+const RoleIconFields = {+ icon: createBase64ImageType().nullish().describe('Base64 data URI for the role icon image, or null to remove it'),+ unicode_emoji: UnicodeRoleEmojiType.nullish().describe(+ 'A single Unicode emoji to use as the role icon, or null to remove it',+ ),+};++function requireExclusiveRoleIcon(value: {icon?: string | null; unicode_emoji?: string | null}, ctx: z.RefinementCtx) {+ if (value.icon != null && value.unicode_emoji != null) {+ ctx.addIssue({code: 'custom', message: ValidationErrorCodes.ROLE_ICON_AND_EMOJI_EXCLUSIVE, path: ['icon']});+ }+}++export const GuildRoleCreateRequest = z+ .object({+ name: createStringType(1, 100).describe('The name of the role (1-100 characters)'),+ color: ColorType.default(0x000000).describe('The color of the role as an integer (default: 0)'),+ permissions: UnsignedInt64Type.optional().describe('The permissions bitfield for the role'),+ ...RoleIconFields,+ icon_source_role_id: SnowflakeType.optional().describe(+ 'The ID of a role in this community whose icon the new role copies. An image is stored again for the new role',+ ),+ })+ .superRefine((value, ctx) => {+ requireExclusiveRoleIcon(value, ctx);+ if (value.icon_source_role_id !== undefined && (value.icon != null || value.unicode_emoji != null)) {+ ctx.addIssue({+ code: 'custom',+ message: ValidationErrorCodes.ROLE_ICON_SOURCE_AND_ICON_EXCLUSIVE,+ path: ['icon_source_role_id'],+ });+ }+ });export type GuildRoleCreateRequest = z.infer<typeof GuildRoleCreateRequest>;-export const GuildRoleUpdateRequest = z.object({- name: createStringType(1, 100).optional().describe('The name of the role (1-100 characters)'),- color: ColorType.optional().describe('The color of the role as an integer'),- permissions: UnsignedInt64Type.optional().describe('The permissions bitfield for the role'),- hoist: z.boolean().optional().describe('Whether the role should be displayed separately in the member list'),- hoist_position: z.number().int().nullish().describe('The position of the role in the hoisted member list'),- mentionable: z.boolean().optional().describe('Whether the role can be mentioned by anyone'),-});+export const GuildRoleUpdateRequest = z+ .object({+ name: createStringType(1, 100).optional().describe('The name of the role (1-100 characters)'),+ color: ColorType.optional().describe('The color of the role as an integer'),+ permissions: UnsignedInt64Type.optional().describe('The permissions bitfield for the role'),+ hoist: z.boolean().optional().describe('Whether the role should be displayed separately in the member list'),+ hoist_position: z.number().int().nullish().describe('The position of the role in the hoisted member list'),+ mentionable: z.boolean().optional().describe('Whether the role can be mentioned by anyone'),+ ...RoleIconFields,+ })+ .superRefine(requireExclusiveRoleIcon);export type GuildRoleUpdateRequest = z.infer<typeof GuildRoleUpdateRequest>;diff --git a/packages/schema/src/domains/guild/GuildRoleSchemas.ts b/packages/schema/src/domains/guild/GuildRoleSchemas.tsindex 00044a93a..62cfeee8a 100644--- a/packages/schema/src/domains/guild/GuildRoleSchemas.ts+++ b/packages/schema/src/domains/guild/GuildRoleSchemas.ts@@ -13,7 +13,8 @@ export const GuildRoleResponse = z.object({permissions: PermissionStringType.describe('The permissions bitfield for the role'),hoist: z.boolean().describe('Whether this role is displayed separately in the member list'),mentionable: z.boolean().describe('Whether this role can be mentioned by anyone'),- unicode_emoji: z.string().nullish().describe('The unicode emoji for this role'),+ icon: z.string().nullable().describe('The hash of the role icon image, or null'),+ unicode_emoji: z.string().nullable().describe('The Unicode emoji used as the role icon, or null'),});export type GuildRoleResponse = z.infer<typeof GuildRoleResponse>;diff --git a/packages/schema/src/primitives/EmojiValidators.ts b/packages/schema/src/primitives/EmojiValidators.tsindex 1896bffd2..279a3a390 100644--- a/packages/schema/src/primitives/EmojiValidators.ts+++ b/packages/schema/src/primitives/EmojiValidators.ts@@ -1,6 +1,8 @@// SPDX-License-Identifier: AGPL-3.0-or-later+import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';import emojiRegex from 'emoji-regex';+import {z} from 'zod';const EMOJI_REGEX = emojiRegex();const REGIONAL_INDICATOR_START = 0x1f1e6;@@ -26,3 +28,8 @@ export function isValidSingleUnicodeEmoji(value: string): boolean {}return isSingleRegionalIndicator(value);}++export const UnicodeRoleEmojiType = z+ .string()+ .max(64, ValidationErrorCodes.NOT_A_VALID_UNICODE_EMOJI)+ .refine(isValidSingleUnicodeEmoji, ValidationErrorCodes.NOT_A_VALID_UNICODE_EMOJI);diff --git a/packages/schema/src/primitives/tests/EmojiValidators.test.ts b/packages/schema/src/primitives/tests/EmojiValidators.test.tsnew file mode 100644index 000000000..ee3711e92--- /dev/null+++ b/packages/schema/src/primitives/tests/EmojiValidators.test.ts@@ -0,0 +1,47 @@+// SPDX-License-Identifier: AGPL-3.0-or-later++import {ValidationErrorCodes} from '@fluxer/constants/src/ValidationErrorCodes';+import {GuildRoleCreateRequest, GuildRoleUpdateRequest} from '@fluxer/schema/src/domains/guild/GuildRequestSchemas';+import {UnicodeRoleEmojiType} from '@fluxer/schema/src/primitives/EmojiValidators';+import {describe, expect, it} from 'vitest';++const PNG_DATA_URI = 'data:image/png;base64,iVBORw0KGgo=';++describe('UnicodeRoleEmojiType', () => {+ it('accepts a single emoji, a skin tone variant and a ZWJ sequence', () => {+ for (const value of ['🔥', '🛡️', '👍🏽', '👩💻', '🏳️🌈']) {+ expect(UnicodeRoleEmojiType.safeParse(value).success, value).toBe(true);+ }+ });++ it('rejects text, two emoji and long strings', () => {+ for (const value of ['abc', '🔥🔥', '', '🔥 ', '🔥'.repeat(40)]) {+ const result = UnicodeRoleEmojiType.safeParse(value);+ expect(result.success, value).toBe(false);+ expect(result.error?.issues[0]?.message).toBe(ValidationErrorCodes.NOT_A_VALID_UNICODE_EMOJI);+ }+ });+});++describe('role icon request fields', () => {+ for (const [name, schema, base] of [+ ['create', GuildRoleCreateRequest, {name: 'Mods'}],+ ['update', GuildRoleUpdateRequest, {}],+ ] as const) {+ it(`${name} accepts null and absent icon fields`, () => {+ expect(schema.safeParse(base).success).toBe(true);+ expect(schema.safeParse({...base, icon: null, unicode_emoji: null}).success).toBe(true);+ expect(schema.safeParse({...base, icon: PNG_DATA_URI, unicode_emoji: null}).success).toBe(true);+ expect(schema.safeParse({...base, icon: null, unicode_emoji: '🔥'}).success).toBe(true);+ });++ it(`${name} rejects an image and an emoji together`, () => {+ const result = schema.safeParse({...base, icon: PNG_DATA_URI, unicode_emoji: '🔥'});+ expect(result.success).toBe(false);+ expect(result.error?.issues[0]).toMatchObject({+ message: ValidationErrorCodes.ROLE_ICON_AND_EMOJI_EXCLUSIVE,+ path: ['icon'],+ });+ });+ }+});