Page 30138 Shpfy Languages

Shopify Connector, Microsoft.Integration.Shopify

src/Apps/W1/Shopify/App/src/Translations/Pages/ShpfyLanguages.Page.al64 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.Integration.Shopify;page 30138 "Shpfy Languages"{    ApplicationArea = All;    Caption = 'Shopify Languages';    PageType = List;    SourceTable = "Shpfy Language";    UsageCategory = None;    InsertAllowed = false;    DeleteAllowed = false;    layout    {        area(content)        {            repeater(General)            {                field(Locale; Rec.Locale)                {                    ToolTip = 'Specifies the shop locale to sync translations.';                }                field("Language Code"; Rec."Language Code")                {                    ToolTip = 'Specifies the language code for the locale.';                }                field("Sync Translations"; Rec."Sync Translations")                {                    ToolTip = 'Specifies if the translations should be synced for this locale.';                }            }        }    }    actions    {        area(processing)        {            action(Refresh)            {                ApplicationArea = All;                Caption = 'Refresh';                Promoted = true;                PromotedOnly = true;                PromotedCategory = Process;                Image = Refresh;                ToolTip = 'Refreshes the list of Shopify languages.';                trigger OnAction()                var                    ShpfyTranslationAPI: Codeunit "Shpfy Translation API";                begin                    ShpfyTranslationAPI.PullLanguages(CopyStr(Rec.GetFilter("Shop Code"), 1, 20));                end;            }        }    }}