Skip to content

Commit 8584158

Browse files
authored
Merge pull request #2 from session-foundation/fix/extra-space-desktop-constant
fix: extra space desktop joined crowdinLocales
2 parents e6461cd + b6536c8 commit 8584158

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crowdin/generate_desktop_strings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def convert_non_translatable_strings_to_type_script(input_file, output_path, exp
127127
# Output the file in the desired format
128128
Path(output_path).parent.mkdir(parents=True, exist_ok=True)
129129

130-
joined_exported_locales = ", ".join(f"\n '{locale}'" for locale in exported_locales)
130+
joined_exported_locales = ",".join(f"\n '{locale}'" for locale in exported_locales)
131131
joined_rtl_locales = ", ".join(f"'{locale}'" for locale in rtl_locales)
132132

133133
with open(output_path, 'w', encoding='utf-8') as file:
@@ -143,7 +143,7 @@ def convert_non_translatable_strings_to_type_script(input_file, output_path, exp
143143
file.write('\n')
144144
file.write(f"export const crowdinLocales = [{joined_exported_locales},\n] as const;\n")
145145
file.write('\n')
146-
file.write(f"export type CrowdinLocale = (typeof crowdinLocales)[number];\n")
146+
file.write("export type CrowdinLocale = (typeof crowdinLocales)[number];\n")
147147
file.write('\n')
148148

149149

0 commit comments

Comments
 (0)