首页 > 解决方案 > 如何从 resx 文件中获取数据并将 xlf 文件放入 angilar

问题描述

我有数据值格式的 resx 文件。我需要获取这个值并根据数据将其放入 xlf 文件中。

Resx 文件格式

  <data name="familyMembersTravelling" xml:space="preserve">
    <value>Family Members Travelling</value>
  </data>

XLF 文件格式:

      <trans-unit id="manageaccountcomponent_success_userunlocked" datatype="html">
        <source>User has been unlocked successfully</source>
        <target>User has been unlocked successfully</target>
        <context-group purpose="location">
          <context context-type="sourcefile">app/app.component.html</context>
          <context context-type="linenumber">22</context>
        </context-group>
      </trans-unit>

标签: angularresourcedictionaryresx

解决方案


推荐阅读