mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-04-21 07:20:03 -04:00
* chore: validate and normalize translations in addition to src strings * fix: globalize lat/lng/acc in LocationPicker * refactor: extract language picker into component * refactor: globalized text * feat: added a script to i18ncli called "checkify" that generates localization files prepended with a checkmark to help see strings that are not globalized * fix: localize date formatting (closes #1622) Closes #2102
17 lines
445 B
TypeScript
17 lines
445 B
TypeScript
// Wrapper around things that should only be visible in debug mode
|
|
import { View } from "components/styledComponents";
|
|
import React, { PropsWithChildren } from "react";
|
|
import { useDebugMode } from "sharedHooks";
|
|
|
|
const Debug = ( { children }: PropsWithChildren ) => {
|
|
const { isDebug } = useDebugMode( );
|
|
if ( !isDebug ) return null;
|
|
return (
|
|
<View className="bg-deeppink">
|
|
{children}
|
|
</View>
|
|
);
|
|
};
|
|
|
|
export default Debug;
|