@Override
		protected void doRun(TaskMonitor monitor) {
			monitor.initialize(dataLocations.size());
			for (ProgramLocation progLoc : dataLocations) {
				Data data = DataUtilities.getDataAtLocation(progLoc);
				TRANSLATION.setShowTranslated(data, !TRANSLATION.isShowTranslated(data));
			}
		}
Action for toggling whether or not to display translated strings or the original string.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/string/translate/ToggleShowTranslationAction.java