mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
fixed a few translations
This commit is contained in:
parent
fdf8086afa
commit
48f5f53f22
@ -195,6 +195,10 @@ const Strings = [
|
|||||||
connect: 'Connect With People',
|
connect: 'Connect With People',
|
||||||
start: 'Start a Conversation',
|
start: 'Start a Conversation',
|
||||||
started: 'Get Started',
|
started: 'Get Started',
|
||||||
|
|
||||||
|
deleteMessage: 'Delete Message',
|
||||||
|
blockMessage: 'Block Message',
|
||||||
|
reportMessage: 'Report Message',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'fr',
|
languageCode: 'fr',
|
||||||
@ -386,6 +390,10 @@ const Strings = [
|
|||||||
connect: 'Se Connecter Avec d\'Autres',
|
connect: 'Se Connecter Avec d\'Autres',
|
||||||
start: 'Créer une Conversation',
|
start: 'Créer une Conversation',
|
||||||
started: 'Commencer',
|
started: 'Commencer',
|
||||||
|
|
||||||
|
deleteMessage: 'Supprimer le Message',
|
||||||
|
blockMessage: 'Bloquer le Message',
|
||||||
|
reportMessage: 'Signaler le Message',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'es',
|
languageCode: 'es',
|
||||||
@ -577,6 +585,10 @@ const Strings = [
|
|||||||
connect: 'Conéctate Con Gente',
|
connect: 'Conéctate Con Gente',
|
||||||
start: 'Iniciar una Conversación',
|
start: 'Iniciar una Conversación',
|
||||||
started: 'Empezar',
|
started: 'Empezar',
|
||||||
|
|
||||||
|
deleteMessage: 'Borrar Mensaje',
|
||||||
|
blockMessage: 'Bloquear Mensaje',
|
||||||
|
reportMessage: 'Reportar Mensaje',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'de',
|
languageCode: 'de',
|
||||||
@ -768,6 +780,10 @@ const Strings = [
|
|||||||
connect: 'Verbinde dich mit Menschen',
|
connect: 'Verbinde dich mit Menschen',
|
||||||
start: 'Eine Konversation Beginnen',
|
start: 'Eine Konversation Beginnen',
|
||||||
started: 'Loslegen',
|
started: 'Loslegen',
|
||||||
|
|
||||||
|
deleteMessage: 'Nachricht Löschen',
|
||||||
|
blockMessage: 'Blockieren Sie die Nachricht',
|
||||||
|
reportMessage: 'Melden Sie die Nachricht',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'pt',
|
languageCode: 'pt',
|
||||||
@ -944,6 +960,10 @@ const Strings = [
|
|||||||
connect: 'Conecte-se Com As Pessoas',
|
connect: 'Conecte-se Com As Pessoas',
|
||||||
start: 'Crie Uma Conversa',
|
start: 'Crie Uma Conversa',
|
||||||
started: 'Iniciar',
|
started: 'Iniciar',
|
||||||
|
|
||||||
|
deleteMessage: 'Apagar Mensagem',
|
||||||
|
blockMessage: 'Bloquear Mensagem',
|
||||||
|
reportMessage: 'Denunciar Mensagem',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'ru',
|
languageCode: 'ru',
|
||||||
@ -1119,6 +1139,9 @@ const Strings = [
|
|||||||
connect: 'Свяжитесь с людьми',
|
connect: 'Свяжитесь с людьми',
|
||||||
start: 'Начните разговор',
|
start: 'Начните разговор',
|
||||||
started: 'Начало'
|
started: 'Начало'
|
||||||
|
deleteMessage: 'Удаленное сообщение',
|
||||||
|
blockMessage: 'Заблокировать сообщение',
|
||||||
|
reportMessage: 'Пожаловаться на сообщение',
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@ export function Conversation({ navigation, cardId, channelId, closeConversation,
|
|||||||
catch (err) {
|
catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
Alert.alert(
|
Alert.alert(
|
||||||
'Failed to Load More Messages',
|
state.strings.error,
|
||||||
'Please try again',
|
state.strings.tryAgain,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -35,8 +35,8 @@ export function Conversation({ navigation, cardId, channelId, closeConversation,
|
|||||||
catch (err) {
|
catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
Alert.alert(
|
Alert.alert(
|
||||||
'Failed to Update Message',
|
state.strings.error,
|
||||||
'Please try again.',
|
state.strings.tryAgain,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,31 +21,6 @@ import { SafeAreaView, SafeAreaProvider } from 'react-native-safe-area-context';
|
|||||||
export function TopicItem({ item, focused, focus, hosting, remove, update, block, report, contentKey }) {
|
export function TopicItem({ item, focused, focus, hosting, remove, update, block, report, contentKey }) {
|
||||||
const { state, actions } = useTopicItem(item, hosting, remove, contentKey);
|
const { state, actions } = useTopicItem(item, hosting, remove, contentKey);
|
||||||
|
|
||||||
const erase = () => {
|
|
||||||
Alert.alert(
|
|
||||||
"Removing Message",
|
|
||||||
"Confirm?",
|
|
||||||
[
|
|
||||||
{ text: "Cancel",
|
|
||||||
onPress: () => {},
|
|
||||||
},
|
|
||||||
{ text: "Remove",
|
|
||||||
onPress: async () => {
|
|
||||||
try {
|
|
||||||
await remove(item.topicId);
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
console.log(err);
|
|
||||||
Alert.alert(
|
|
||||||
'Failed to Remove Message',
|
|
||||||
'Please try again.'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const shareMessage = async () => {
|
const shareMessage = async () => {
|
||||||
try {
|
try {
|
||||||
@ -54,64 +29,12 @@ export function TopicItem({ item, focused, focus, hosting, remove, update, block
|
|||||||
catch(err) {
|
catch(err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
Alert.alert(
|
Alert.alert(
|
||||||
'Failed to Share Message',
|
state.strings.error,
|
||||||
'Please try again.'
|
state.strings.tryAgain,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const reportMessage = () => {
|
|
||||||
Alert.alert(
|
|
||||||
"Report Message",
|
|
||||||
"Confirm?",
|
|
||||||
[
|
|
||||||
{ text: "Cancel",
|
|
||||||
onPress: () => {},
|
|
||||||
},
|
|
||||||
{ text: "Report",
|
|
||||||
onPress: async () => {
|
|
||||||
try {
|
|
||||||
await report(item.topicId);
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
console.log(err);
|
|
||||||
Alert.alert(
|
|
||||||
'Failed to Report Message',
|
|
||||||
'Please try again.'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const hideMessage = () => {
|
|
||||||
Alert.alert(
|
|
||||||
"Blocking Message",
|
|
||||||
"Confirm?",
|
|
||||||
[
|
|
||||||
{ text: "Cancel",
|
|
||||||
onPress: () => {},
|
|
||||||
},
|
|
||||||
{ text: "Block",
|
|
||||||
onPress: async () => {
|
|
||||||
try {
|
|
||||||
await block(item.topicId);
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
console.log(err);
|
|
||||||
Alert.alert(
|
|
||||||
'Failed to Block Message',
|
|
||||||
'Please try again.'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const renderThumb = (thumb) => {
|
const renderThumb = (thumb) => {
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
|
@ -431,7 +431,7 @@ export function useTopicItem(item, hosting, remove, contentKey) {
|
|||||||
},
|
},
|
||||||
promptBlock: (block) => {
|
promptBlock: (block) => {
|
||||||
display.actions.showPrompt({
|
display.actions.showPrompt({
|
||||||
title: state.strings.blockTopic,
|
title: state.strings.blockMessage,
|
||||||
centerButtons: true,
|
centerButtons: true,
|
||||||
ok: { label: state.strings.confirmBlock, action: async () => await block(item.topicId), failed: () => {
|
ok: { label: state.strings.confirmBlock, action: async () => await block(item.topicId), failed: () => {
|
||||||
Alert.alert(
|
Alert.alert(
|
||||||
@ -444,7 +444,7 @@ export function useTopicItem(item, hosting, remove, contentKey) {
|
|||||||
},
|
},
|
||||||
promptReport: (report) => {
|
promptReport: (report) => {
|
||||||
display.actions.showPrompt({
|
display.actions.showPrompt({
|
||||||
title: state.strings.reportTopic,
|
title: state.strings.reportMessage,
|
||||||
centerButtons: true,
|
centerButtons: true,
|
||||||
ok: { label: state.strings.confirmReport, action: async () => await report(item.topicId), failed: () => {
|
ok: { label: state.strings.confirmReport, action: async () => await report(item.topicId), failed: () => {
|
||||||
Alert.alert(
|
Alert.alert(
|
||||||
@ -457,7 +457,7 @@ export function useTopicItem(item, hosting, remove, contentKey) {
|
|||||||
},
|
},
|
||||||
promptRemove: (remove) => {
|
promptRemove: (remove) => {
|
||||||
display.actions.showPrompt({
|
display.actions.showPrompt({
|
||||||
title: state.strings.deleteTopic,
|
title: state.strings.deleteMessage,
|
||||||
centerButtons: true,
|
centerButtons: true,
|
||||||
ok: { label: state.strings.confirmDelete, action: async () => await remove(item.topicId), failed: () => {
|
ok: { label: state.strings.confirmDelete, action: async () => await remove(item.topicId), failed: () => {
|
||||||
Alert.alert(
|
Alert.alert(
|
||||||
|
Loading…
Reference in New Issue
Block a user