@@ -7,7 +7,7 @@ import getSimplePreview from './getSimplePreview';
77import parser from './parser' ;
88import serializer from './serializer' ;
99
10- import type { FluentMessage } from './types ' ;
10+ import type { Entry } from '@fluent/syntax ' ;
1111import type { Locale } from 'core/locale' ;
1212
1313type SyntaxType = 'simple' | 'rich' | 'complex' | '' ;
@@ -60,7 +60,7 @@ export function getRichFromComplex(
6060 original : string ,
6161 initial : string ,
6262 locale : Locale ,
63- ) : [ FluentMessage , FluentMessage ] {
63+ ) : [ Entry , Entry ] {
6464 let translationContent = parser . parseEntry ( current ) ;
6565
6666 // If the parsed content is invalid, create an empty message instead.
@@ -87,7 +87,7 @@ export function getRichFromComplex(
8787}
8888
8989export function getComplexFromRich (
90- current : FluentMessage ,
90+ current : Entry ,
9191 original : string ,
9292 initial : string ,
9393 locale : Locale ,
@@ -114,21 +114,21 @@ export function getComplexFromRich(
114114 *
115115 * @param {string } fromSyntax Syntax of the current translation.
116116 * @param {string } toSyntax Expected syntax of the output.
117- * @param {string | FluentMessage } current Current content of the translation, as entered by the user.
117+ * @param {string | Entry } current Current content of the translation, as entered by the user.
118118 * @param {string } original Original string of the entity.
119119 * @param {string } initial Currently active translation, if any.
120120 * @param {Locale } locale Current locale.
121121 *
122- * @returns {[ string | FluentMessage , string ] } The converted current translation and initial translation.
122+ * @returns {[ string | Entry , string ] } The converted current translation and initial translation.
123123 */
124124export default function convertSyntax (
125125 fromSyntax : SyntaxType ,
126126 toSyntax : SyntaxType ,
127- current : string | FluentMessage ,
127+ current : string | Entry ,
128128 original : string ,
129129 initial : string ,
130130 locale : Locale ,
131- ) : [ FluentMessage , FluentMessage ] | [ string , string ] {
131+ ) : [ Entry , Entry ] | [ string , string ] {
132132 if (
133133 fromSyntax === 'complex' &&
134134 toSyntax === 'simple' &&
0 commit comments