mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
✨ Render node strings
This commit is contained in:
8
packages/cli/src/TranslationHelpers.ts
Normal file
8
packages/cli/src/TranslationHelpers.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { join, dirname } from 'path';
|
||||
|
||||
/**
|
||||
* Retrieve the path to the translation file for a node.
|
||||
*/
|
||||
export function getTranslationPath(nodeSourcePath: string, language: string): string {
|
||||
return join(dirname(nodeSourcePath), 'translations', `${language}.js`);
|
||||
}
|
||||
Reference in New Issue
Block a user