A platform for community discussion. Free, open, simple.
UX: reposition and restyle translation features to improve experience (#37821)
Kris749d8f432504
diff --git a/app/assets/stylesheets/common/base/compose.scss b/app/assets/stylesheets/common/base/compose.scssindex 05f5da96992..cdb5369e1e1 100644--- a/app/assets/stylesheets/common/base/compose.scss+++ b/app/assets/stylesheets/common/base/compose.scss@@ -201,9 +201,16 @@ html.composer-open:not(.has-full-page-chat) {align-items: center;min-width: 0;white-space: nowrap;+ gap: var(--space-2);- .d-icon {- color: var(--primary-medium);+ .composer-actions {+ .select-kit-header {+ border-color: var(--primary-low-mid);+ }++ .d-icon {+ color: var(--primary-medium);+ }}@include viewport.until(sm) {diff --git a/app/assets/stylesheets/common/base/topic-footer.scss b/app/assets/stylesheets/common/base/topic-footer.scssindex f8687c7293c..11e4e40765c 100644--- a/app/assets/stylesheets/common/base/topic-footer.scss+++ b/app/assets/stylesheets/common/base/topic-footer.scss@@ -118,6 +118,8 @@}.container.posts .topic-navigation {+ --border-offset: -1px;+@media screen and (width <= 924px) {// at 925px viewport width and above the timeline is visible (see topic-navigation.js)display: flex;@@ -126,6 +128,7 @@grid-area: posts;grid-row: 3;width: auto;+ margin-top: var(--border-offset);.btn-toggle-localized-content,.topic-admin-menu-trigger {@@ -134,8 +137,8 @@border: 1px solid var(--primary-low);}- .btn-toggle-localized-content {- height: 100%;+ .topic-admin-menu-trigger + .btn-toggle-localized-content {+ margin-left: var(--border-offset);}}}diff --git a/app/assets/stylesheets/common/base/topic.scss b/app/assets/stylesheets/common/base/topic.scssindex 2673b791360..5261890722d 100644--- a/app/assets/stylesheets/common/base/topic.scss+++ b/app/assets/stylesheets/common/base/topic.scss@@ -30,16 +30,8 @@overflow-anchor: none;.btn-toggle-localized-content.--active {- background-image: linear-gradient(- to bottom,- rgb(var(--primary-rgb), 0.6) 100%,- rgb(var(--primary-rgb), 0.6) 100%- );- color: var(--d-button-default-text-color--hover);-- .d-icon {- color: var(--d-button-default-text-color--hover);- }+ --d-button-default-icon-color: var(--tertiary);+ --d-button-default-icon-color--hover: var(--primary-low);}}diff --git a/app/assets/stylesheets/common/components/post-translations.scss b/app/assets/stylesheets/common/components/post-translations.scssindex 760bf2b34f0..abfb2771ab7 100644--- a/app/assets/stylesheets/common/components/post-translations.scss+++ b/app/assets/stylesheets/common/components/post-translations.scss@@ -14,10 +14,9 @@}.post-language-selector-trigger {- margin-left: var(--space-2);-.d-button-label {margin-left: var(--space-1);text-transform: uppercase;+ color: var(--primary-high);}}diff --git a/app/assets/stylesheets/common/d-editor.scss b/app/assets/stylesheets/common/d-editor.scssindex e251dcc84a2..727bd325ca2 100644--- a/app/assets/stylesheets/common/d-editor.scss+++ b/app/assets/stylesheets/common/d-editor.scss@@ -443,7 +443,13 @@}.translation-selector-dropdown {- margin-bottom: 0.5rem;+ .select-kit-header {+ --d-button-default-bg-color: transparent;+ --d-button-default-bg-color--hover: var(--primary-low);+ --d-button-default-text-color--hover: var(--primary-high);+ --d-button-default-icon-color--hover: var(--primary-high);+ border: 1px solid var(--primary-low-mid);+ }.select-kit-body {max-height: 300px;diff --git a/app/assets/stylesheets/common/topic-timeline.scss b/app/assets/stylesheets/common/topic-timeline.scssindex a9f33264693..bea82d2b327 100644--- a/app/assets/stylesheets/common/topic-timeline.scss+++ b/app/assets/stylesheets/common/topic-timeline.scss@@ -204,6 +204,8 @@}.timeline-controls {+ display: flex;+ gap: var(--space-2);margin-bottom: var(--space-4);}diff --git a/config/locales/client.en.yml b/config/locales/client.en.ymlindex dbed072c220..36912042178 100644--- a/config/locales/client.en.yml+++ b/config/locales/client.en.yml@@ -5838,6 +5838,8 @@ en:toggle_localized:translated: "Page is machine-translated. Click to view original."not_translated: "Page is not translated. Click to translate."+ translations_enabled: "Translations enabled"+ translations_disabled: "Translations disabled"language_switcher:title: "Change site language"diff --git a/frontend/discourse/app/components/composer-action-title.gjs b/frontend/discourse/app/components/composer-action-title.gjsindex de07b2c6f8b..991ee90eff3 100644--- a/frontend/discourse/app/components/composer-action-title.gjs+++ b/frontend/discourse/app/components/composer-action-title.gjs@@ -70,17 +70,14 @@ export default class ComposerActionTitle extends Component {}}- get showPostLanguageSelector() {+ @discourseComputed("action")+ showPostLanguageSelector(action) {const allowedActions = [CREATE_TOPIC, EDIT, REPLY];- if (+ return (this.currentUser &&this.siteSettings.content_localization_enabled &&- allowedActions.includes(this.model.action)- ) {- return true;- }-- return false;+ allowedActions.includes(action)+ );}_formatEditUserPost(userAvatar, userLink, postLink, originalUser) {diff --git a/frontend/discourse/app/components/composer-container.gjs b/frontend/discourse/app/components/composer-container.gjsindex e7fff462a53..ffa12201594 100644--- a/frontend/discourse/app/components/composer-container.gjs+++ b/frontend/discourse/app/components/composer-container.gjs@@ -2,6 +2,7 @@ import Component from "@glimmer/component";import { Input } from "@ember/component";import { fn, hash } from "@ember/helper";import { on } from "@ember/modifier";+import { action } from "@ember/object";import { cancel } from "@ember/runloop";import { service } from "@ember/service";import { htmlSafe } from "@ember/template";@@ -27,15 +28,19 @@ import lazyHash from "discourse/helpers/lazy-hash";import loadingSpinner from "discourse/helpers/loading-spinner";import discourseDebounce from "discourse/lib/debounce";import { bind } from "discourse/lib/decorators";+import PostLocalization from "discourse/models/post-localization";import grippieDragResize from "discourse/modifiers/grippie-drag-resize";import CategoryChooser from "discourse/select-kit/components/category-chooser";+import DropdownSelectBox from "discourse/select-kit/components/dropdown-select-box";import MiniTagChooser from "discourse/select-kit/components/mini-tag-chooser";import { and, or } from "discourse/truth-helpers";import { i18n } from "discourse-i18n";export default class ComposerContainer extends Component {@service composer;+ @service languageNameLookup;@service site;+ @service siteSettings;@service appEvents;@service keyValueStore;@@ -44,6 +49,53 @@ export default class ComposerContainer extends Component {cancel(this.composerResizeDebounceHandler);}+ get availableContentLocalizationLocales() {+ const originalPostLocale = this.composer.model?.post?.locale;++ return this.siteSettings.available_content_localization_locales+ .filter(({ value }) => value !== originalPostLocale)+ .map(({ value }) => ({+ name: this.languageNameLookup.getLanguageName(value),+ value,+ }));+ }++ @action+ async updateSelectedTranslationLocale(locale) {+ this.composer.selectedTranslationLocale = locale;++ let currentLocalization;+ try {+ const { post_localizations } = await PostLocalization.find(+ this.composer.model.post.id+ );+ currentLocalization = post_localizations.find(+ (localization) => localization.locale === locale+ );+ } catch {}++ if (currentLocalization) {+ this.composer.model.setProperties({+ reply: currentLocalization.raw,+ originalText: currentLocalization.raw,+ });++ if (currentLocalization?.topic_localization) {+ this.composer.model.setProperties({+ title: currentLocalization.topic_localization.title,+ originalTitle: currentLocalization.topic_localization.title,+ });+ }+ } else {+ this.composer.model.setProperties({+ reply: "",+ title: "",+ originalText: "",+ originalTitle: "",+ });+ }+ }+@bindonResizeDragStart() {this.appEvents.trigger("composer:resize-started");@@ -154,6 +206,25 @@ export default class ComposerContainer extends Component {@canUnlistTopic={{this.composer.canUnlistTopic}}/>+ {{#if this.composer.showTranslationSelector}}+ <DropdownSelectBox+ @nameProperty="name"+ @valueProperty="value"+ @value={{this.composer.selectedTranslationLocale}}+ @content={{this.availableContentLocalizationLocales}}+ @onChange={{this.updateSelectedTranslationLocale}}+ @options={{hash+ icon="language"+ showCaret=true+ filterable=true+ disabled=this.composer.loading+ placement="bottom-start"+ translatedNone=(i18n "composer.translations.select")+ }}+ class="translation-selector-dropdown btn-small"+ />+ {{/if}}+<PluginOutlet@name="composer-action-after"@outletArgs={{lazyHash model=this.composer.model}}diff --git a/frontend/discourse/app/components/d-editor-original-translation-preview.gjs b/frontend/discourse/app/components/d-editor-original-translation-preview.gjsindex cb099d8b24c..086fd67e036 100644--- a/frontend/discourse/app/components/d-editor-original-translation-preview.gjs+++ b/frontend/discourse/app/components/d-editor-original-translation-preview.gjs@@ -39,9 +39,13 @@ export default class DEditorOriginalTranslationPreview extends Component {<span class="d-editor-translation-preview-header__title">{{#if this.showOriginal}}{{i18n "composer.translations.original_content"}}- <span class="d-editor-translation-preview-wrapper__original-locale">- {{this.originalLocale}}- </span>+ {{#if this.originalLocale}}+ <span+ class="d-editor-translation-preview-wrapper__original-locale"+ >+ {{this.originalLocale}}+ </span>+ {{/if}}<div class="d-editor-translation-preview-header__raw-toggle"><DToggleSwitch@state={{this.showRawMarkdown}}diff --git a/frontend/discourse/app/components/post-language-selector.gjs b/frontend/discourse/app/components/post-language-selector.gjsindex 27b25f408b0..1ccaf38b3cd 100644--- a/frontend/discourse/app/components/post-language-selector.gjs+++ b/frontend/discourse/app/components/post-language-selector.gjs@@ -43,11 +43,11 @@ export default class PostLanguageSelector extends Component {<DMenu@identifier="post-language-selector"@title={{i18n "post.localizations.post_language_selector.title"}}- @icon="globe"+ @icon="language"@label={{this.selectedLanguage}}@modalForMobile={{true}}@onRegisterApi={{this.onRegisterApi}}- @class="btn-transparent btn-small post-language-selector"+ @class="btn-transparent post-language-selector"><:content><DropdownMenu as |dropdown|>diff --git a/frontend/discourse/app/components/post-translation-editor.gjs b/frontend/discourse/app/components/post-translation-editor.gjsindex 4728b0de529..55147c4ffab 100644--- a/frontend/discourse/app/components/post-translation-editor.gjs+++ b/frontend/discourse/app/components/post-translation-editor.gjs@@ -1,5 +1,4 @@import Component from "@glimmer/component";-import { hash } from "@ember/helper";import { action } from "@ember/object";import didInsert from "@ember/render-modifiers/modifiers/did-insert";import willDestroy from "@ember/render-modifiers/modifiers/will-destroy";@@ -9,13 +8,11 @@ import TextField from "discourse/components/text-field";import lazyHash from "discourse/helpers/lazy-hash";import { popupAjaxError } from "discourse/lib/ajax-error";import PostLocalization from "discourse/models/post-localization";-import DropdownSelectBox from "discourse/select-kit/components/dropdown-select-box";import { i18n } from "discourse-i18n";export default class PostTranslationEditor extends Component {@service composer;@service siteSettings;- @service languageNameLookup;constructor() {super(...arguments);@@ -61,50 +58,11 @@ export default class PostTranslationEditor extends Component {}}- get availableContentLocalizationLocales() {- const originalPostLocale = this.composer.model?.post?.locale;-- return this.siteSettings.available_content_localization_locales- .filter(({ value }) => value !== originalPostLocale)- .map(({ value }) => ({- name: this.languageNameLookup.getLanguageName(value),- value,- }));- }-@actionhandleInput(event) {this.composer.model.set("reply", event.target.value);}- @action- async updateSelectedLocale(locale) {- this.composer.selectedTranslationLocale = locale;-- const currentLocalization = await this.findCurrentLocalization();-- if (currentLocalization) {- this.composer.model.setProperties({- reply: currentLocalization.raw,- originalText: currentLocalization.raw,- });-- if (currentLocalization?.topic_localization) {- this.composer.model.setProperties({- title: currentLocalization.topic_localization.title,- originalTitle: currentLocalization.topic_localization.title,- });- }- } else {- this.composer.model.setProperties({- reply: "",- title: "",- originalText: "",- originalTitle: "",- });- }- }-@actionsetupUploads(element) {if (this.args.uppyComposerUpload && this.composer.allowUpload) {@@ -122,25 +80,6 @@ export default class PostTranslationEditor extends Component {}<template>- <div>- <DropdownSelectBox- @nameProperty="name"- @valueProperty="value"- @value={{this.composer.selectedTranslationLocale}}- @content={{this.availableContentLocalizationLocales}}- @onChange={{this.updateSelectedLocale}}- @options={{hash- icon="globe"- showCaret=true- filterable=true- disabled=this.composer.loading- placement="bottom-start"- translatedNone=(i18n "composer.translations.select")- }}- class="translation-selector-dropdown btn-small"- />- </div>-{{#if this.composer.model.post.firstPost}}<div class="topic-title-translator title-and-category with-preview"><div class="title-input-column">diff --git a/frontend/discourse/app/components/post/menu/buttons/add-translation.gjs b/frontend/discourse/app/components/post/menu/buttons/add-translation.gjsindex ae60fc1dcf7..e08e58f99b5 100644--- a/frontend/discourse/app/components/post/menu/buttons/add-translation.gjs+++ b/frontend/discourse/app/components/post/menu/buttons/add-translation.gjs@@ -80,7 +80,7 @@ export default class PostMenuAddTranslationButton extends Component {@identifier="post-action-menu-edit-translations"class="update-translations-menu"@title={{this.addTranslationsLabel}}- @icon="discourse-add-translation"+ @icon="language"@onRegisterApi={{this.onRegisterApi}}@arrow={{false}}>diff --git a/frontend/discourse/app/components/topic-localized-content-toggle.gjs b/frontend/discourse/app/components/topic-localized-content-toggle.gjsindex 3a154b9b833..cf0e702d7d8 100644--- a/frontend/discourse/app/components/topic-localized-content-toggle.gjs+++ b/frontend/discourse/app/components/topic-localized-content-toggle.gjs@@ -5,12 +5,14 @@ import { service } from "@ember/service";import DButton from "discourse/components/d-button";import concatClass from "discourse/helpers/concat-class";import cookie, { removeCookie } from "discourse/lib/cookie";+import { i18n } from "discourse-i18n";const SHOW_ORIGINAL_COOKIE = "content-localization-show-original";const SHOW_ORIGINAL_COOKIE_EXPIRY = 30;export default class TopicLocalizedContentToggle extends Component {@service router;+ @service toasts;@tracked showingOriginal = false;@@ -30,6 +32,10 @@ export default class TopicLocalizedContentToggle extends Component {});}+ const toastKey = this.showingOriginal+ ? "content_localization.toggle_localized.translations_enabled"+ : "content_localization.toggle_localized.translations_disabled";+const postStream = this.args.topic?.postStream;if (postStream) {const currentURL = this.router.currentURL;@@ -43,6 +49,11 @@ export default class TopicLocalizedContentToggle extends Component {this.router.replaceWith(currentURL);}}++ this.toasts.success({+ duration: "short",+ data: { message: i18n(toastKey) },+ });}get title() {diff --git a/frontend/discourse/app/components/topic-timeline/container.gjs b/frontend/discourse/app/components/topic-timeline/container.gjsindex 8f1eaea33a9..e284662f2dd 100644--- a/frontend/discourse/app/components/topic-timeline/container.gjs+++ b/frontend/discourse/app/components/topic-timeline/container.gjs@@ -10,6 +10,7 @@ import DButton from "discourse/components/d-button";import PluginOutlet from "discourse/components/plugin-outlet";import { actionDescriptionHtml } from "discourse/components/post-action-description";import TopicAdminMenu from "discourse/components/topic-admin-menu";+import TopicLocalizedContentToggle from "discourse/components/topic-localized-content-toggle";import UserTip from "discourse/components/user-tip";import ageWithTooltip from "discourse/helpers/age-with-tooltip";import categoryLink from "discourse/helpers/category-link";@@ -162,6 +163,13 @@ export default class TopicTimelineScrollArea extends Component {return this.args.model.details?.can_create_post;}+ get showTimelineControls() {+ return (+ !this.args.fullscreen &&+ (this.currentUser || this.args.model.has_localized_content)+ );+ }+get topicTitle() {return htmlSafe(this.site.mobileView ? this.args.model.fancyTitle : "");}@@ -535,7 +543,7 @@ export default class TopicTimelineScrollArea extends Component {</div>{{/if}}- {{#if (and (not @fullscreen) this.currentUser)}}+ {{#if this.showTimelineControls}}<div class="timeline-controls"><PluginOutlet@name="timeline-controls-before"@@ -558,6 +566,10 @@ export default class TopicTimelineScrollArea extends Component {@convertToPublicTopic={{@convertToPublicTopic}}@convertToPrivateMessage={{@convertToPrivateMessage}}/>++ {{#if @model.has_localized_content}}+ <TopicLocalizedContentToggle @topic={{@model}} />+ {{/if}}</div>{{/if}}diff --git a/frontend/discourse/app/services/composer.js b/frontend/discourse/app/services/composer.jsindex dbe3df01cab..bd563c676c2 100644--- a/frontend/discourse/app/services/composer.js+++ b/frontend/discourse/app/services/composer.js@@ -161,6 +161,14 @@ export default class ComposerService extends Service {return this.showPreview && this.allowPreview;}+ @computed("model.action", "model.post.can_localize_post")+ get showTranslationSelector() {+ return (+ this.model?.get("action") === "add_translation" &&+ this.model?.get("post.can_localize_post")+ );+ }+@observes("showPreview", "allowPreview")previewVisibilityChanged() {this.appEvents.trigger("composer:preview-toggled", this.isPreviewVisible);@@ -1426,9 +1434,7 @@ export default class ComposerService extends Service {this.set("hijackPreview", opts.hijackPreview);}- if (opts.selectedTranslationLocale) {- this.selectedTranslationLocale = opts.selectedTranslationLocale;- }+ this.selectedTranslationLocale = opts.selectedTranslationLocale ?? null;// Scope the categories drop down to the category we opened the composer with.if (opts.categoryId && !opts.disableScopedCategory) {diff --git a/frontend/discourse/app/templates/topic.gjs b/frontend/discourse/app/templates/topic.gjsindex 5bfcac1bd94..596c66690ac 100644--- a/frontend/discourse/app/templates/topic.gjs+++ b/frontend/discourse/app/templates/topic.gjs@@ -332,10 +332,6 @@ export default <template>}}/>- {{#if @controller.model.has_localized_content}}- <TopicLocalizedContentToggle @topic={{@controller.model}} />- {{/if}}-{{#if info.renderTimeline}}<TopicTimeline@info={{info}}@@ -397,6 +393,9 @@ export default <template>@convertToPublicTopic={{@controller.convertToPublicTopic}}@convertToPrivateMessage={{@controller.convertToPrivateMessage}}/>+ {{#if @controller.model.has_localized_content}}+ <TopicLocalizedContentToggle @topic={{@controller.model}} />+ {{/if}}</TopicProgress>{{/if}}diff --git a/spec/system/content_localization_language_switcher_spec.rb b/spec/system/content_localization_language_switcher_spec.rbindex 86fe3ae2f71..a237bc354c8 100644--- a/spec/system/content_localization_language_switcher_spec.rb+++ b/spec/system/content_localization_language_switcher_spec.rb@@ -15,7 +15,15 @@ describe "Content localization language switcher", type: :system do:post,topic:,locale: "en",- raw: "The masterpiece isn’t just about military strategy",+ raw: "The masterpiece isn't just about military strategy",+ )+ end+ fab!(:post_2) do+ Fabricate(+ :post,+ topic:,+ locale: "en",+ raw: "The greatest victory is that which requires no battle",)enddiff --git a/vendor/assets/svg-icons/fontawesome/solid.svg b/vendor/assets/svg-icons/fontawesome/solid.svgindex c233fb45291..138cb945486 100644--- a/vendor/assets/svg-icons/fontawesome/solid.svg+++ b/vendor/assets/svg-icons/fontawesome/solid.svg@@ -659,8 +659,8 @@ Copyright 2024 Fonticons, Inc.<symbol id="plug-circle-exclamation" viewBox="0 0 576 512"><path d="M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2c12.3-2.5 24.1-6.4 35.1-11.5c-2.1-10.8-3.1-21.9-3.1-33.3c0-80.3 53.8-148 127.3-169.2c.5-2.2 .7-4.5 .7-6.8c0-17.7-14.3-32-32-32L32 160zM432 512a144 144 0 1 0 0-288 144 144 0 1 0 0 288zm0-96a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm0-144c8.8 0 16 7.2 16 16l0 80c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-80c0-8.8 7.2-16 16-16z"/></symbol>-<symbol id="language" viewBox="0 0 640 512">-<path d="M0 128C0 92.7 28.7 64 64 64l192 0 48 0 16 0 256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64l-256 0-16 0-48 0L64 448c-35.3 0-64-28.7-64-64L0 128zm320 0l0 256 256 0 0-256-256 0zM178.3 175.9c-3.2-7.2-10.4-11.9-18.3-11.9s-15.1 4.7-18.3 11.9l-64 144c-4.5 10.1 .1 21.9 10.2 26.4s21.9-.1 26.4-10.2l8.9-20.1 73.6 0 8.9 20.1c4.5 10.1 16.3 14.6 26.4 10.2s14.6-16.3 10.2-26.4l-64-144zM160 233.2L179 276l-38 0 19-42.8zM448 164c11 0 20 9 20 20l0 4 44 0 16 0c11 0 20 9 20 20s-9 20-20 20l-2 0-1.6 4.5c-8.9 24.4-22.4 46.6-39.6 65.4c.9 .6 1.8 1.1 2.7 1.6l18.9 11.3c9.5 5.7 12.5 18 6.9 27.4s-18 12.5-27.4 6.9l-18.9-11.3c-4.5-2.7-8.8-5.5-13.1-8.5c-10.6 7.5-21.9 14-34 19.4l-3.6 1.6c-10.1 4.5-21.9-.1-26.4-10.2s.1-21.9 10.2-26.4l3.6-1.6c6.4-2.9 12.6-6.1 18.5-9.8l-12.2-12.2c-7.8-7.8-7.8-20.5 0-28.3s20.5-7.8 28.3 0l14.6 14.6 .5 .5c12.4-13.1 22.5-28.3 29.8-45L448 228l-72 0c-11 0-20-9-20-20s9-20 20-20l52 0 0-4c0-11 9-20 20-20z"/>+<symbol id="language" viewBox="0 0 576 512">+<!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M160 0c17.7 0 32 14.3 32 32l0 32 128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-9.6 0-8.4 23.1c-16.4 45.2-41.1 86.5-72.2 122 14.2 8.8 29 16.6 44.4 23.5l50.4 22.4 62.2-140c5.1-11.6 16.6-19 29.2-19s24.1 7.4 29.2 19l128 288c7.2 16.2-.1 35.1-16.2 42.2s-35.1-.1-42.2-16.2l-20-45-157.5 0-20 45c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2l39.8-89.5-50.4-22.4c-23-10.2-45-22.4-65.8-36.4-21.3 17.2-44.6 32.2-69.5 44.7L78.3 380.6c-15.8 7.9-35 1.5-42.9-14.3s-1.5-35 14.3-42.9l34.5-17.3c16.3-8.2 31.8-17.7 46.4-28.3-13.8-12.7-26.8-26.4-38.9-40.9L81.6 224.7c-11.3-13.6-9.5-33.8 4.1-45.1s33.8-9.5 45.1 4.1l10.2 12.2c11.5 13.9 24.1 26.8 37.4 38.7 27.5-30.4 49.2-66.1 63.5-105.4l.5-1.2-210.3 0C14.3 128 0 113.7 0 96S14.3 64 32 64l96 0 0-32c0-17.7 14.3-32 32-32zM416 270.8L365.7 384 466.3 384 416 270.8z"/></symbol><symbol id="backward-fast" viewBox="0 0 512 512"><path d="M493.6 445c-11.2 5.3-24.5 3.6-34.1-4.4L288 297.7 288 416c0 12.4-7.2 23.7-18.4 29s-24.5 3.6-34.1-4.4L64 297.7 64 416c0 17.7-14.3 32-32 32s-32-14.3-32-32L0 96C0 78.3 14.3 64 32 64s32 14.3 32 32l0 118.3L235.5 71.4c9.5-7.9 22.8-9.7 34.1-4.4S288 83.6 288 96l0 118.3L459.5 71.4c9.5-7.9 22.8-9.7 34.1-4.4S512 83.6 512 96l0 320c0 12.4-7.2 23.7-18.4 29z"/>