I’m building a public Community plugin that integrates with POEditor. I need a reliable way to identify the current Figma file (file key/ID) so I can associate exported/imported translations with the correct file. This is important because text node IDs are not globally unique across files, so the same node ID can exist in different files.
From the docs, it looks like figma.fileKey is only available to private plugins via enablePrivatePluginApi. Is there any supported way for a public plugin to access the current file key/ID (or another stable file identifier)?
If this isn’t possible today, what’s the recommended best practice for public plugins that need to associate data with a specific file?
Details:
-
Plugin type: public (intended for Community)
-
Use case: linking file -> POEditor project
-
What I’ve tried: figma.fileKey (undefined in a public plugin)
Ideal outcome:
-
Send POEditor the text node id (or name) plus a stable file identifier as context.
Thanks!
